Crate rome_js_semantic

Source

Structs§

AllCallsIter
AllCapturesIter
Binding
Provides access to all semantic data of a specific binding.
Capture
Provides all information regarding a specific closure capture.
ChildrenIter
Iterate all immediate children closures of a specific closure
Closure
Provides all information regarding a specific closure.
DescendentsIter
Iterate all descendents closures of a specific closure
FunctionCall
Provides all information regarding a specific function or method call.
GlobalReference
Reference
Provides all information regarding to a specific reference.
Scope
Provides all information regarding a specific scope. Allows navigation to parent and children scope and binding information.
ScopeBindingsIter
Iterate all bindings that were bound in a given scope. It does not Returns bindings of parent scopes.
ScopeDescendentsIter
Iterate all descendents scopes of the specified scope in breadth-first order.
SemanticEventExtractor
Extracts SemanticEvent from [SyntaxNode].
SemanticModel
The façade for all semantic information.
SemanticModelBuilder
Builds the SemanticModel consuming SemanticEvent and [SyntaxNode]. For a good example on how to use it see semantic_model.
SemanticModelGlobalBindingData
SemanticModelGlobalReferenceData
SemanticModelOptions
Extra options for the SemanticModel creation.
SemanticModelUnresolvedReference
UnresolvedReference

Enums§

AnyHasClosureNode
All nodes that have an associated closure and can be used by the SemanticModel.
CaptureType
ScopeHoisting
SemanticEvent
Events emitted by the SemanticEventExtractor. These events are later made into the Semantic Model.

Traits§

BindingExtensions
Extension method to allow nodes that have declaration to easily get its binding.
CallsExtensions
CanBeImportedExported
Marker trait that groups all “AstNode” that can be imported or exported
ClosureExtensions
HasClosureAstNode
Marker trait that groups all “AstNode” that have closure
HasDeclarationAstNode
Marker trait that groups all “AstNode” that have declarations
IsBindingAstNode
Marker trait that groups all “AstNode” that are bindings
ReferencesExtensions
Extension method to allow any node that is a declaration to easily get all of its references.
SemanticScopeExtensions
Extension method to allow AstNode to easily get its Scope.

Functions§

is_constant
semantic_events
Extracts SemanticEvent from [SyntaxNode].
semantic_model
Build the complete SemanticModel of a parsed file. For a push based model to build the SemanticModel, see SemanticModelBuilder.

Type Aliases§

AllBindingReadReferencesIter
AllBindingReferencesIter
AllBindingWriteReferencesIter