pub trait SyntaxGroup:
Database
+ HasQueryGroup<SyntaxDatabase>
+ FilesGroup
+ Upcast<dyn FilesGroup> {
// Required methods
fn intern_green(&self, field: Arc<GreenNode>) -> GreenId;
fn lookup_intern_green(&self, key: GreenId) -> Arc<GreenNode>;
fn intern_stable_ptr(&self, field: SyntaxStablePtr) -> SyntaxStablePtrId;
fn lookup_intern_stable_ptr(
&self,
key: SyntaxStablePtrId,
) -> SyntaxStablePtr;
fn get_children(&self, node: SyntaxNode) -> Arc<[SyntaxNode]>;
}
Required Methods§
fn intern_green(&self, field: Arc<GreenNode>) -> GreenId
fn lookup_intern_green(&self, key: GreenId) -> Arc<GreenNode>
fn intern_stable_ptr(&self, field: SyntaxStablePtr) -> SyntaxStablePtrId
fn lookup_intern_stable_ptr(&self, key: SyntaxStablePtrId) -> SyntaxStablePtr
sourcefn get_children(&self, node: SyntaxNode) -> Arc<[SyntaxNode]>
fn get_children(&self, node: SyntaxNode) -> Arc<[SyntaxNode]>
Returns the children of the given node.