Module: typings/Types
Namespaces
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
typings/Types.ts:191
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
typings/Types.ts:182
NodeMatcherAlternative
Ƭ NodeMatcherAlternative: NodeMatcher
| string
[] | string
Defined in
typings/Types.ts:180
NodeMatcherValue
Ƭ NodeMatcherValue: Object
Type declaration
Name | Type |
---|---|
node | SyntaxNode |
selection | SelectionWithContext |
Defined in
typings/Types.ts:175
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
typings/Types.ts:197
SelectionWithEditorWithContext
Ƭ SelectionWithEditorWithContext: Object
Type declaration
Name | Type |
---|---|
context | SelectionContext |
selection | SelectionWithEditor |
Defined in
typings/Types.ts:87
TextFormatterName
Ƭ TextFormatterName: "camelCase"
| "pascalCase"
| "snakeCase"
| "upperSnakeCase"
Defined in
typings/Types.ts:228