(
name: ts.Identifier, initializer: ts.Expression, next?: { next: boolean })
| 607 | } |
| 608 | |
| 609 | private processVariableDeclarationOne( |
| 610 | name: ts.Identifier, initializer: ts.Expression, next?: { next: boolean }) { |
| 611 | if (next && next.next) { |
| 612 | this.writer.writeString(', '); |
| 613 | } |
| 614 | |
| 615 | this.writer.writeString(name.text); |
| 616 | this.addToDeclaredInGlobalScope(name.text); |
| 617 | |
| 618 | if (initializer) { |
| 619 | this.writer.writeString(' = '); |
| 620 | this.processExpression(initializer); |
| 621 | } |
| 622 | |
| 623 | if (next) { |
| 624 | next.next = true; |
| 625 | } |
| 626 | |
| 627 | return true; |
| 628 | } |
| 629 | |
| 630 | private processVariableStatement(node: ts.VariableStatement): void { |
| 631 | const anyVal = this.processVariableDeclarationList(node.declarationList); |
no test coverage detected