(node: BaseNode, locationNode: BaseNode)
| 173 | } |
| 174 | |
| 175 | resetEndLocationFromNode(node: BaseNode, locationNode: BaseNode): void { |
| 176 | node.end = locationNode.end; |
| 177 | const { optionFlags } = this; |
| 178 | if (optionFlags & OptionFlags.Locations) { |
| 179 | node.loc!.end = locationNode.loc!.end; |
| 180 | } |
| 181 | if (optionFlags & OptionFlags.Ranges) node.range![1] = locationNode.end!; |
| 182 | } |
| 183 | |
| 184 | castNodeTo<T extends NodeType["type"]>( |
| 185 | node: NodeType, |
nothing calls this directly
no outgoing calls
no test coverage detected