Close the innermost element. Closing an element opened among code ends an expression.
()
| 235 | |
| 236 | /** Close the innermost element. Closing an element opened among code ends an expression. */ |
| 237 | private closeElement(): void { |
| 238 | this.stack.pop(); |
| 239 | if (this.stack[this.stack.length - 1]!.mode === 'code') { |
| 240 | this.roots.pop(); |
| 241 | this.exprEnd = true; |
| 242 | this.afterDot = false; |
| 243 | } |
| 244 | } |
| 245 | |
| 246 | /** One step among code. False when the file is given up. */ |
| 247 | private code(top: Frame, c: number): boolean { |