Module: processTargets/targetUtil/insertionRemovalBehaviors/TokenInsertionRemovalBehavior
Functions
getTokenLeadingDelimiterTarget
▸ getTokenLeadingDelimiterTarget(target
): Target
| undefined
Parameters
Name | Type |
---|---|
target | Target |
Returns
Target
| undefined
Defined in
processTargets/targetUtil/insertionRemovalBehaviors/TokenInsertionRemovalBehavior.ts:7
getTokenRemovalRange
▸ getTokenRemovalRange(target
): Range
Constructs a removal range for the given target that will clean up a json whitespace on one side unless it will cause two tokens to be merged. This removal range is designed to be used with things that should clean themselves up as if they're a range of tokens.
Parameters
Name | Type | Description |
---|---|---|
target | Target | The target to get the token removal range for |
Returns
The removal range for the given target
Defined in
processTargets/targetUtil/insertionRemovalBehaviors/TokenInsertionRemovalBehavior.ts:63
getTokenTrailingDelimiterTarget
▸ getTokenTrailingDelimiterTarget(target
): Target
| undefined
Parameters
Name | Type |
---|---|
target | Target |
Returns
Target
| undefined
Defined in
processTargets/targetUtil/insertionRemovalBehaviors/TokenInsertionRemovalBehavior.ts:31