* The textual extent of a C++ class-like body while the file is walked in * brace scopes: where the node ends (the `}` that closes its body) to pass * to createNode, or null to keep the tree's.
(body: SyntaxNode | null | undefined)
| 1636 | * to createNode, or null to keep the tree's. |
| 1637 | */ |
| 1638 | private cppBodyEnd(body: SyntaxNode | null | undefined): Partial<Node> | null { |
| 1639 | const close = body ? this.cppBraceScopes?.closeOf(body.startIndex) : undefined; |
| 1640 | if (close === undefined) return null; |
| 1641 | const end = this.cppBraceScopes!.positionOf(close + 1); |
| 1642 | return { endLine: end.line, endColumn: end.column }; |
| 1643 | } |
| 1644 | |
| 1645 | /** Open a class-like node's body as a scope for visitInCppBraceScope. */ |
| 1646 | private openCppClassScope(node: Node, body: SyntaxNode | null | undefined): void { |
no test coverage detected