|
1 | 1 | import * as utils from "tsutils"
|
2 | 2 | import ts, { SyntaxKind, tokenToString } from "typescript"
|
3 |
| -import { parseImportDeclaration } from "./parse_node/parse_import_declaration" |
4 |
| -import { parseBinaryExpression } from "./parse_node/parse_binary_expression" |
5 |
| -import { parseSourceFile } from "./parse_node/parse_source_file" |
| 3 | + |
| 4 | +import { AssetSourceFile } from "./project/assets/asset_source_file" |
| 5 | +import { ErrorName, TsGdError, addError } from "./errors" |
| 6 | +import { LibraryFunctionName } from "./parse_node/library_functions" |
| 7 | +import { Scope } from "./scope" |
| 8 | +import { TsGdProjectClass } from "./project/project" |
6 | 9 | import {
|
7 | 10 | generatePrecedingNewlines,
|
8 | 11 | syntaxKindToString as kindToString,
|
9 | 12 | syntaxKindToString,
|
10 | 13 | } from "./ts_utils"
|
11 |
| -import { parseTypeReference } from "./parse_node/parse_type_reference" |
12 |
| -import { parseNumericLiteral } from "./parse_node/parse_numeric_literal" |
13 | 14 | import { parseArrayLiteralExpression } from "./parse_node/parse_array_literal_expression"
|
14 |
| -import { parseNewExpression } from "./parse_node/parse_new_expression" |
15 |
| -import { parsePostfixUnaryExpression } from "./parse_node/parse_postfix_unary_expression" |
16 |
| -import { parseIfStatement } from "./parse_node/parse_if_statement" |
| 15 | +import { parseArrowFunction } from "./parse_node/parse_arrow_function" |
| 16 | +import { parseBinaryExpression } from "./parse_node/parse_binary_expression" |
| 17 | +import { parseBlock } from "./parse_node/parse_block" |
| 18 | +import { parseBreakStatement } from "./parse_node/parse_break_statement" |
| 19 | +import { parseCallExpression } from "./parse_node/parse_call_expression" |
17 | 20 | import {
|
18 |
| - parseSwitchCaseBlock, |
19 | 21 | parseCaseClause,
|
20 | 22 | parseDefaultClause,
|
| 23 | + parseSwitchCaseBlock, |
21 | 24 | parseSwitchStatement,
|
22 | 25 | } from "./parse_node/parse_switch_statement"
|
23 |
| -import { parsePrefixUnaryExpression } from "./parse_node/parse_prefix_unary_expression" |
24 |
| -import { parseObjectLiteralExpression } from "./parse_node/parse_object_literal_expression" |
| 26 | +import { parseClassDeclaration } from "./parse_node/parse_class_declaration" |
| 27 | +import { parseConditionalExpression } from "./parse_node/parse_conditional_expression" |
25 | 28 | import { parseConstructor } from "./parse_node/parse_constructor"
|
26 |
| -import { parseThisKeyword } from "./parse_node/parse_this_keyword" |
27 |
| -import { parseSuperKeyword } from "./parse_node/parse_super_keyword" |
28 |
| -import { parseVariableDeclarationList } from "./parse_node/parse_variable_declaration_list" |
| 29 | +import { parseContinueStatement } from "./parse_node/parse_continue_statement" |
| 30 | +import { parseElementAccessExpression } from "./parse_node/parse_element_access_expression" |
| 31 | +import { parseEmptyStatement } from "./parse_node/parse_empty_statement" |
29 | 32 | import { parseEnumDeclaration } from "./parse_node/parse_enum_declaration"
|
30 |
| -import { parseVariableDeclaration } from "./parse_node/parse_variable_declaration" |
31 | 33 | import { parseExpressionStatement } from "./parse_node/parse_expression_statement"
|
32 |
| -import { parseStringLiteral } from "./parse_node/parse_string_literal" |
33 |
| -import { parseIdentifier } from "./parse_node/parse_identifier" |
34 |
| -import { parseParenthesizedExpression } from "./parse_node/parse_parenthesized_expression" |
35 |
| -import { parseElementAccessExpression } from "./parse_node/parse_element_access_expression" |
36 |
| -import { parseParameter } from "./parse_node/parse_parameter" |
37 |
| -import { parseMethodDeclaration } from "./parse_node/parse_method_declaration" |
38 | 34 | import { parseForInStatement } from "./parse_node/parse_for_in_statement"
|
39 | 35 | import { parseForOfStatement } from "./parse_node/parse_for_of_statement"
|
40 | 36 | import { parseForStatement } from "./parse_node/parse_for_statement"
|
41 |
| -import { parseWhileStatement } from "./parse_node/parse_while_statement" |
| 37 | +import { parseGetAccessor } from "./parse_node/parse_get_accessor" |
| 38 | +import { parseIdentifier } from "./parse_node/parse_identifier" |
| 39 | +import { parseIfStatement } from "./parse_node/parse_if_statement" |
| 40 | +import { parseImportDeclaration } from "./parse_node/parse_import_declaration" |
| 41 | +import { parseMethodDeclaration } from "./parse_node/parse_method_declaration" |
| 42 | +import { parseNewExpression } from "./parse_node/parse_new_expression" |
| 43 | +import { parseNoSubstitutionTemplateLiteral } from "./parse_node/parse_no_substitution_template_expression" |
| 44 | +import { parseNumericLiteral } from "./parse_node/parse_numeric_literal" |
| 45 | +import { parseObjectLiteralExpression } from "./parse_node/parse_object_literal_expression" |
| 46 | +import { parseParameter } from "./parse_node/parse_parameter" |
| 47 | +import { parseParenthesizedExpression } from "./parse_node/parse_parenthesized_expression" |
| 48 | +import { parsePostfixUnaryExpression } from "./parse_node/parse_postfix_unary_expression" |
| 49 | +import { parsePrefixUnaryExpression } from "./parse_node/parse_prefix_unary_expression" |
| 50 | +import { parsePropertyAccessExpression } from "./parse_node/parse_property_access_expression" |
42 | 51 | import { parsePropertyDeclaration } from "./parse_node/parse_property_declaration"
|
43 |
| -import { parseYieldExpression } from "./parse_node/parse_yield_expression" |
44 | 52 | import { parseReturnStatement } from "./parse_node/parse_return_statement"
|
45 |
| -import { parseBreakStatement } from "./parse_node/parse_break_statement" |
46 |
| -import { parseBlock } from "./parse_node/parse_block" |
47 |
| -import { parseCallExpression } from "./parse_node/parse_call_expression" |
48 |
| -import { parseVariableStatement } from "./parse_node/parse_variable_statement" |
49 | 53 | import { parseSetAccessor } from "./parse_node/parse_set_accessor"
|
50 |
| -import { parseGetAccessor } from "./parse_node/parse_get_accessor" |
51 |
| -import { parseContinueStatement } from "./parse_node/parse_continue_statement" |
| 54 | +import { parseSourceFile } from "./parse_node/parse_source_file" |
| 55 | +import { parseStringLiteral } from "./parse_node/parse_string_literal" |
| 56 | +import { parseSuperKeyword } from "./parse_node/parse_super_keyword" |
| 57 | +import { parseTemplateExpression } from "./parse_node/parse_template_expression" |
| 58 | +import { parseThisKeyword } from "./parse_node/parse_this_keyword" |
52 | 59 | import { parseTypeAliasDeclaration } from "./parse_node/parse_type_alias_declaration"
|
53 |
| -import { parsePropertyAccessExpression } from "./parse_node/parse_property_access_expression" |
54 |
| -import { parseClassDeclaration } from "./parse_node/parse_class_declaration" |
55 |
| -import { parseEmptyStatement } from "./parse_node/parse_empty_statement" |
56 |
| -import { parseConditionalExpression } from "./parse_node/parse_conditional_expression" |
57 |
| -import { parseArrowFunction } from "./parse_node/parse_arrow_function" |
| 60 | +import { parseTypeReference } from "./parse_node/parse_type_reference" |
58 | 61 | import { parseTypeofExpression } from "./parse_node/parse_typeof_expression"
|
59 |
| -import { TsGdProjectClass } from "./project/project" |
60 |
| -import { Scope } from "./scope" |
61 |
| -import { addError, ErrorName, TsGdError } from "./errors" |
62 |
| -import { parseTemplateExpression } from "./parse_node/parse_template_expression" |
63 |
| -import { parseNoSubstitutionTemplateLiteral } from "./parse_node/parse_no_substitution_template_expression" |
64 |
| -import { AssetSourceFile } from "./project/assets/asset_source_file" |
65 |
| -import { LibraryFunctionName } from "./parse_node/library_functions" |
| 62 | +import { parseVariableDeclaration } from "./parse_node/parse_variable_declaration" |
| 63 | +import { parseVariableDeclarationList } from "./parse_node/parse_variable_declaration_list" |
| 64 | +import { parseVariableStatement } from "./parse_node/parse_variable_statement" |
| 65 | +import { parseWhileStatement } from "./parse_node/parse_while_statement" |
| 66 | +import { parseYieldExpression } from "./parse_node/parse_yield_expression" |
66 | 67 |
|
67 | 68 | export type ParseState = {
|
68 | 69 | isConstructor: boolean
|
|
0 commit comments