Expand description
Analyzing the syntax of a source file.
This module must hide all AST details from the rest of the codebase.
Modules§
- Convenient utilities to match comment in code.
- Import resolution utilities.
- Convenient utilities to match syntax structures of code.
Structs§
- A binary operation type
- A matcher that groups comments.
- A matcher that collects documentation comments.
- An iterator over the variants of InterpretMode
- The dependency information of a module (file).
- An iterator over the variants of SurroundingSyntax
- A unary operation type
Enums§
- Classes of arguments that can be operated on by IDE functionality.
- The cursor is on an invalid position.
- A signal raised by the comment group matcher.
- Classes of def items that can be operated on by IDE functionality.
- Kind of a definition.
- Classes of field syntax that can be operated on by IDE functionality.
- A mode in which a text document is interpreted.
- A declaration that is an ancestor of the given node or the previous sibling of some ancestor.
- A node that is an ancestor of the given node or the previous sibling of some ancestor.
- Classes of syntax context (outer syntax) that can be operated on by IDE
- Classes of syntax that can be operated on by IDE functionality.
- Classes of syntax context (outer syntax) that can be operated on by IDE functionality.
- The kind of unary operation
- Classes of variable (access) syntax that can be operated on by IDE functionality.
Functions§
- Checks if the cursor is on an invalid position for completion.
- Casts node to a single include expression.
- Classifies node’s context (outer syntax) that can be operated on by IDE functionality.
- Classifies node’s context (outer syntax) by outer node that can be operated on by IDE functionality.
- Classifies a definition strictly.
- Classifies a definition loosely.
- Classifies node’s syntax (inner syntax) that can be operated on by IDE functionality.
- Construct the module dependencies of the given context.
- Extract the module-level documentation from a source.
- Find a source instance by its import node.
- Finds the first ancestor node that is an expression.
- Determine the interpretation mode at the given position (context-sensitive).
- Whether the node can be recognized as an identifier.
- Whether the node can be recognized as a mark.
- Returns the ancestor iterator of the given node.
- Finds the previous declarations starting from the given position. It checks
PreviousItem
and returns the found declarations. - Finds the previous items (in the scope) starting from the given position inclusively. See
PreviousItem
for the possible items. - Resolve a file id by its import path.
- Determines the surrounding syntax of the node at the position.
Type Aliases§
- The kind of binary operation