* Reset the start location of node to the start location of locationNode
(node: BaseNode, locationNode: BaseNode)
| 164 | * Reset the start location of node to the start location of locationNode |
| 165 | */ |
| 166 | resetStartLocationFromNode(node: BaseNode, locationNode: BaseNode): void { |
| 167 | node.start = locationNode.start; |
| 168 | const { optionFlags } = this; |
| 169 | if (optionFlags & OptionFlags.Locations) { |
| 170 | node.loc!.start = locationNode.loc!.start; |
| 171 | } |
| 172 | if (optionFlags & OptionFlags.Ranges) node.range![0] = locationNode.start!; |
| 173 | } |
| 174 | |
| 175 | resetEndLocationFromNode(node: BaseNode, locationNode: BaseNode): void { |
| 176 | node.end = locationNode.end; |
nothing calls this directly
no outgoing calls
no test coverage detected