Module: typings/Types
Interfaces
- Edit
- EditWithRangeUpdater
- Graph
- ProcessedTargetsContext
- RangeWithEditor
- SelectionContext
- SelectionWithContext
- SelectionWithEditor
- Token
Type aliases
NodeFinder
Ƭ NodeFinder: (node: SyntaxNode, selection?: Selection) => SyntaxNode | null
Type declaration
▸ (node, selection?): SyntaxNode | null
Returns the desired relative of the provided node. Returns null if matching node not found.
Parameters
| Name | Type |
|---|---|
node | SyntaxNode |
selection? | Selection |
Returns
SyntaxNode | null
Defined in
NodeMatcher
Ƭ NodeMatcher: (selection: SelectionWithEditor, node: SyntaxNode) => NodeMatcherValue[] | null
Type declaration
▸ (selection, node): NodeMatcherValue[] | null
Parameters
| Name | Type |
|---|---|
selection | SelectionWithEditor |
node | SyntaxNode |
Returns
NodeMatcherValue[] | null
Defined in
NodeMatcherAlternative
Ƭ NodeMatcherAlternative: NodeMatcher | string[] | string
Defined in
NodeMatcherValue
Ƭ NodeMatcherValue: Object
Type declaration
| Name | Type |
|---|---|
node | SyntaxNode |
selection | SelectionWithContext |
Defined in
SelectionExtractor
Ƭ SelectionExtractor: (editor: TextEditor, nodes: SyntaxNode) => SelectionWithContext
Type declaration
▸ (editor, nodes): SelectionWithContext
Returns one or more selections for a given SyntaxNode
Parameters
| Name | Type |
|---|---|
editor | TextEditor |
nodes | SyntaxNode |
Returns
Defined in
SelectionWithEditorWithContext
Ƭ SelectionWithEditorWithContext: Object
Type declaration
| Name | Type |
|---|---|
context | SelectionContext |
selection | SelectionWithEditor |
Defined in
TextFormatterName
Ƭ TextFormatterName: "camelCase" | "pascalCase" | "snakeCase" | "upperSnakeCase"