pub struct BatBuilder<'config> { /* private fields */ }Expand description
Windows Batch (BAT) AST builder.
Implementations§
Source§impl<'config> BatBuilder<'config>
impl<'config> BatBuilder<'config>
Sourcepub fn new(config: &'config BatLanguage) -> Self
pub fn new(config: &'config BatLanguage) -> Self
Creates a new BatBuilder instance with the specified language configuration.
§Arguments
config- A reference to theBatLanguageconfiguration.
Sourcepub fn build_root(
&self,
_green: &GreenNode<'_, BatLanguage>,
_source: &SourceText,
) -> Result<BatRoot, OakError>
pub fn build_root( &self, _green: &GreenNode<'_, BatLanguage>, _source: &SourceText, ) -> Result<BatRoot, OakError>
Trait Implementations§
Source§impl<'config> Builder<BatLanguage> for BatBuilder<'config>
impl<'config> Builder<BatLanguage> for BatBuilder<'config>
Source§fn build<'a, S: Source + ?Sized>(
&self,
source: &'a S,
edits: &[TextEdit],
_cache: &'a mut impl BuilderCache<BatLanguage>,
) -> BuildOutput<BatLanguage>
fn build<'a, S: Source + ?Sized>( &self, source: &'a S, edits: &[TextEdit], _cache: &'a mut impl BuilderCache<BatLanguage>, ) -> BuildOutput<BatLanguage>
Builds the higher-level structure (typically an AST) from the source text. Read more
Source§impl<'config> Clone for BatBuilder<'config>
impl<'config> Clone for BatBuilder<'config>
Source§fn clone(&self) -> BatBuilder<'config>
fn clone(&self) -> BatBuilder<'config>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'config> Freeze for BatBuilder<'config>
impl<'config> RefUnwindSafe for BatBuilder<'config>
impl<'config> Send for BatBuilder<'config>
impl<'config> Sync for BatBuilder<'config>
impl<'config> Unpin for BatBuilder<'config>
impl<'config> UnsafeUnpin for BatBuilder<'config>
impl<'config> UnwindSafe for BatBuilder<'config>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more