[−][src]Trait lark_parser::syntax::entity::LazyParsedEntityDatabase
The trait given to the LazyParsedEntity
methods. It is a "dyn
capable" variant of ParserDatabase
.
Required methods
fn resolve_name(
&self,
item_entity: Entity,
name: GlobalIdentifier
) -> Option<Entity>
&self,
item_entity: Entity,
name: GlobalIdentifier
) -> Option<Entity>
Looks up a name name
to see if it matches any entities in the scope of item_entity
.
fn file_text(&self, id: FileName) -> Text
The file_text
query
fn file_tokens(
&self,
id: FileName
) -> WithError<Seq<Spanned<LexToken, FileName>>>
&self,
id: FileName
) -> WithError<Seq<Spanned<LexToken, FileName>>>
The file_tokens
query
fn generic_declarations(
&self,
entity: Entity
) -> WithError<Result<Arc<GenericDeclarations>, ErrorReported>>
&self,
entity: Entity
) -> WithError<Result<Arc<GenericDeclarations>, ErrorReported>>
The generic_declarations
query
fn ty(&self, key: Entity) -> WithError<Ty<Declaration>>
The ty
query
Implementors
impl<T: ParserDatabase> LazyParsedEntityDatabase for T
[src]
fn file_text(&self, id: FileName) -> Text
[src]
fn resolve_name(
&self,
item_entity: Entity,
name: GlobalIdentifier
) -> Option<Entity>
[src]
&self,
item_entity: Entity,
name: GlobalIdentifier
) -> Option<Entity>
fn file_tokens(
&self,
id: FileName
) -> WithError<Seq<Spanned<LexToken, FileName>>>
[src]
&self,
id: FileName
) -> WithError<Seq<Spanned<LexToken, FileName>>>
fn generic_declarations(
&self,
entity: Entity
) -> WithError<Result<Arc<GenericDeclarations>, ErrorReported>>
[src]
&self,
entity: Entity
) -> WithError<Result<Arc<GenericDeclarations>, ErrorReported>>