pub struct CppBuilder<'config> { /* private fields */ }Expand description
AST builder for the C++ language
Implementations§
Source§impl<'config> CppBuilder<'config>
impl<'config> CppBuilder<'config>
Sourcepub fn new(config: &'config CppLanguage) -> Self
pub fn new(config: &'config CppLanguage) -> Self
Creates a new C++ builder
Sourcepub fn build_root(
&self,
_green: &GreenNode<'_, CppLanguage>,
_source: &SourceText,
) -> Result<CppRoot, OakError>
pub fn build_root( &self, _green: &GreenNode<'_, CppLanguage>, _source: &SourceText, ) -> Result<CppRoot, OakError>
Builds the AST root node from the green tree
Trait Implementations§
Source§impl<'config> Builder<CppLanguage> for CppBuilder<'config>
impl<'config> Builder<CppLanguage> for CppBuilder<'config>
Source§fn build<'a, S: Source + ?Sized>(
&self,
source: &'a S,
edits: &[TextEdit],
_cache: &'a mut impl BuilderCache<CppLanguage>,
) -> BuildOutput<CppLanguage>
fn build<'a, S: Source + ?Sized>( &self, source: &'a S, edits: &[TextEdit], _cache: &'a mut impl BuilderCache<CppLanguage>, ) -> BuildOutput<CppLanguage>
Builds the structure from the source text.
Source§impl<'config> Clone for CppBuilder<'config>
impl<'config> Clone for CppBuilder<'config>
Source§fn clone(&self) -> CppBuilder<'config>
fn clone(&self) -> CppBuilder<'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 CppBuilder<'config>
impl<'config> RefUnwindSafe for CppBuilder<'config>
impl<'config> Send for CppBuilder<'config>
impl<'config> Sync for CppBuilder<'config>
impl<'config> Unpin for CppBuilder<'config>
impl<'config> UnsafeUnpin for CppBuilder<'config>
impl<'config> UnwindSafe for CppBuilder<'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