(
node: BaseNode,
endLoc: Position = this.state.lastTokEndLoc!,
)
| 149 | } |
| 150 | |
| 151 | resetEndLocation( |
| 152 | node: BaseNode, |
| 153 | endLoc: Position = this.state.lastTokEndLoc!, |
| 154 | ): void { |
| 155 | node.end = endLoc.index; |
| 156 | const { optionFlags } = this; |
| 157 | if (optionFlags & OptionFlags.Locations) { |
| 158 | node.loc!.end = this.createPosition(endLoc); |
| 159 | } |
| 160 | if (optionFlags & OptionFlags.Ranges) node.range![1] = endLoc.index; |
| 161 | } |
| 162 | |
| 163 | /** |
| 164 | * Reset the start location of node to the start location of locationNode |
nothing calls this directly
no test coverage detected