(offset: number, type: NodeType, pathSupplier: () => jsonc.JSONPath)
| 211 | } |
| 212 | |
| 213 | onObjectBegin(offset: number, type: NodeType, pathSupplier: () => jsonc.JSONPath) { |
| 214 | if (this.parseErrors.length > 0) { |
| 215 | return false; |
| 216 | } |
| 217 | |
| 218 | const path = this.genPath(pathSupplier); |
| 219 | const node = this.newNode(path, type, offset); |
| 220 | |
| 221 | if (this.currentParent) { |
| 222 | this.addChild(node); |
| 223 | } |
| 224 | |
| 225 | this.currentParent = node; |
| 226 | return true; |
| 227 | } |
| 228 | |
| 229 | onObjectEnd(offset: number, length: number) { |
| 230 | const parent = this.currentParent; |
no test coverage detected