From 28e20bb4e8c8a054b2280d818d2ea63ef8d26f6d Mon Sep 17 00:00:00 2001 From: Stanislav Kurnevich Date: Wed, 20 Jul 2022 15:35:59 +0300 Subject: [PATCH] Add syntax highlighting for sts Add tests for highlight Add installation for extension in vscode Change-Id: I68c20fb0543c12bb0b02697b6627a4999ab53d05 Signed-off-by: mmorozov --- .gitignore | 2 + .vscode/launch.json | 24 + .vscode/tasks.json | 12 + tests/vs_plugin/.gitignore | 6 + tests/vs_plugin/package.json | 41 + .../test/results/array_creation_java.sts.json | 322 + tests/vs_plugin/test/results/array_sts.json | 126 + .../test/results/array_type_java.sts.json | 230 + .../test/results/assert_java.sts.json | 238 + tests/vs_plugin/test/results/assign_sts.json | 90 + .../test/results/assignments_java.sts.json | 350 + .../vs_plugin/test/results/binary_op_sts.json | 702 ++ .../results/binary_operations_java.sts.json | 1174 ++++ .../test/results/boolean_cond_sts.json | 90 + tests/vs_plugin/test/results/boolean_sts.json | 50 + tests/vs_plugin/test/results/break_sts.json | 146 + tests/vs_plugin/test/results/calls_sts.json | 210 + .../test/results/cast_expressions_sts.json | 94 + .../test/results/class_init_sts.json | 74 + .../class_instance_creation_java.sts.json | 442 ++ .../class_instance_initializer_java.sts.json | 798 +++ .../class_static_initializer_java.sts.json | 166 + tests/vs_plugin/test/results/classes_sts.json | 82 + .../test/results/comment_block_sts.json | 66 + .../test/results/comment_line_sts.json | 10 + .../conditional_expression_java.sts.json | 206 + tests/vs_plugin/test/results/const_sts.json | 58 + .../results/constructor_test_java.sts.json | 346 + .../test/results/constructors_sts.json | 310 + .../vs_plugin/test/results/continue_sts.json | 146 + .../test/results/decl_infer_sts.json | 250 + .../test/results/empty_class_java.sts.json | 34 + .../results/empty_statement_java.sts.json | 434 ++ .../enhanced_for_statement_java.sts.json | 342 + tests/vs_plugin/test/results/enum_sts.json | 98 + .../enum_with_class_behavior_java.sts.json | 3422 ++++++++++ tests/vs_plugin/test/results/exports_sts.json | 114 + .../test/results/field_decl_java.sts.json | 294 + tests/vs_plugin/test/results/fields_sts.json | 266 + .../results/final_empty_class_java.sts.json | 34 + tests/vs_plugin/test/results/for_of_sts.json | 230 + .../test/results/for_statement_java.sts.json | 938 +++ .../test/results/for_with_break_sts.json | 218 + .../test/results/function_decl_sts.json | 82 + .../vs_plugin/test/results/function_sts.json | 346 + .../test/results/generic_function_sts.json | 266 + .../test/results/identifier_sts.json | 94 + tests/vs_plugin/test/results/if_java.sts.json | 974 +++ tests/vs_plugin/test/results/ifs_sts.json | 210 + .../test/results/inheritance_java.sts.json | 202 + .../test/results/instanceof_sts.json | 114 + .../vs_plugin/test/results/interface_sts.json | 58 + .../test/results/interfaces_sts.json | 178 + .../results/intersection-type_java.sts.json | 418 ++ .../test/results/labeled_java.sts.json | 198 + .../test/results/literals_java.sts.json | 1066 +++ .../vs_plugin/test/results/literals_sts.json | 538 ++ tests/vs_plugin/test/results/loops_sts.json | 922 +++ .../test/results/method_empty_java.sts.json | 158 + .../test/results/method_full_java.sts.json | 538 ++ .../results/method_invocation_java.sts.json | 1670 +++++ .../test/results/named_types_java.sts.json | 558 ++ .../test/results/new_expressions_sts.json | 106 + tests/vs_plugin/test/results/null_sts.json | 22 + tests/vs_plugin/test/results/object_sts.json | 22 + .../test/results/override_method_sts.json | 134 + .../parentheses_expression_value_sts.json | 234 + .../test/results/predefined_types_sts.json | 142 + tests/vs_plugin/test/results/return_sts.json | 146 + .../test/results/scoped_decl_sts.json | 106 + .../test/results/simple_types_sts.json | 278 + tests/vs_plugin/test/results/string_sts.json | 38 + .../results/super_expression_java.sts.json | 702 ++ .../results/switch_statement_java.sts.json | 3530 ++++++++++ tests/vs_plugin/test/results/switch_sts.json | 278 + tests/vs_plugin/test/results/ternary_sts.json | 86 + .../test/results/test_enum_java.sts.json | 3634 ++++++++++ .../test/results/test_interface_java.sts.json | 226 + .../results/this_expression_java.sts.json | 466 ++ .../test/results/type_cast_java.sts.json | 242 + .../test/results/types_decls_sts.json | 590 ++ .../vs_plugin/test/results/unary_op_sts.json | 186 + .../results/unary_operations_java.sts.json | 350 + .../test/results/var_declare_java.sts.json | 250 + tests/vs_plugin/test/results/void_sts.json | 42 + tests/vs_plugin/test/runTest.ts | 17 + tests/vs_plugin/test/snippets/array.sts | 18 + .../test/snippets/array_creation.java.sts | 26 + .../test/snippets/array_type.java.sts | 28 + tests/vs_plugin/test/snippets/assert.java.sts | 25 + tests/vs_plugin/test/snippets/assign.sts | 21 + .../test/snippets/assignments.java.sts | 38 + tests/vs_plugin/test/snippets/binary_op.sts | 41 + .../test/snippets/binary_operations.java.sts | 43 + tests/vs_plugin/test/snippets/boolean.sts | 17 + .../vs_plugin/test/snippets/boolean_cond.sts | 23 + tests/vs_plugin/test/snippets/break.sts | 21 + tests/vs_plugin/test/snippets/calls.sts | 27 + .../test/snippets/cast_expressions.sts | 20 + tests/vs_plugin/test/snippets/class_init.sts | 22 + .../snippets/class_instance_creation.java.sts | 40 + .../class_instance_initializer.java.sts | 74 + .../class_static_initializer.java.sts | 28 + tests/vs_plugin/test/snippets/classes.sts | 26 + .../vs_plugin/test/snippets/comment_block.sts | 34 + .../vs_plugin/test/snippets/comment_line.sts | 16 + .../snippets/conditional_expression.java.sts | 26 + tests/vs_plugin/test/snippets/const.sts | 17 + .../test/snippets/constructor_test.java.sts | 40 + .../vs_plugin/test/snippets/constructors.sts | 35 + tests/vs_plugin/test/snippets/continue.sts | 21 + tests/vs_plugin/test/snippets/decl_infer.sts | 26 + .../test/snippets/empty_class.java.sts | 19 + .../test/snippets/empty_statement.java.sts | 38 + .../snippets/enhanced_for_statement.java.sts | 31 + tests/vs_plugin/test/snippets/enum.sts | 18 + .../enum_with_class_behavior.java.sts | 123 + tests/vs_plugin/test/snippets/exports.sts | 22 + .../test/snippets/field_decl.java.sts | 28 + tests/vs_plugin/test/snippets/fields.sts | 28 + .../test/snippets/final_empty_class.java.sts | 19 + tests/vs_plugin/test/snippets/for_of.sts | 29 + .../test/snippets/for_statement.java.sts | 49 + .../test/snippets/for_with_break.sts | 26 + tests/vs_plugin/test/snippets/function.sts | 36 + .../vs_plugin/test/snippets/function_decl.sts | 16 + .../test/snippets/generic_function.sts | 24 + tests/vs_plugin/test/snippets/identifier.sts | 20 + tests/vs_plugin/test/snippets/if.java.sts | 72 + tests/vs_plugin/test/snippets/ifs.sts | 26 + .../test/snippets/inheritance.java.sts | 37 + tests/vs_plugin/test/snippets/instanceof.sts | 22 + tests/vs_plugin/test/snippets/interface.sts | 17 + tests/vs_plugin/test/snippets/interfaces.sts | 27 + .../test/snippets/intersection-type.java.sts | 37 + .../vs_plugin/test/snippets/labeled.java.sts | 26 + .../vs_plugin/test/snippets/literals.java.sts | 50 + tests/vs_plugin/test/snippets/literals.sts | 34 + tests/vs_plugin/test/snippets/loops.sts | 65 + .../test/snippets/method_empty.java.sts | 28 + .../test/snippets/method_full.java.sts | 40 + .../test/snippets/method_invocation.java.sts | 111 + .../test/snippets/named_types.java.sts | 48 + .../test/snippets/new_expressions.sts | 26 + tests/vs_plugin/test/snippets/null.sts | 16 + tests/vs_plugin/test/snippets/object.sts | 16 + .../test/snippets/override_method.sts | 26 + .../snippets/parentheses_expression_value.sts | 25 + .../test/snippets/predefined_types.sts | 25 + tests/vs_plugin/test/snippets/return.sts | 21 + tests/vs_plugin/test/snippets/scoped_decl.sts | 21 + .../vs_plugin/test/snippets/simple_types.sts | 27 + tests/vs_plugin/test/snippets/string.sts | 16 + .../test/snippets/super_expression.java.sts | 44 + tests/vs_plugin/test/snippets/switch.sts | 31 + .../test/snippets/switch_statement.java.sts | 261 + tests/vs_plugin/test/snippets/ternary.sts | 19 + .../test/snippets/test_enum.java.sts | 131 + .../test/snippets/test_interface.java.sts | 30 + .../test/snippets/this_expression.java.sts | 37 + .../test/snippets/type_cast.java.sts | 25 + tests/vs_plugin/test/snippets/types_decls.sts | 57 + tests/vs_plugin/test/snippets/unary_op.sts | 23 + .../test/snippets/unary_operations.java.sts | 29 + .../test/snippets/var_declare.java.sts | 28 + tests/vs_plugin/test/snippets/void.sts | 18 + tests/vs_plugin/test/suite/extension.test.ts | 56 + tests/vs_plugin/test/suite/index.ts | 36 + tests/vs_plugin/tsconfig.json | 18 + vs_plugin/.vscodeignore | 4 + vs_plugin/README.md | 58 + vs_plugin/src/language-configuration.json | 30 + vs_plugin/src/package.json | 26 + vs_plugin/src/static-type-script-1.0.0.vsix | Bin 0 -> 20733 bytes vs_plugin/src/syntaxes/sts.tmLanguage.json | 5815 +++++++++++++++++ 175 files changed, 42616 insertions(+) create mode 100644 .gitignore create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json create mode 100644 tests/vs_plugin/.gitignore create mode 100644 tests/vs_plugin/package.json create mode 100644 tests/vs_plugin/test/results/array_creation_java.sts.json create mode 100644 tests/vs_plugin/test/results/array_sts.json create mode 100644 tests/vs_plugin/test/results/array_type_java.sts.json create mode 100644 tests/vs_plugin/test/results/assert_java.sts.json create mode 100644 tests/vs_plugin/test/results/assign_sts.json create mode 100644 tests/vs_plugin/test/results/assignments_java.sts.json create mode 100644 tests/vs_plugin/test/results/binary_op_sts.json create mode 100644 tests/vs_plugin/test/results/binary_operations_java.sts.json create mode 100644 tests/vs_plugin/test/results/boolean_cond_sts.json create mode 100644 tests/vs_plugin/test/results/boolean_sts.json create mode 100644 tests/vs_plugin/test/results/break_sts.json create mode 100644 tests/vs_plugin/test/results/calls_sts.json create mode 100644 tests/vs_plugin/test/results/cast_expressions_sts.json create mode 100644 tests/vs_plugin/test/results/class_init_sts.json create mode 100644 tests/vs_plugin/test/results/class_instance_creation_java.sts.json create mode 100644 tests/vs_plugin/test/results/class_instance_initializer_java.sts.json create mode 100644 tests/vs_plugin/test/results/class_static_initializer_java.sts.json create mode 100644 tests/vs_plugin/test/results/classes_sts.json create mode 100644 tests/vs_plugin/test/results/comment_block_sts.json create mode 100644 tests/vs_plugin/test/results/comment_line_sts.json create mode 100644 tests/vs_plugin/test/results/conditional_expression_java.sts.json create mode 100644 tests/vs_plugin/test/results/const_sts.json create mode 100644 tests/vs_plugin/test/results/constructor_test_java.sts.json create mode 100644 tests/vs_plugin/test/results/constructors_sts.json create mode 100644 tests/vs_plugin/test/results/continue_sts.json create mode 100644 tests/vs_plugin/test/results/decl_infer_sts.json create mode 100644 tests/vs_plugin/test/results/empty_class_java.sts.json create mode 100644 tests/vs_plugin/test/results/empty_statement_java.sts.json create mode 100644 tests/vs_plugin/test/results/enhanced_for_statement_java.sts.json create mode 100644 tests/vs_plugin/test/results/enum_sts.json create mode 100644 tests/vs_plugin/test/results/enum_with_class_behavior_java.sts.json create mode 100644 tests/vs_plugin/test/results/exports_sts.json create mode 100644 tests/vs_plugin/test/results/field_decl_java.sts.json create mode 100644 tests/vs_plugin/test/results/fields_sts.json create mode 100644 tests/vs_plugin/test/results/final_empty_class_java.sts.json create mode 100644 tests/vs_plugin/test/results/for_of_sts.json create mode 100644 tests/vs_plugin/test/results/for_statement_java.sts.json create mode 100644 tests/vs_plugin/test/results/for_with_break_sts.json create mode 100644 tests/vs_plugin/test/results/function_decl_sts.json create mode 100644 tests/vs_plugin/test/results/function_sts.json create mode 100644 tests/vs_plugin/test/results/generic_function_sts.json create mode 100644 tests/vs_plugin/test/results/identifier_sts.json create mode 100644 tests/vs_plugin/test/results/if_java.sts.json create mode 100644 tests/vs_plugin/test/results/ifs_sts.json create mode 100644 tests/vs_plugin/test/results/inheritance_java.sts.json create mode 100644 tests/vs_plugin/test/results/instanceof_sts.json create mode 100644 tests/vs_plugin/test/results/interface_sts.json create mode 100644 tests/vs_plugin/test/results/interfaces_sts.json create mode 100644 tests/vs_plugin/test/results/intersection-type_java.sts.json create mode 100644 tests/vs_plugin/test/results/labeled_java.sts.json create mode 100644 tests/vs_plugin/test/results/literals_java.sts.json create mode 100644 tests/vs_plugin/test/results/literals_sts.json create mode 100644 tests/vs_plugin/test/results/loops_sts.json create mode 100644 tests/vs_plugin/test/results/method_empty_java.sts.json create mode 100644 tests/vs_plugin/test/results/method_full_java.sts.json create mode 100644 tests/vs_plugin/test/results/method_invocation_java.sts.json create mode 100644 tests/vs_plugin/test/results/named_types_java.sts.json create mode 100644 tests/vs_plugin/test/results/new_expressions_sts.json create mode 100644 tests/vs_plugin/test/results/null_sts.json create mode 100644 tests/vs_plugin/test/results/object_sts.json create mode 100644 tests/vs_plugin/test/results/override_method_sts.json create mode 100644 tests/vs_plugin/test/results/parentheses_expression_value_sts.json create mode 100644 tests/vs_plugin/test/results/predefined_types_sts.json create mode 100644 tests/vs_plugin/test/results/return_sts.json create mode 100644 tests/vs_plugin/test/results/scoped_decl_sts.json create mode 100644 tests/vs_plugin/test/results/simple_types_sts.json create mode 100644 tests/vs_plugin/test/results/string_sts.json create mode 100644 tests/vs_plugin/test/results/super_expression_java.sts.json create mode 100644 tests/vs_plugin/test/results/switch_statement_java.sts.json create mode 100644 tests/vs_plugin/test/results/switch_sts.json create mode 100644 tests/vs_plugin/test/results/ternary_sts.json create mode 100644 tests/vs_plugin/test/results/test_enum_java.sts.json create mode 100644 tests/vs_plugin/test/results/test_interface_java.sts.json create mode 100644 tests/vs_plugin/test/results/this_expression_java.sts.json create mode 100644 tests/vs_plugin/test/results/type_cast_java.sts.json create mode 100644 tests/vs_plugin/test/results/types_decls_sts.json create mode 100644 tests/vs_plugin/test/results/unary_op_sts.json create mode 100644 tests/vs_plugin/test/results/unary_operations_java.sts.json create mode 100644 tests/vs_plugin/test/results/var_declare_java.sts.json create mode 100644 tests/vs_plugin/test/results/void_sts.json create mode 100644 tests/vs_plugin/test/runTest.ts create mode 100644 tests/vs_plugin/test/snippets/array.sts create mode 100644 tests/vs_plugin/test/snippets/array_creation.java.sts create mode 100644 tests/vs_plugin/test/snippets/array_type.java.sts create mode 100644 tests/vs_plugin/test/snippets/assert.java.sts create mode 100644 tests/vs_plugin/test/snippets/assign.sts create mode 100644 tests/vs_plugin/test/snippets/assignments.java.sts create mode 100644 tests/vs_plugin/test/snippets/binary_op.sts create mode 100644 tests/vs_plugin/test/snippets/binary_operations.java.sts create mode 100644 tests/vs_plugin/test/snippets/boolean.sts create mode 100644 tests/vs_plugin/test/snippets/boolean_cond.sts create mode 100644 tests/vs_plugin/test/snippets/break.sts create mode 100644 tests/vs_plugin/test/snippets/calls.sts create mode 100644 tests/vs_plugin/test/snippets/cast_expressions.sts create mode 100644 tests/vs_plugin/test/snippets/class_init.sts create mode 100644 tests/vs_plugin/test/snippets/class_instance_creation.java.sts create mode 100644 tests/vs_plugin/test/snippets/class_instance_initializer.java.sts create mode 100644 tests/vs_plugin/test/snippets/class_static_initializer.java.sts create mode 100644 tests/vs_plugin/test/snippets/classes.sts create mode 100644 tests/vs_plugin/test/snippets/comment_block.sts create mode 100644 tests/vs_plugin/test/snippets/comment_line.sts create mode 100644 tests/vs_plugin/test/snippets/conditional_expression.java.sts create mode 100644 tests/vs_plugin/test/snippets/const.sts create mode 100644 tests/vs_plugin/test/snippets/constructor_test.java.sts create mode 100644 tests/vs_plugin/test/snippets/constructors.sts create mode 100644 tests/vs_plugin/test/snippets/continue.sts create mode 100644 tests/vs_plugin/test/snippets/decl_infer.sts create mode 100644 tests/vs_plugin/test/snippets/empty_class.java.sts create mode 100644 tests/vs_plugin/test/snippets/empty_statement.java.sts create mode 100644 tests/vs_plugin/test/snippets/enhanced_for_statement.java.sts create mode 100644 tests/vs_plugin/test/snippets/enum.sts create mode 100644 tests/vs_plugin/test/snippets/enum_with_class_behavior.java.sts create mode 100644 tests/vs_plugin/test/snippets/exports.sts create mode 100644 tests/vs_plugin/test/snippets/field_decl.java.sts create mode 100644 tests/vs_plugin/test/snippets/fields.sts create mode 100644 tests/vs_plugin/test/snippets/final_empty_class.java.sts create mode 100644 tests/vs_plugin/test/snippets/for_of.sts create mode 100644 tests/vs_plugin/test/snippets/for_statement.java.sts create mode 100644 tests/vs_plugin/test/snippets/for_with_break.sts create mode 100644 tests/vs_plugin/test/snippets/function.sts create mode 100644 tests/vs_plugin/test/snippets/function_decl.sts create mode 100644 tests/vs_plugin/test/snippets/generic_function.sts create mode 100644 tests/vs_plugin/test/snippets/identifier.sts create mode 100644 tests/vs_plugin/test/snippets/if.java.sts create mode 100644 tests/vs_plugin/test/snippets/ifs.sts create mode 100644 tests/vs_plugin/test/snippets/inheritance.java.sts create mode 100644 tests/vs_plugin/test/snippets/instanceof.sts create mode 100644 tests/vs_plugin/test/snippets/interface.sts create mode 100644 tests/vs_plugin/test/snippets/interfaces.sts create mode 100755 tests/vs_plugin/test/snippets/intersection-type.java.sts create mode 100644 tests/vs_plugin/test/snippets/labeled.java.sts create mode 100755 tests/vs_plugin/test/snippets/literals.java.sts create mode 100644 tests/vs_plugin/test/snippets/literals.sts create mode 100644 tests/vs_plugin/test/snippets/loops.sts create mode 100644 tests/vs_plugin/test/snippets/method_empty.java.sts create mode 100644 tests/vs_plugin/test/snippets/method_full.java.sts create mode 100644 tests/vs_plugin/test/snippets/method_invocation.java.sts create mode 100644 tests/vs_plugin/test/snippets/named_types.java.sts create mode 100644 tests/vs_plugin/test/snippets/new_expressions.sts create mode 100644 tests/vs_plugin/test/snippets/null.sts create mode 100644 tests/vs_plugin/test/snippets/object.sts create mode 100644 tests/vs_plugin/test/snippets/override_method.sts create mode 100644 tests/vs_plugin/test/snippets/parentheses_expression_value.sts create mode 100644 tests/vs_plugin/test/snippets/predefined_types.sts create mode 100644 tests/vs_plugin/test/snippets/return.sts create mode 100644 tests/vs_plugin/test/snippets/scoped_decl.sts create mode 100644 tests/vs_plugin/test/snippets/simple_types.sts create mode 100644 tests/vs_plugin/test/snippets/string.sts create mode 100644 tests/vs_plugin/test/snippets/super_expression.java.sts create mode 100644 tests/vs_plugin/test/snippets/switch.sts create mode 100644 tests/vs_plugin/test/snippets/switch_statement.java.sts create mode 100644 tests/vs_plugin/test/snippets/ternary.sts create mode 100644 tests/vs_plugin/test/snippets/test_enum.java.sts create mode 100644 tests/vs_plugin/test/snippets/test_interface.java.sts create mode 100644 tests/vs_plugin/test/snippets/this_expression.java.sts create mode 100644 tests/vs_plugin/test/snippets/type_cast.java.sts create mode 100644 tests/vs_plugin/test/snippets/types_decls.sts create mode 100644 tests/vs_plugin/test/snippets/unary_op.sts create mode 100644 tests/vs_plugin/test/snippets/unary_operations.java.sts create mode 100644 tests/vs_plugin/test/snippets/var_declare.java.sts create mode 100644 tests/vs_plugin/test/snippets/void.sts create mode 100644 tests/vs_plugin/test/suite/extension.test.ts create mode 100644 tests/vs_plugin/test/suite/index.ts create mode 100644 tests/vs_plugin/tsconfig.json create mode 100644 vs_plugin/.vscodeignore create mode 100644 vs_plugin/README.md create mode 100644 vs_plugin/src/language-configuration.json create mode 100644 vs_plugin/src/package.json create mode 100644 vs_plugin/src/static-type-script-1.0.0.vsix create mode 100644 vs_plugin/src/syntaxes/sts.tmLanguage.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..de4d1f007 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +dist +node_modules diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 000000000..f4d88be8e --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,24 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Run extension", + "type": "extensionHost", + "request": "launch", + "args": [ + "--extensionDevelopmentPath=${workspaceFolder}/vs_plugin/src" + ] + }, + { + "name": "Run highlight tests", + "type": "extensionHost", + "request": "launch", + "runtimeExecutable": "${execPath}", + "args": [ + "--extensionDevelopmentPath=${workspaceFolder}/vs_plugin/src", + "--extensionTestsPath=${workspaceFolder}/tests/vs_plugin/out/suite/index" + ], + "outFiles": ["${workspaceFolder}/tests/vs_plugin/out/**/*.js"] + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 000000000..645727ac8 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,12 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "path": "tests/vs_plugin", + "label": "Compile", + "type": "npm", + "script": "test", + "problemMatcher": [] + } + ] +} \ No newline at end of file diff --git a/tests/vs_plugin/.gitignore b/tests/vs_plugin/.gitignore new file mode 100644 index 000000000..bc3a0196f --- /dev/null +++ b/tests/vs_plugin/.gitignore @@ -0,0 +1,6 @@ +out +node_modules +.vscode-test/ +*.vsix +package-lock.json +temp_snippets diff --git a/tests/vs_plugin/package.json b/tests/vs_plugin/package.json new file mode 100644 index 000000000..9a27fcd8d --- /dev/null +++ b/tests/vs_plugin/package.json @@ -0,0 +1,41 @@ +{ + "name": "vscode-highlight-test", + "displayName": "vscode-highlight-test", + "description": "Syntax highlighting for STS", + "version": "0.0.1", + "publisher": "vscode-samples", + "repository": "https://github.com/", + "engines": { + "vscode": "^1.32.0" + }, + "categories": [ + "Other" + ], + "activationEvents": [ + "onLanguage:json" + ], + "main": "./out/runTest.js", + "scripts": { + "vscode:prepublish": "npm run compile", + "compile": "tsc -p ./", + "lint": "eslint . --ext .ts,.tsx", + "watch": "tsc -watch -p ./", + "pretest": "npm run compile", + "test": "node ./out/runTest.js" + }, + "devDependencies": { + "@types/glob": "^7.1.1", + "@types/mocha": "^5.2.6", + "@types/node": "^16.11.7", + "@types/vscode": "^1.32.0", + "@typescript-eslint/eslint-plugin": "^5.30.0", + "@typescript-eslint/parser": "^5.30.0", + "@vscode/test-electron": "^1.6.1", + "eslint": "^8.13.0", + "glob": "^7.2.3", + "jest": "^28.1.3", + "mocha": "^6.1.4", + "source-map-support": "^0.5.12", + "typescript": "^4.7.2" + } +} diff --git a/tests/vs_plugin/test/results/array_creation_java.sts.json b/tests/vs_plugin/test/results/array_creation_java.sts.json new file mode 100644 index 000000000..ad074fc52 --- /dev/null +++ b/tests/vs_plugin/test/results/array_creation_java.sts.json @@ -0,0 +1,322 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.test.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "export", + "t": "source.sts meta.class.sts keyword.control.export.ts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "array_creation", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "b1", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "byte", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "[]", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts meta.type.tuple.sts meta.brace.square.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "byte", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts support.type.primitive.sts" + }, + { + "c": "[", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": "8", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.array.literal.sts constant.numeric.decimal.ts" + }, + { + "c": "]", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "c1", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "char", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "[]", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts meta.type.tuple.sts meta.brace.square.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "[", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": "'", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.array.literal.sts string.quoted.single.sts punctuation.definition.string.begin.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.array.literal.sts string.quoted.single.sts" + }, + { + "c": "'", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.array.literal.sts string.quoted.single.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "'", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.array.literal.sts string.quoted.single.sts punctuation.definition.string.begin.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.array.literal.sts string.quoted.single.sts" + }, + { + "c": "'", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.array.literal.sts string.quoted.single.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "'", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.array.literal.sts string.quoted.single.sts punctuation.definition.string.begin.sts" + }, + { + "c": "c", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.array.literal.sts string.quoted.single.sts" + }, + { + "c": "'", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.array.literal.sts string.quoted.single.sts punctuation.definition.string.end.sts" + }, + { + "c": "]", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "foo", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "c2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "char", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "bar", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "foo", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "[", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": "'", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts string.quoted.single.sts punctuation.definition.string.begin.sts" + }, + { + "c": "g", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts string.quoted.single.sts" + }, + { + "c": "'", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts string.quoted.single.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "'", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts string.quoted.single.sts punctuation.definition.string.begin.sts" + }, + { + "c": "k", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts string.quoted.single.sts" + }, + { + "c": "'", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts string.quoted.single.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "'", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts string.quoted.single.sts punctuation.definition.string.begin.sts" + }, + { + "c": "h", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts string.quoted.single.sts" + }, + { + "c": "'", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts string.quoted.single.sts punctuation.definition.string.end.sts" + }, + { + "c": "]", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/array_sts.json b/tests/vs_plugin/test/results/array_sts.json new file mode 100644 index 000000000..7f8ab902a --- /dev/null +++ b/tests/vs_plugin/test/results/array_sts.json @@ -0,0 +1,126 @@ +[ + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "[", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": "1", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "2", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "3", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts constant.numeric.decimal.ts" + }, + { + "c": "]", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "v", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "string", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "[]", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts meta.type.tuple.sts meta.brace.square.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "[", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": "\"", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "x", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "\"", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "y", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "\"", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "z", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": "]", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/array_type_java.sts.json b/tests/vs_plugin/test/results/array_type_java.sts.json new file mode 100644 index 000000000..d16074e52 --- /dev/null +++ b/tests/vs_plugin/test/results/array_type_java.sts.json @@ -0,0 +1,230 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.test.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "array_type", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "[]", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts meta.type.tuple.sts meta.brace.square.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "protected", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "f", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "float", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "[][][]", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts meta.type.tuple.sts meta.brace.square.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "foo", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "s", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "[][]", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts meta.type.tuple.sts meta.brace.square.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "toCharArray", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "char", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "[]", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts meta.type.tuple.sts meta.brace.square.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "null", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.language.null.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "toStringArray", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts entity.name.type.sts" + }, + { + "c": "[]", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts meta.type.tuple.sts meta.brace.square.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "null", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.language.null.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/assert_java.sts.json b/tests/vs_plugin/test/results/assert_java.sts.json new file mode 100644 index 000000000..a31d9e771 --- /dev/null +++ b/tests/vs_plugin/test/results/assert_java.sts.json @@ -0,0 +1,238 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.test.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "test_assert", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "test", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "x", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "assert", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.assert.sts" + }, + { + "c": "x", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ">", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.relational.sts" + }, + { + "c": "10", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "assert", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.assert.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "x", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "!=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "assert", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.assert.sts" + }, + { + "c": "x", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ">", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.relational.sts" + }, + { + "c": "10", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": "||", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.logical.sts" + }, + { + "c": "x", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.relational.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": " : ", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "inside interval!", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "assert", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.assert.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "x", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.relational.sts" + }, + { + "c": "10", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": "&&", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.logical.sts" + }, + { + "c": "x", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ">", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.relational.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": " : ", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "outside interval!", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/assign_sts.json b/tests/vs_plugin/test/results/assign_sts.json new file mode 100644 index 000000000..1e43f73cc --- /dev/null +++ b/tests/vs_plugin/test/results/assign_sts.json @@ -0,0 +1,90 @@ +[ + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "0", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "const", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.constant.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "1", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "function", + "t": "source.sts meta.function.sts storage.type.function.sts" + }, + { + "c": "main", + "t": "source.sts meta.function.sts meta.definition.function.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.function.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "a", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "b", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/assignments_java.sts.json b/tests/vs_plugin/test/results/assignments_java.sts.json new file mode 100644 index 000000000..bf8756a90 --- /dev/null +++ b/tests/vs_plugin/test/results/assignments_java.sts.json @@ -0,0 +1,350 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.test.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "AssignmentsTest", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "Test", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "10", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "+=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.compound.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "-=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.compound.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "*=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.compound.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "/=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.compound.sts" + }, + { + "c": "4", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "%=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.compound.sts" + }, + { + "c": "5", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "10", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ">>=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.compound.bitwise.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ">>>=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.compound.bitwise.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "<<=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.compound.bitwise.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "10", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "&=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.compound.bitwise.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "|=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.compound.bitwise.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "^=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.compound.bitwise.sts" + }, + { + "c": "4", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "10", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/binary_op_sts.json b/tests/vs_plugin/test/results/binary_op_sts.json new file mode 100644 index 000000000..0b8efdbd5 --- /dev/null +++ b/tests/vs_plugin/test/results/binary_op_sts.json @@ -0,0 +1,702 @@ +[ + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "1", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "2", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "bool1", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "true", + "t": "source.sts meta.var.expr.sts constant.language.boolean.true.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "bool2", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "false", + "t": "source.sts meta.var.expr.sts constant.language.boolean.false.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b01", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": "*", + "t": "source.sts meta.var.expr.sts keyword.operator.arithmetic.sts" + }, + { + "c": "b", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b02", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": "/", + "t": "source.sts meta.var.expr.sts keyword.operator.arithmetic.sts" + }, + { + "c": "b", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b03", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": "%", + "t": "source.sts meta.var.expr.sts keyword.operator.arithmetic.sts" + }, + { + "c": "b", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b04", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": "+", + "t": "source.sts meta.var.expr.sts keyword.operator.arithmetic.sts" + }, + { + "c": "b", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b05", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": "-", + "t": "source.sts meta.var.expr.sts keyword.operator.arithmetic.sts" + }, + { + "c": "b", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b06", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ">>", + "t": "source.sts meta.var.expr.sts keyword.operator.bitwise.shift.sts" + }, + { + "c": "b", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b07", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": "<<", + "t": "source.sts meta.var.expr.sts keyword.operator.bitwise.shift.sts" + }, + { + "c": "b", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b08", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ">>>", + "t": "source.sts meta.var.expr.sts keyword.operator.bitwise.shift.sts" + }, + { + "c": "b", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b09", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": "&", + "t": "source.sts meta.var.expr.sts keyword.operator.bitwise.sts" + }, + { + "c": "b", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b10", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": "^", + "t": "source.sts meta.var.expr.sts keyword.operator.bitwise.sts" + }, + { + "c": "b", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b11", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ">", + "t": "source.sts meta.var.expr.sts keyword.operator.relational.sts" + }, + { + "c": "b", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b12", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": "<", + "t": "source.sts meta.var.expr.sts keyword.operator.relational.sts" + }, + { + "c": "b", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b13", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ">=", + "t": "source.sts meta.var.expr.sts keyword.operator.relational.sts" + }, + { + "c": "b", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b14", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": "<=", + "t": "source.sts meta.var.expr.sts keyword.operator.relational.sts" + }, + { + "c": "b", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b15", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": "!=", + "t": "source.sts meta.var.expr.sts keyword.operator.comparison.sts" + }, + { + "c": "b", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b16", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "bool1", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": "&&", + "t": "source.sts meta.var.expr.sts keyword.operator.logical.sts" + }, + { + "c": "bool2", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b17", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "bool1", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": "||", + "t": "source.sts meta.var.expr.sts keyword.operator.logical.sts" + }, + { + "c": "bool2", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b18", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": "==", + "t": "source.sts meta.var.expr.sts keyword.operator.comparison.sts" + }, + { + "c": "b", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b19", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": "*", + "t": "source.sts meta.var.expr.sts keyword.operator.arithmetic.sts" + }, + { + "c": "b", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ">>>", + "t": "source.sts meta.var.expr.sts keyword.operator.bitwise.shift.sts" + }, + { + "c": "b", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": "-", + "t": "source.sts meta.var.expr.sts keyword.operator.arithmetic.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b20", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ">", + "t": "source.sts meta.var.expr.sts keyword.operator.relational.sts" + }, + { + "c": "b", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": "&&", + "t": "source.sts meta.var.expr.sts keyword.operator.logical.sts" + }, + { + "c": "bool1", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": "||", + "t": "source.sts meta.var.expr.sts keyword.operator.logical.sts" + }, + { + "c": "bool2", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b21", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "b01", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": "|", + "t": "source.sts meta.var.expr.sts keyword.operator.bitwise.sts" + }, + { + "c": "b02", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/binary_operations_java.sts.json b/tests/vs_plugin/test/results/binary_operations_java.sts.json new file mode 100644 index 000000000..f817240ff --- /dev/null +++ b/tests/vs_plugin/test/results/binary_operations_java.sts.json @@ -0,0 +1,1174 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.test.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "export", + "t": "source.sts meta.class.sts keyword.control.export.ts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "binary_operations", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "sum1", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": "+", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.arithmetic.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "sum2", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": "+", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.arithmetic.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": "-", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.arithmetic.sts" + }, + { + "c": "4", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": "+", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.arithmetic.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "sub1", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "8", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": "-", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.arithmetic.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "sub2", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "8", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": "-", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.arithmetic.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": "+", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.arithmetic.sts" + }, + { + "c": "8", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "rem1", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "5", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": "%", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.arithmetic.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "rem2", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "5", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": "%", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.arithmetic.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": "-", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.arithmetic.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": "*", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.arithmetic.sts" + }, + { + "c": "8", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "mult1", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "float", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "6", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": "*", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.arithmetic.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "14", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "mult2", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "double", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "6", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": "*", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.arithmetic.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.brace.round.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "7", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": "+", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.arithmetic.sts" + }, + { + "c": "8", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "18", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.brace.round.sts" + }, + { + "c": "/", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.arithmetic.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "div1", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "float", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "4", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": "/", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.arithmetic.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "div2", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "double", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "4", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": "/", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.arithmetic.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.brace.round.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": "-", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.arithmetic.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.brace.round.sts" + }, + { + "c": "+", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.arithmetic.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.brace.round.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": "/", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.arithmetic.sts" + }, + { + "c": "6", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "lsh", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "7", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": "<<", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.bitwise.shift.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "rsh1", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "7", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ">>", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.bitwise.shift.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "rsh2", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "7", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ">>>", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.bitwise.shift.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "bit1", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "7", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": "&", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.bitwise.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "bit2", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "7", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": "|", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.bitwise.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "bit3", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "7", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": "^", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.bitwise.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "b1", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "boolean", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.relational.sts" + }, + { + "c": "8", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "b2", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "boolean", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": "<=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.relational.sts" + }, + { + "c": "7", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "b3", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "boolean", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ">=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.relational.sts" + }, + { + "c": "7", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "b4", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "boolean", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ">", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.relational.sts" + }, + { + "c": "8", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "b5", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "boolean", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "7", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": "==", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.comparison.sts" + }, + { + "c": "8", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "b6", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "boolean", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "7", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": "!=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.comparison.sts" + }, + { + "c": "4", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "b7", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "boolean", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.brace.round.sts" + }, + { + "c": "7", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.relational.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.brace.round.sts" + }, + { + "c": "&&", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.logical.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.brace.round.sts" + }, + { + "c": "8", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ">", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.relational.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "b8", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "boolean", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.brace.round.sts" + }, + { + "c": "7", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.relational.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.brace.round.sts" + }, + { + "c": "||", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.logical.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.brace.round.sts" + }, + { + "c": "8", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ">", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.relational.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/boolean_cond_sts.json b/tests/vs_plugin/test/results/boolean_cond_sts.json new file mode 100644 index 000000000..f669b675a --- /dev/null +++ b/tests/vs_plugin/test/results/boolean_cond_sts.json @@ -0,0 +1,90 @@ +[ + { + "c": "function", + "t": "source.sts meta.function.sts storage.type.function.sts" + }, + { + "c": "main", + "t": "source.sts meta.function.sts meta.definition.function.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.function.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "true", + "t": "source.sts meta.function.sts meta.block.sts constant.language.boolean.true.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "1", + "t": "source.sts meta.function.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ">", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.relational.sts" + }, + { + "c": "2", + "t": "source.sts meta.function.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/boolean_sts.json b/tests/vs_plugin/test/results/boolean_sts.json new file mode 100644 index 000000000..952c0d281 --- /dev/null +++ b/tests/vs_plugin/test/results/boolean_sts.json @@ -0,0 +1,50 @@ +[ + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "boolean", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "true", + "t": "source.sts meta.var.expr.sts constant.language.boolean.true.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "const", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "f", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.constant.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "false", + "t": "source.sts meta.var.expr.sts constant.language.boolean.false.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/break_sts.json b/tests/vs_plugin/test/results/break_sts.json new file mode 100644 index 000000000..fd13a17c5 --- /dev/null +++ b/tests/vs_plugin/test/results/break_sts.json @@ -0,0 +1,146 @@ +[ + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "[", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": "1", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "2", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "3", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts constant.numeric.decimal.ts" + }, + { + "c": "]", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "function", + "t": "source.sts meta.function.sts storage.type.function.sts" + }, + { + "c": "main", + "t": "source.sts meta.function.sts meta.definition.function.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.function.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "for", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "let", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "v", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "of", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.expression.of.sts" + }, + { + "c": "a", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "v", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "==", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "2", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "break", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/calls_sts.json b/tests/vs_plugin/test/results/calls_sts.json new file mode 100644 index 000000000..732c9fb0d --- /dev/null +++ b/tests/vs_plugin/test/results/calls_sts.json @@ -0,0 +1,210 @@ +[ + { + "c": "function", + "t": "source.sts meta.function.sts storage.type.function.sts" + }, + { + "c": "bar", + "t": "source.sts meta.function.sts meta.definition.function.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "x", + "t": "source.sts meta.function.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.function.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ",", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "y", + "t": "source.sts meta.function.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "float", + "t": "source.sts meta.function.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.function.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "x", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "function", + "t": "source.sts meta.function.sts storage.type.function.sts" + }, + { + "c": "foo", + "t": "source.sts meta.function.sts meta.definition.function.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "x", + "t": "source.sts meta.function.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.function.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.function.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "bar", + "t": "source.sts meta.function.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "x", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ",", + "t": "source.sts meta.function.sts meta.block.sts punctuation.separator.comma.sts" + }, + { + "c": "30", + "t": "source.sts meta.function.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "function", + "t": "source.sts meta.function.sts storage.type.function.sts" + }, + { + "c": "main", + "t": "source.sts meta.function.sts meta.definition.function.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.function.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "main", + "t": "source.sts meta.function.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "()", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "foo", + "t": "source.sts meta.function.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "11", + "t": "source.sts meta.function.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/cast_expressions_sts.json b/tests/vs_plugin/test/results/cast_expressions_sts.json new file mode 100644 index 000000000..46002c0be --- /dev/null +++ b/tests/vs_plugin/test/results/cast_expressions_sts.json @@ -0,0 +1,94 @@ +[ + { + "c": "//", + "t": "source.sts comment.line.double-slash.sts punctuation.definition.comment.sts" + }, + { + "c": " see 5.12 Cast Expressions", + "t": "source.sts comment.line.double-slash.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "5", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": "as", + "t": "source.sts meta.var.expr.sts keyword.control.as.sts" + }, + { + "c": "int", + "t": "source.sts meta.var.expr.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "5", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": "as", + "t": "source.sts meta.var.expr.sts keyword.control.as.sts" + }, + { + "c": "object", + "t": "source.sts meta.var.expr.sts support.type.builtin.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "c", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "5", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": "as", + "t": "source.sts meta.var.expr.sts keyword.control.as.sts" + }, + { + "c": "Int", + "t": "source.sts meta.var.expr.sts entity.name.type.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/class_init_sts.json b/tests/vs_plugin/test/results/class_init_sts.json new file mode 100644 index 000000000..ff86ceac7 --- /dev/null +++ b/tests/vs_plugin/test/results/class_init_sts.json @@ -0,0 +1,74 @@ +[ + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "C", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "x", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "x", + "t": "source.sts meta.class.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "30", + "t": "source.sts meta.class.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": "*", + "t": "source.sts meta.class.sts meta.block.sts keyword.operator.arithmetic.sts" + }, + { + "c": "99", + "t": "source.sts meta.class.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/class_instance_creation_java.sts.json b/tests/vs_plugin/test/results/class_instance_creation_java.sts.json new file mode 100644 index 000000000..15b744295 --- /dev/null +++ b/tests/vs_plugin/test/results/class_instance_creation_java.sts.json @@ -0,0 +1,442 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.test.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "class_instance_creation", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "constructor", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.type.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "constructor", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.type.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "constructor", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.type.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "s", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "d", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "double", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "foo", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "inst1", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "class_instance_creation", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "class_instance_creation", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "()", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "inst2", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "class_instance_creation", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "class_instance_creation", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "inst3", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "class_instance_creation", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "class_instance_creation", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "ss", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "7", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "8", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "inst4", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "class_instance_creation", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "class_instance_creation", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts punctuation.section.anonymous-class.begin.bracket.curly.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts storage.modifier.sts" + }, + { + "c": "f", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts storage.modifier.sts" + }, + { + "c": "override", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "foo", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "f", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts punctuation.section.anonymous-class.end.bracket.curly.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/class_instance_initializer_java.sts.json b/tests/vs_plugin/test/results/class_instance_initializer_java.sts.json new file mode 100644 index 000000000..fdd25f292 --- /dev/null +++ b/tests/vs_plugin/test/results/class_instance_initializer_java.sts.json @@ -0,0 +1,798 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.test.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "A", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "constructor", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.type.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "4", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "10", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "20", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "constructor", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.type.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "p", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "this", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.language.this.sts" + }, + { + "c": "()", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "30", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "40", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "constructor", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.type.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "s", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "4", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "50", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "60", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "B", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "extends", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "A", + "t": "source.sts meta.class.sts entity.other.inherited-class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "c", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "11", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "d", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "33", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "constructor", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.type.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "c", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "+=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.compound.sts" + }, + { + "c": "22", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "d", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "-=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.compound.sts" + }, + { + "c": "44", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "c", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "100", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "d", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "200", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "constructor", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.type.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "p", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "this", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.language.this.sts" + }, + { + "c": "()", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "c", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "300", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "d", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "400", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "constructor", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.type.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "s", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "super", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.language.super.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "c", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "+=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.compound.sts" + }, + { + "c": "22", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "d", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "-=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.compound.sts" + }, + { + "c": "44", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "c", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "500", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "d", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "600", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "C", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "foo", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "constructor", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.type.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "foo", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "bar", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/class_static_initializer_java.sts.json b/tests/vs_plugin/test/results/class_static_initializer_java.sts.json new file mode 100644 index 000000000..0deb8a2e3 --- /dev/null +++ b/tests/vs_plugin/test/results/class_static_initializer_java.sts.json @@ -0,0 +1,166 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.test.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "MyClass", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "+=", + "t": "source.sts meta.class.sts meta.block.sts keyword.operator.assignment.compound.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "5", + "t": "source.sts meta.class.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "-=", + "t": "source.sts meta.class.sts meta.block.sts keyword.operator.assignment.compound.sts" + }, + { + "c": "6", + "t": "source.sts meta.class.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "4", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/classes_sts.json b/tests/vs_plugin/test/results/classes_sts.json new file mode 100644 index 000000000..c21679f02 --- /dev/null +++ b/tests/vs_plugin/test/results/classes_sts.json @@ -0,0 +1,82 @@ +[ + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "C1", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "abstract ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "C2", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "C3", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "C4", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "extends", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "C3", + "t": "source.sts meta.class.sts entity.other.inherited-class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/comment_block_sts.json b/tests/vs_plugin/test/results/comment_block_sts.json new file mode 100644 index 000000000..1e4912f69 --- /dev/null +++ b/tests/vs_plugin/test/results/comment_block_sts.json @@ -0,0 +1,66 @@ +[ + { + "c": "/**/", + "t": "source.sts comment.block.sts punctuation.definition.comment.sts" + }, + { + "c": "/*", + "t": "source.sts comment.block.sts punctuation.definition.comment.sts" + }, + { + "c": " block", + "t": "source.sts comment.block.sts" + }, + { + "c": "*/", + "t": "source.sts comment.block.sts punctuation.definition.comment.sts" + }, + { + "c": "/*", + "t": "source.sts comment.block.sts punctuation.definition.comment.sts" + }, + { + "c": "/*", + "t": "source.sts comment.block.sts comment.block.sts punctuation.definition.comment.sts" + }, + { + "c": " nested block", + "t": "source.sts comment.block.sts comment.block.sts" + }, + { + "c": "*/", + "t": "source.sts comment.block.sts comment.block.sts punctuation.definition.comment.sts" + }, + { + "c": "*/", + "t": "source.sts comment.block.sts punctuation.definition.comment.sts" + }, + { + "c": "/*", + "t": "source.sts comment.block.sts punctuation.definition.comment.sts" + }, + { + "c": " // nested one-liner", + "t": "source.sts comment.block.sts" + }, + { + "c": "*/", + "t": "source.sts comment.block.sts punctuation.definition.comment.sts" + }, + { + "c": "//", + "t": "source.sts comment.line.double-slash.sts punctuation.definition.comment.sts" + }, + { + "c": " /*", + "t": "source.sts comment.line.double-slash.sts" + }, + { + "c": "//", + "t": "source.sts comment.line.double-slash.sts punctuation.definition.comment.sts" + }, + { + "c": " */", + "t": "source.sts comment.line.double-slash.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/comment_line_sts.json b/tests/vs_plugin/test/results/comment_line_sts.json new file mode 100644 index 000000000..78255097a --- /dev/null +++ b/tests/vs_plugin/test/results/comment_line_sts.json @@ -0,0 +1,10 @@ +[ + { + "c": "//", + "t": "source.sts comment.line.double-slash.sts punctuation.definition.comment.sts" + }, + { + "c": " one-liner", + "t": "source.sts comment.line.double-slash.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/conditional_expression_java.sts.json b/tests/vs_plugin/test/results/conditional_expression_java.sts.json new file mode 100644 index 000000000..eb9c65929 --- /dev/null +++ b/tests/vs_plugin/test/results/conditional_expression_java.sts.json @@ -0,0 +1,206 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.tests.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "ConditionalExpression", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "Test", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "value1", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "value2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "result", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "someCondition", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "boolean", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "true", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.language.boolean.true.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "result", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "someCondition", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "?", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.ternary.sts" + }, + { + "c": "value1", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.ternary.sts" + }, + { + "c": "value2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/const_sts.json b/tests/vs_plugin/test/results/const_sts.json new file mode 100644 index 000000000..1b5b6bf47 --- /dev/null +++ b/tests/vs_plugin/test/results/const_sts.json @@ -0,0 +1,58 @@ +[ + { + "c": "const", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "x", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.constant.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "1", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "const", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "y", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.constant.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "string", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "\"", + "t": "source.sts meta.var.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "Hello", + "t": "source.sts meta.var.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.var.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/constructor_test_java.sts.json b/tests/vs_plugin/test/results/constructor_test_java.sts.json new file mode 100644 index 000000000..b1411c931 --- /dev/null +++ b/tests/vs_plugin/test/results/constructor_test_java.sts.json @@ -0,0 +1,346 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.tests.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "export", + "t": "source.sts meta.class.sts keyword.control.export.ts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "constructor_test", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "constructor", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.type.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "this", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.language.this.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "protected", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "constructor", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.type.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "double", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "c", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "char", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "constructor", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.type.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "derived", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "extends", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "constructor_test", + "t": "source.sts meta.class.sts entity.other.inherited-class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "constructor", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.type.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "this", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.language.this.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "5", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "protected", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "constructor", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.type.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "super", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.language.super.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.separator.comma.sts" + }, + { + "c": "'", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.single.sts punctuation.definition.string.begin.sts" + }, + { + "c": "c", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.single.sts" + }, + { + "c": "'", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.single.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.separator.comma.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/constructors_sts.json b/tests/vs_plugin/test/results/constructors_sts.json new file mode 100644 index 000000000..fb8795b2b --- /dev/null +++ b/tests/vs_plugin/test/results/constructors_sts.json @@ -0,0 +1,310 @@ +[ + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "C", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "protected", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "x", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "protected", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "y", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "float", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "constructor", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.type.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": "{}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "protected", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "constructor", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.type.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "x", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "this", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.language.this.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.accessor.sts" + }, + { + "c": "x", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.property.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "x", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "constructor", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.type.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "y", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "float", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "this", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.language.this.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "this", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.language.this.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.accessor.sts" + }, + { + "c": "y", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.property.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "y", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "I", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "protected", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "x", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "I1", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "extends", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "I", + "t": "source.sts meta.class.sts entity.other.inherited-class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "constructor", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.type.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "super", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.language.super.sts" + }, + { + "c": "()", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/continue_sts.json b/tests/vs_plugin/test/results/continue_sts.json new file mode 100644 index 000000000..f602fc429 --- /dev/null +++ b/tests/vs_plugin/test/results/continue_sts.json @@ -0,0 +1,146 @@ +[ + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "[", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": "1", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "2", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "3", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts constant.numeric.decimal.ts" + }, + { + "c": "]", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "function", + "t": "source.sts meta.function.sts storage.type.function.sts" + }, + { + "c": "main", + "t": "source.sts meta.function.sts meta.definition.function.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.function.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "for", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "let", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "v", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "of", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.expression.of.sts" + }, + { + "c": "a", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "v", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "==", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "2", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "continue", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/decl_infer_sts.json b/tests/vs_plugin/test/results/decl_infer_sts.json new file mode 100644 index 000000000..a302481a4 --- /dev/null +++ b/tests/vs_plugin/test/results/decl_infer_sts.json @@ -0,0 +1,250 @@ +[ + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "li", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "0", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "ld", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "0", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "0", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "lc", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "'", + "t": "source.sts meta.var.expr.sts string.quoted.single.sts punctuation.definition.string.begin.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts string.quoted.single.sts" + }, + { + "c": "'", + "t": "source.sts meta.var.expr.sts string.quoted.single.sts punctuation.definition.string.end.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "ls", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "\"", + "t": "source.sts meta.var.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "11", + "t": "source.sts meta.var.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.var.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "lb", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "false", + "t": "source.sts meta.var.expr.sts constant.language.boolean.false.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "const", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "ci", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.constant.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "0", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "const", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "cd", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.constant.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "0", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "0", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "const", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "cc", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.constant.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "'", + "t": "source.sts meta.var.expr.sts string.quoted.single.sts punctuation.definition.string.begin.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts string.quoted.single.sts" + }, + { + "c": "'", + "t": "source.sts meta.var.expr.sts string.quoted.single.sts punctuation.definition.string.end.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "const", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "cs", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.constant.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "\"", + "t": "source.sts meta.var.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "11", + "t": "source.sts meta.var.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.var.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "const", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "cb", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.constant.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "false", + "t": "source.sts meta.var.expr.sts constant.language.boolean.false.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/empty_class_java.sts.json b/tests/vs_plugin/test/results/empty_class_java.sts.json new file mode 100644 index 000000000..e4a1c51f1 --- /dev/null +++ b/tests/vs_plugin/test/results/empty_class_java.sts.json @@ -0,0 +1,34 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.test.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "empty_class", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/empty_statement_java.sts.json b/tests/vs_plugin/test/results/empty_statement_java.sts.json new file mode 100644 index 000000000..75e778d2e --- /dev/null +++ b/tests/vs_plugin/test/results/empty_statement_java.sts.json @@ -0,0 +1,434 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.test.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "empty_statement", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "Test", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "10", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "for", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.relational.sts" + }, + { + "c": "10", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "++", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.increment.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "for", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "s", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "s", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.relational.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "++", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.increment.sts" + }, + { + "c": "s", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "for", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "c", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "char", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "of", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.expression.of.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "string", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "toCharArray", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "())", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "!=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "==", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "++", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.operator.increment.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "else", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "Run", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/enhanced_for_statement_java.sts.json b/tests/vs_plugin/test/results/enhanced_for_statement_java.sts.json new file mode 100644 index 000000000..04d6d3485 --- /dev/null +++ b/tests/vs_plugin/test/results/enhanced_for_statement_java.sts.json @@ -0,0 +1,342 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.test.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "import ", + "t": "source.sts meta.import.sts keyword.control.import.sts" + }, + { + "c": "java.util.Collection", + "t": "source.sts meta.import.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "import ", + "t": "source.sts meta.import.sts keyword.control.import.sts" + }, + { + "c": "java.util.ArrayList", + "t": "source.sts meta.import.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "EnhancedForStatements", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "Test", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "array", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "[]", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts meta.type.tuple.sts meta.brace.square.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "null", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.language.null.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "sum", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "for", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "num", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "of", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.expression.of.sts" + }, + { + "c": "array", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "sum", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "+=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.compound.sts" + }, + { + "c": "num", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "sum", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "list", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Collection", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts meta.type.parameters.sts punctuation.definition.typeparameters.begin.sts" + }, + { + "c": "Integer", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts meta.type.parameters.sts entity.name.type.sts" + }, + { + "c": ">", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts meta.type.parameters.sts punctuation.definition.typeparameters.end.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "ArrayList", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts new.expr.sts meta.type.parameters.sts punctuation.definition.typeparameters.begin.sts" + }, + { + "c": "Integer", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts new.expr.sts meta.type.parameters.sts entity.name.type.sts" + }, + { + "c": ">", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts new.expr.sts meta.type.parameters.sts punctuation.definition.typeparameters.end.sts" + }, + { + "c": "()", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "for", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "of", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.expression.of.sts" + }, + { + "c": "list", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "sum", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "+=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.operator.assignment.compound.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/enum_sts.json b/tests/vs_plugin/test/results/enum_sts.json new file mode 100644 index 000000000..0eb385088 --- /dev/null +++ b/tests/vs_plugin/test/results/enum_sts.json @@ -0,0 +1,98 @@ +[ + { + "c": "enum", + "t": "source.sts meta.enum.declaration.sts storage.type.enum.sts" + }, + { + "c": "Color", + "t": "source.sts meta.enum.declaration.sts entity.name.type.enum.sts" + }, + { + "c": "{", + "t": "source.sts meta.enum.declaration.sts punctuation.definition.block.sts" + }, + { + "c": "Red", + "t": "source.sts meta.enum.declaration.sts variable.other.enummember.sts" + }, + { + "c": ",", + "t": "source.sts meta.enum.declaration.sts punctuation.separator.comma.sts" + }, + { + "c": "Green", + "t": "source.sts meta.enum.declaration.sts variable.other.enummember.sts" + }, + { + "c": ",", + "t": "source.sts meta.enum.declaration.sts punctuation.separator.comma.sts" + }, + { + "c": "Blue", + "t": "source.sts meta.enum.declaration.sts variable.other.enummember.sts" + }, + { + "c": "}", + "t": "source.sts meta.enum.declaration.sts punctuation.definition.block.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "c", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "Color", + "t": "source.sts meta.var.expr.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.var.expr.sts punctuation.accessor.sts" + }, + { + "c": "Red", + "t": "source.sts meta.var.expr.sts variable.other.property.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "s", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "Color", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": "[", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": "c", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts variable.other.readwrite.sts" + }, + { + "c": "]", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/enum_with_class_behavior_java.sts.json b/tests/vs_plugin/test/results/enum_with_class_behavior_java.sts.json new file mode 100644 index 000000000..1f8170fb4 --- /dev/null +++ b/tests/vs_plugin/test/results/enum_with_class_behavior_java.sts.json @@ -0,0 +1,3422 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.test.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "interface", + "t": "source.sts meta.interface.sts storage.type.interface.sts" + }, + { + "c": "IOperation", + "t": "source.sts meta.interface.sts entity.name.type.interface.sts" + }, + { + "c": "{", + "t": "source.sts meta.interface.sts punctuation.definition.block.sts" + }, + { + "c": "apply", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "a", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ",", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "b", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.interface.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.interface.sts punctuation.definition.block.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "ArithmeticOperation", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "extends", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "Enum", + "t": "source.sts meta.class.sts entity.other.inherited-class.sts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.type.parameters.sts punctuation.definition.typeparameters.begin.sts" + }, + { + "c": "ArithmeticOperation", + "t": "source.sts meta.class.sts meta.type.parameters.sts entity.name.type.sts" + }, + { + "c": ">", + "t": "source.sts meta.class.sts meta.type.parameters.sts punctuation.definition.typeparameters.end.sts" + }, + { + "c": "implements", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "IOperation", + "t": "source.sts meta.class.sts entity.other.inherited-class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "PLUS", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "ArithmeticOperation", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "ArithmeticOperation", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "PLUS", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts punctuation.section.anonymous-class.begin.bracket.curly.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts storage.modifier.sts" + }, + { + "c": "override", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "apply", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "+", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts keyword.operator.arithmetic.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts punctuation.section.anonymous-class.end.bracket.curly.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "MINUS", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "ArithmeticOperation", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "ArithmeticOperation", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "MINUS", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts punctuation.section.anonymous-class.begin.bracket.curly.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts storage.modifier.sts" + }, + { + "c": "override", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "apply", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "-", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts keyword.operator.arithmetic.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts punctuation.section.anonymous-class.end.bracket.curly.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "MULTIPLY", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "ArithmeticOperation", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "ArithmeticOperation", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "MULTIPLY", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts punctuation.section.anonymous-class.begin.bracket.curly.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts storage.modifier.sts" + }, + { + "c": "override", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "apply", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "*", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts keyword.operator.arithmetic.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts punctuation.section.anonymous-class.end.bracket.curly.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "DIVIDE", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "ArithmeticOperation", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "ArithmeticOperation", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "DIVIDE", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts punctuation.section.anonymous-class.begin.bracket.curly.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts storage.modifier.sts" + }, + { + "c": "override", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "apply", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "/", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts keyword.operator.arithmetic.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts punctuation.section.anonymous-class.end.bracket.curly.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "foo", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "values", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "ArithmeticOperation", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts entity.name.type.sts" + }, + { + "c": "[]", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts meta.type.tuple.sts meta.brace.square.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "[", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": "PLUS", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "MINUS", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "MULTIPLY", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "DIVIDE", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": "]", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "valueOf", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "ArithmeticOperation", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts entity.name.type.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "for", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "value", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "ArithmeticOperation", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "of", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.expression.of.sts" + }, + { + "c": "values", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "())", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "==", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "value", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "toString", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "())", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "value", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "null", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.language.null.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "constructor", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.type.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "ordinal", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "super", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.language.super.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.separator.comma.sts" + }, + { + "c": "ordinal", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "foo", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "bar", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "extends", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "Enum", + "t": "source.sts meta.class.sts entity.other.inherited-class.sts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.type.parameters.sts punctuation.definition.typeparameters.begin.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.type.parameters.sts entity.name.type.sts" + }, + { + "c": ">", + "t": "source.sts meta.class.sts meta.type.parameters.sts punctuation.definition.typeparameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "MERCURY", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "MERCURY", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "303e+23", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "4397e6", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "VENUS", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "VENUS", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "4", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "869e+24", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "6", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "0518e6", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "EARTH", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "EARTH", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "5", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "976e+24", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "6", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "37814e6", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "MARS", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "MARS", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "6", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "421e+23", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "3972e6", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "JUPITER", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "JUPITER", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "4", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "9e+27", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "7", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "1492e7", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "PlanetType", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.accessor.sts" + }, + { + "c": "GAS", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts variable.other.constant.property.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "SATURN", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "SATURN", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "5", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "5", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "688e+26", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "6", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "0268e7", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "PlanetType", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.accessor.sts" + }, + { + "c": "GAS", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts variable.other.constant.property.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "URANUS", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "URANUS", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "6", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "8", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "686e+25", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "5559e7", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "PlanetType", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.accessor.sts" + }, + { + "c": "ICE", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts variable.other.constant.property.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "NEPTUNE", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "NEPTUNE", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "7", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "024e+26", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "4746e7", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "PlanetType", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.accessor.sts" + }, + { + "c": "ICE", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts variable.other.constant.property.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts meta.class.sts storage.type.class.sts" + }, + { + "c": "PlanetType", + "t": "source.sts meta.class.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "extends", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "Enum", + "t": "source.sts meta.class.sts meta.class.sts entity.other.inherited-class.sts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.class.sts meta.type.parameters.sts punctuation.definition.typeparameters.begin.sts" + }, + { + "c": "PlanetType", + "t": "source.sts meta.class.sts meta.class.sts meta.type.parameters.sts entity.name.type.sts" + }, + { + "c": ">", + "t": "source.sts meta.class.sts meta.class.sts meta.type.parameters.sts punctuation.definition.typeparameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "ROCK", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "PlanetType", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "PlanetType", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "ROCK", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "GAS", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "PlanetType", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "PlanetType", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "GAS", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "ICE", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "PlanetType", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "PlanetType", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "ICE", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "values", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "PlanetType", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts entity.name.type.sts" + }, + { + "c": "[]", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts meta.type.tuple.sts meta.brace.square.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "[", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": "ROCK", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "GAS", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "ICE", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": "]", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "valueOf", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "PlanetType", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts entity.name.type.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "for", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "value", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "PlanetType", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "of", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.expression.of.sts" + }, + { + "c": "values", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "())", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "==", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "value", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "toString", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "())", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "value", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "null", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.language.null.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "constructor", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts storage.type.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "ordinal", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "super", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.language.super.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.separator.comma.sts" + }, + { + "c": "ordinal", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "mass", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "double", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "radius", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "double", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "type", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "PlanetType", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "constructor", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.type.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "ordinal", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "mass", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "double", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "radius", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "double", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "type", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "PlanetType", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "super", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.language.super.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.separator.comma.sts" + }, + { + "c": "ordinal", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "this", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.language.this.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.accessor.sts" + }, + { + "c": "mass", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.property.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "mass", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "this", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.language.this.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.accessor.sts" + }, + { + "c": "radius", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.property.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "radius", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "this", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.language.this.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.accessor.sts" + }, + { + "c": "type", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.property.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "type", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "constructor", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.type.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "ordinal", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "mass", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "double", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "radius", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "double", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "this", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.language.this.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.separator.comma.sts" + }, + { + "c": "ordinal", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.separator.comma.sts" + }, + { + "c": "mass", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.separator.comma.sts" + }, + { + "c": "radius", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.separator.comma.sts" + }, + { + "c": "PlanetType", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.accessor.sts" + }, + { + "c": "ROCK", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.constant.property.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "G", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "double", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "6", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "67300E-11", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "surfaceGravity", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "double", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "G", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.constant.sts" + }, + { + "c": "*", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.arithmetic.sts" + }, + { + "c": "mass", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "/", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.arithmetic.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "radius", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "*", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.arithmetic.sts" + }, + { + "c": "radius", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "surfaceWeight", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "otherMass", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "double", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "double", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "otherMass", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "*", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.arithmetic.sts" + }, + { + "c": "surfaceGravity", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "()", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "values", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts entity.name.type.sts" + }, + { + "c": "[]", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts meta.type.tuple.sts meta.brace.square.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "[", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": "MERCURY", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "VENUS", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "EARTH", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "MARS", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "JUPITER", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "SATURN", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "URANUS", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "NEPTUNE", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": "]", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "valueOf", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts entity.name.type.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "for", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "value", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "of", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.expression.of.sts" + }, + { + "c": "values", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "())", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "==", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "value", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "toString", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "())", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "value", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "null", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.language.null.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/exports_sts.json b/tests/vs_plugin/test/results/exports_sts.json new file mode 100644 index 000000000..0f2e90714 --- /dev/null +++ b/tests/vs_plugin/test/results/exports_sts.json @@ -0,0 +1,114 @@ +[ + { + "c": "export", + "t": "source.sts meta.var.expr.sts keyword.control.export.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "11", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "export", + "t": "source.sts meta.var.expr.sts keyword.control.export.sts" + }, + { + "c": "const", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.constant.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "12", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "export", + "t": "source.sts meta.function.sts keyword.control.export.sts" + }, + { + "c": "function", + "t": "source.sts meta.function.sts storage.type.function.sts" + }, + { + "c": "f", + "t": "source.sts meta.function.sts meta.definition.function.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.function.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{}", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "export", + "t": "source.sts meta.interface.sts keyword.control.export.sts" + }, + { + "c": "interface", + "t": "source.sts meta.interface.sts storage.type.interface.sts" + }, + { + "c": "I", + "t": "source.sts meta.interface.sts entity.name.type.interface.sts" + }, + { + "c": "{}", + "t": "source.sts meta.interface.sts punctuation.definition.block.sts" + }, + { + "c": "export", + "t": "source.sts meta.class.sts keyword.control.export.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "C", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/field_decl_java.sts.json b/tests/vs_plugin/test/results/field_decl_java.sts.json new file mode 100644 index 000000000..c112c824f --- /dev/null +++ b/tests/vs_plugin/test/results/field_decl_java.sts.json @@ -0,0 +1,294 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.test.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "export", + "t": "source.sts meta.class.sts keyword.control.export.ts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "field_decl", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "protected", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "char", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "protected", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "c", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "char", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "'", + "t": "source.sts meta.class.sts meta.field.declaration.sts string.quoted.single.sts punctuation.definition.string.begin.sts" + }, + { + "c": "c", + "t": "source.sts meta.class.sts meta.field.declaration.sts string.quoted.single.sts" + }, + { + "c": "'", + "t": "source.sts meta.class.sts meta.field.declaration.sts string.quoted.single.sts punctuation.definition.string.end.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "d", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "boolean", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "true", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.language.boolean.true.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "f", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "short", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "g", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "long", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "pi", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "float", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "14", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "e", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "double", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "71828", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "h", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "byte", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/fields_sts.json b/tests/vs_plugin/test/results/fields_sts.json new file mode 100644 index 000000000..5ef3b7e44 --- /dev/null +++ b/tests/vs_plugin/test/results/fields_sts.json @@ -0,0 +1,266 @@ +[ + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "C", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "x", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "y", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "float", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "d", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "//", + "t": "source.sts meta.class.sts comment.line.double-slash.sts punctuation.definition.comment.sts" + }, + { + "c": "const static static const const static e = 30;", + "t": "source.sts meta.class.sts comment.line.double-slash.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "e", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "30", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "f", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "g", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "30", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "f", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "30", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "protected", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "h", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "30", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/final_empty_class_java.sts.json b/tests/vs_plugin/test/results/final_empty_class_java.sts.json new file mode 100644 index 000000000..365fd84e6 --- /dev/null +++ b/tests/vs_plugin/test/results/final_empty_class_java.sts.json @@ -0,0 +1,34 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.test.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "export", + "t": "source.sts meta.class.sts keyword.control.export.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "final_empty_class", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/for_of_sts.json b/tests/vs_plugin/test/results/for_of_sts.json new file mode 100644 index 000000000..381cd40e6 --- /dev/null +++ b/tests/vs_plugin/test/results/for_of_sts.json @@ -0,0 +1,230 @@ +[ + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "[", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": "1", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "2", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "3", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts constant.numeric.decimal.ts" + }, + { + "c": "]", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "function", + "t": "source.sts meta.function.sts storage.type.function.sts" + }, + { + "c": "main", + "t": "source.sts meta.function.sts meta.definition.function.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.function.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "for", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "let", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "v", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "of", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.expression.of.sts" + }, + { + "c": "a", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "for", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "let", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "v", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "of", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.expression.of.sts" + }, + { + "c": "a", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "function", + "t": "source.sts meta.function.sts storage.type.function.sts" + }, + { + "c": "forins", + "t": "source.sts meta.function.sts meta.definition.function.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "char", + "t": "source.sts meta.function.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "for", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "let", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "i", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "of", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.expression.of.sts" + }, + { + "c": "\"", + "t": "source.sts meta.function.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "abcdef", + "t": "source.sts meta.function.sts meta.block.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.function.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "return", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "i", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/for_statement_java.sts.json b/tests/vs_plugin/test/results/for_statement_java.sts.json new file mode 100644 index 000000000..a18ac5f0e --- /dev/null +++ b/tests/vs_plugin/test/results/for_statement_java.sts.json @@ -0,0 +1,938 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.test.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "ForStatements", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "Test", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "for", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "for", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "for", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "++", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.operator.increment.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "==", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "continue", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "==", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "5", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "for", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.relational.sts" + }, + { + "c": "5", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "++", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.increment.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "for", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "--", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.decrement.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "==", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "for", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "j", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.relational.sts" + }, + { + "c": "5", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "++", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.increment.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.separator.comma.sts" + }, + { + "c": "j", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "++", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.increment.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "k", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": "*", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts keyword.operator.arithmetic.sts" + }, + { + "c": "j", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "for", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "5", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.separator.comma.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "5", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ">", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.relational.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "--", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.decrement.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.separator.comma.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "--", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.decrement.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "c", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": "/", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts keyword.operator.arithmetic.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "outerLoop", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts entity.name.label.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.separator.label.sts" + }, + { + "c": "for", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.relational.sts" + }, + { + "c": "5", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "++", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.increment.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "innerLoop", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts entity.name.label.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.separator.label.sts" + }, + { + "c": "for", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "j", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "j", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.operator.relational.sts" + }, + { + "c": "5", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "j", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "++", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.operator.increment.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "j", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "==", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "continue", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "innerLoop", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts entity.name.label.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "*", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts keyword.operator.arithmetic.sts" + }, + { + "c": "j", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "==", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "20", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "outerLoop", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts entity.name.label.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/for_with_break_sts.json b/tests/vs_plugin/test/results/for_with_break_sts.json new file mode 100644 index 000000000..924ad2d9f --- /dev/null +++ b/tests/vs_plugin/test/results/for_with_break_sts.json @@ -0,0 +1,218 @@ +[ + { + "c": "function", + "t": "source.sts meta.function.sts storage.type.function.sts" + }, + { + "c": "main", + "t": "source.sts meta.function.sts meta.definition.function.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.function.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "let", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "n", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "0", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "for", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "let", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "i", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "1", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "i", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "<", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.relational.sts" + }, + { + "c": "1000", + "t": "source.sts meta.function.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "i", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "+=", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.assignment.compound.sts" + }, + { + "c": "1", + "t": "source.sts meta.function.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "i", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "%", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.operator.arithmetic.sts" + }, + { + "c": "2", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": "==", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "0", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "n", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "+=", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.block.sts keyword.operator.assignment.compound.sts" + }, + { + "c": "1", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "n", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "==", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "10", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "break", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/function_decl_sts.json b/tests/vs_plugin/test/results/function_decl_sts.json new file mode 100644 index 000000000..3309fadbe --- /dev/null +++ b/tests/vs_plugin/test/results/function_decl_sts.json @@ -0,0 +1,82 @@ +[ + { + "c": "function", + "t": "source.sts meta.function.sts storage.type.function.sts" + }, + { + "c": "foo", + "t": "source.sts meta.function.sts meta.definition.function.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "a", + "t": "source.sts meta.function.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.function.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ",", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "b", + "t": "source.sts meta.function.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "float", + "t": "source.sts meta.function.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ",", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "...", + "t": "source.sts meta.function.sts meta.parameters.sts keyword.operator.rest.sts" + }, + { + "c": "c", + "t": "source.sts meta.function.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.function.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "[]", + "t": "source.sts meta.function.sts meta.parameters.sts meta.type.annotation.sts meta.type.tuple.sts meta.brace.square.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "boolean", + "t": "source.sts meta.function.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{}", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/function_sts.json b/tests/vs_plugin/test/results/function_sts.json new file mode 100644 index 000000000..6aee79b0b --- /dev/null +++ b/tests/vs_plugin/test/results/function_sts.json @@ -0,0 +1,346 @@ +[ + { + "c": "function", + "t": "source.sts meta.function.sts storage.type.function.sts" + }, + { + "c": "attr", + "t": "source.sts meta.function.sts meta.definition.function.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "name", + "t": "source.sts meta.function.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "string", + "t": "source.sts meta.function.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "string", + "t": "source.sts meta.function.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "\"", + "t": "source.sts meta.function.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "\"", + "t": "source.sts meta.function.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "function", + "t": "source.sts meta.function.sts storage.type.function.sts" + }, + { + "c": "attr", + "t": "source.sts meta.function.sts meta.definition.function.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "name", + "t": "source.sts meta.function.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "string", + "t": "source.sts meta.function.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ",", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "value", + "t": "source.sts meta.function.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "string", + "t": "source.sts meta.function.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.function.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "0", + "t": "source.sts meta.function.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "function", + "t": "source.sts meta.function.sts storage.type.function.sts" + }, + { + "c": "attr", + "t": "source.sts meta.function.sts meta.definition.function.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "map", + "t": "source.sts meta.function.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Object", + "t": "source.sts meta.function.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.function.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "-", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.arithmetic.sts" + }, + { + "c": "1", + "t": "source.sts meta.function.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "function", + "t": "source.sts meta.function.sts storage.type.function.sts" + }, + { + "c": "attr", + "t": "source.sts meta.function.sts meta.definition.function.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "nameOrMap", + "t": "source.sts meta.function.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Object", + "t": "source.sts meta.function.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ",", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "value", + "t": "source.sts meta.function.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "string", + "t": "source.sts meta.function.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Object", + "t": "source.sts meta.function.sts meta.return.type.sts entity.name.type.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "null", + "t": "source.sts meta.function.sts meta.block.sts constant.language.null.sts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "//", + "t": "source.sts comment.line.double-slash.sts punctuation.definition.comment.sts" + }, + { + "c": " see 5.16", + "t": "source.sts comment.line.double-slash.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "int2str", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts entity.name.function.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "(", + "t": "source.sts meta.var.expr.sts meta.arrow.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "i", + "t": "source.sts meta.var.expr.sts meta.arrow.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.arrow.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.var.expr.sts meta.arrow.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.var.expr.sts meta.arrow.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.arrow.sts meta.return.type.arrow.sts keyword.operator.type.annotation.sts" + }, + { + "c": "string", + "t": "source.sts meta.var.expr.sts meta.arrow.sts meta.return.type.arrow.sts support.type.primitive.sts" + }, + { + "c": "=>", + "t": "source.sts meta.var.expr.sts meta.arrow.sts storage.type.function.arrow.sts" + }, + { + "c": "{", + "t": "source.sts meta.var.expr.sts meta.arrow.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.var.expr.sts meta.arrow.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "\"", + "t": "source.sts meta.var.expr.sts meta.arrow.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "\"", + "t": "source.sts meta.var.expr.sts meta.arrow.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ";", + "t": "source.sts meta.var.expr.sts meta.arrow.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.var.expr.sts meta.arrow.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/generic_function_sts.json b/tests/vs_plugin/test/results/generic_function_sts.json new file mode 100644 index 000000000..841fb651d --- /dev/null +++ b/tests/vs_plugin/test/results/generic_function_sts.json @@ -0,0 +1,266 @@ +[ + { + "c": "interface", + "t": "source.sts meta.interface.sts storage.type.interface.sts" + }, + { + "c": "Comparable", + "t": "source.sts meta.interface.sts entity.name.type.interface.sts" + }, + { + "c": "{", + "t": "source.sts meta.interface.sts punctuation.definition.block.sts" + }, + { + "c": "localeCompare", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "other", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Object", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ")", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.interface.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.interface.sts punctuation.definition.block.sts" + }, + { + "c": "function", + "t": "source.sts meta.function.sts storage.type.function.sts" + }, + { + "c": "compare", + "t": "source.sts meta.function.sts meta.definition.function.sts entity.name.function.sts" + }, + { + "c": "<", + "t": "source.sts meta.function.sts meta.type.parameters.sts punctuation.definition.typeparameters.begin.sts" + }, + { + "c": "T", + "t": "source.sts meta.function.sts meta.type.parameters.sts entity.name.type.sts" + }, + { + "c": "extends", + "t": "source.sts meta.function.sts meta.type.parameters.sts storage.modifier.sts" + }, + { + "c": "Comparable", + "t": "source.sts meta.function.sts meta.type.parameters.sts entity.name.type.sts" + }, + { + "c": ">", + "t": "source.sts meta.function.sts meta.type.parameters.sts punctuation.definition.typeparameters.end.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "x", + "t": "source.sts meta.function.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "T", + "t": "source.sts meta.function.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ",", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "y", + "t": "source.sts meta.function.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "T", + "t": "source.sts meta.function.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.function.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "x", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "==", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "null", + "t": "source.sts meta.function.sts meta.block.sts constant.language.null.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "return", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "y", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "==", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "null", + "t": "source.sts meta.function.sts meta.block.sts constant.language.null.sts" + }, + { + "c": "?", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.ternary.sts" + }, + { + "c": "0", + "t": "source.sts meta.function.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.ternary.sts" + }, + { + "c": "-", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.arithmetic.sts" + }, + { + "c": "1", + "t": "source.sts meta.function.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "if", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "y", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "==", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "null", + "t": "source.sts meta.function.sts meta.block.sts constant.language.null.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "return", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "1", + "t": "source.sts meta.function.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "return", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "x", + "t": "source.sts meta.function.sts meta.block.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.function.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "localeCompare", + "t": "source.sts meta.function.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "y", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/identifier_sts.json b/tests/vs_plugin/test/results/identifier_sts.json new file mode 100644 index 000000000..a9bb5301a --- /dev/null +++ b/tests/vs_plugin/test/results/identifier_sts.json @@ -0,0 +1,94 @@ +[ + { + "c": "//", + "t": "source.sts comment.line.double-slash.sts punctuation.definition.comment.sts" + }, + { + "c": " see 2.3 Identifiers", + "t": "source.sts comment.line.double-slash.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "simple_ident", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "1", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "_underscore_ident", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "2", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "$dollar_ident", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "3", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/if_java.sts.json b/tests/vs_plugin/test/results/if_java.sts.json new file mode 100644 index 000000000..d0033a75b --- /dev/null +++ b/tests/vs_plugin/test/results/if_java.sts.json @@ -0,0 +1,974 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.test.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "IfTest", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "Test", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "t", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "boolean", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "true", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.language.boolean.true.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "t", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "t", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "else", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "t", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "4", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "100", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "t", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "5", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "101", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "else", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "6", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "102", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "t", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "7", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "else", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "8", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "103", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "t", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "9", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "104", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "else", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "10", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "p", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "boolean", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "false", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.language.boolean.false.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "t", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "p", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "11", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "else", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "12", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "t", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "13", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "else", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "p", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "14", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "t", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "15", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "else", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "p", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "16", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "else", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "17", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "t", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "p", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "18", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "105", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "else", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "19", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "106", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "else", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "p", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "20", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "else", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "21", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/ifs_sts.json b/tests/vs_plugin/test/results/ifs_sts.json new file mode 100644 index 000000000..31ad1855c --- /dev/null +++ b/tests/vs_plugin/test/results/ifs_sts.json @@ -0,0 +1,210 @@ +[ + { + "c": "function", + "t": "source.sts meta.function.sts storage.type.function.sts" + }, + { + "c": "foo", + "t": "source.sts meta.function.sts meta.definition.function.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.function.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "false", + "t": "source.sts meta.function.sts meta.block.sts constant.language.boolean.false.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "return", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "0", + "t": "source.sts meta.function.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "if", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "false", + "t": "source.sts meta.function.sts meta.block.sts constant.language.boolean.false.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "return", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "1", + "t": "source.sts meta.function.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "else", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "false", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts constant.language.boolean.false.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "return", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "2", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "else", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "if", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "false", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts constant.language.boolean.false.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "return", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "3", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "else", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "if", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "false", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts constant.language.boolean.false.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "return", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "4", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "else", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "return", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "5", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/inheritance_java.sts.json b/tests/vs_plugin/test/results/inheritance_java.sts.json new file mode 100644 index 000000000..797fe9419 --- /dev/null +++ b/tests/vs_plugin/test/results/inheritance_java.sts.json @@ -0,0 +1,202 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.tests.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "interface", + "t": "source.sts meta.interface.sts storage.type.interface.sts" + }, + { + "c": "interface_a", + "t": "source.sts meta.interface.sts entity.name.type.interface.sts" + }, + { + "c": "{", + "t": "source.sts meta.interface.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.interface.sts punctuation.definition.block.sts" + }, + { + "c": "interface", + "t": "source.sts meta.interface.sts storage.type.interface.sts" + }, + { + "c": "interface_b", + "t": "source.sts meta.interface.sts entity.name.type.interface.sts" + }, + { + "c": "{", + "t": "source.sts meta.interface.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.interface.sts punctuation.definition.block.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "base_class", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "public_class", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "extends", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "base_class", + "t": "source.sts meta.class.sts entity.other.inherited-class.sts" + }, + { + "c": "implements", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "interface_a", + "t": "source.sts meta.class.sts entity.other.inherited-class.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts punctuation.separator.comma.sts" + }, + { + "c": "interface_b", + "t": "source.sts meta.class.sts entity.other.inherited-class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "final_class", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "extends", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "base_class", + "t": "source.sts meta.class.sts entity.other.inherited-class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "abstract ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "abstract_class", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "extends", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "base_class", + "t": "source.sts meta.class.sts entity.other.inherited-class.sts" + }, + { + "c": "implements", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "interface_b", + "t": "source.sts meta.class.sts entity.other.inherited-class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "export", + "t": "source.sts meta.class.sts keyword.control.export.ts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "inheritance", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "extends", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "base_class", + "t": "source.sts meta.class.sts entity.other.inherited-class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/instanceof_sts.json b/tests/vs_plugin/test/results/instanceof_sts.json new file mode 100644 index 000000000..7cc98558b --- /dev/null +++ b/tests/vs_plugin/test/results/instanceof_sts.json @@ -0,0 +1,114 @@ +[ + { + "c": "function", + "t": "source.sts meta.function.sts storage.type.function.sts" + }, + { + "c": "t", + "t": "source.sts meta.function.sts meta.definition.function.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "v", + "t": "source.sts meta.function.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Object", + "t": "source.sts meta.function.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.function.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "v", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "instanceof", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.expression.instanceof.sts" + }, + { + "c": "string", + "t": "source.sts meta.function.sts meta.block.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "1", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "else", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "2", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/interface_sts.json b/tests/vs_plugin/test/results/interface_sts.json new file mode 100644 index 000000000..7671b5eb4 --- /dev/null +++ b/tests/vs_plugin/test/results/interface_sts.json @@ -0,0 +1,58 @@ +[ + { + "c": "interface", + "t": "source.sts meta.interface.sts storage.type.interface.sts" + }, + { + "c": "G", + "t": "source.sts meta.interface.sts entity.name.type.interface.sts" + }, + { + "c": "<", + "t": "source.sts meta.interface.sts meta.type.parameters.sts punctuation.definition.typeparameters.begin.sts" + }, + { + "c": "T", + "t": "source.sts meta.interface.sts meta.type.parameters.sts entity.name.type.sts" + }, + { + "c": ",", + "t": "source.sts meta.interface.sts meta.type.parameters.sts punctuation.separator.comma.sts" + }, + { + "c": "U", + "t": "source.sts meta.interface.sts meta.type.parameters.sts entity.name.type.sts" + }, + { + "c": "extends", + "t": "source.sts meta.interface.sts meta.type.parameters.sts storage.modifier.sts" + }, + { + "c": "V", + "t": "source.sts meta.interface.sts meta.type.parameters.sts entity.name.type.sts" + }, + { + "c": ",", + "t": "source.sts meta.interface.sts meta.type.parameters.sts punctuation.separator.comma.sts" + }, + { + "c": "V", + "t": "source.sts meta.interface.sts meta.type.parameters.sts entity.name.type.sts" + }, + { + "c": "extends", + "t": "source.sts meta.interface.sts meta.type.parameters.sts storage.modifier.sts" + }, + { + "c": "Function", + "t": "source.sts meta.interface.sts meta.type.parameters.sts entity.name.type.sts" + }, + { + "c": ">", + "t": "source.sts meta.interface.sts meta.type.parameters.sts punctuation.definition.typeparameters.end.sts" + }, + { + "c": "{}", + "t": "source.sts meta.interface.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/interfaces_sts.json b/tests/vs_plugin/test/results/interfaces_sts.json new file mode 100644 index 000000000..7ec5234f9 --- /dev/null +++ b/tests/vs_plugin/test/results/interfaces_sts.json @@ -0,0 +1,178 @@ +[ + { + "c": "interface", + "t": "source.sts meta.interface.sts storage.type.interface.sts" + }, + { + "c": "I", + "t": "source.sts meta.interface.sts entity.name.type.interface.sts" + }, + { + "c": "{", + "t": "source.sts meta.interface.sts punctuation.definition.block.sts" + }, + { + "c": "RED", + "t": "source.sts meta.interface.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.interface.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.interface.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.interface.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "1", + "t": "source.sts meta.interface.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.interface.sts punctuation.terminator.statement.sts" + }, + { + "c": "BLUE", + "t": "source.sts meta.interface.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": "=", + "t": "source.sts meta.interface.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "2", + "t": "source.sts meta.interface.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.interface.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.interface.sts punctuation.definition.block.sts" + }, + { + "c": "interface", + "t": "source.sts meta.interface.sts storage.type.interface.sts" + }, + { + "c": "I0", + "t": "source.sts meta.interface.sts entity.name.type.interface.sts" + }, + { + "c": "{", + "t": "source.sts meta.interface.sts punctuation.definition.block.sts" + }, + { + "c": "private", + "t": "source.sts meta.interface.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "nop", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "nopnop", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "()", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "static", + "t": "source.sts meta.interface.sts storage.modifier.sts" + }, + { + "c": "nopnop", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{}", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.interface.sts punctuation.definition.block.sts" + }, + { + "c": "interface", + "t": "source.sts meta.interface.sts storage.type.interface.sts" + }, + { + "c": "I1", + "t": "source.sts meta.interface.sts entity.name.type.interface.sts" + }, + { + "c": "extends", + "t": "source.sts meta.interface.sts storage.modifier.sts" + }, + { + "c": "I", + "t": "source.sts meta.interface.sts entity.other.inherited-class.sts" + }, + { + "c": ",", + "t": "source.sts meta.interface.sts punctuation.separator.comma.sts" + }, + { + "c": "I0", + "t": "source.sts meta.interface.sts entity.other.inherited-class.sts" + }, + { + "c": "{", + "t": "source.sts meta.interface.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.interface.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/intersection-type_java.sts.json b/tests/vs_plugin/test/results/intersection-type_java.sts.json new file mode 100644 index 000000000..8d4150b82 --- /dev/null +++ b/tests/vs_plugin/test/results/intersection-type_java.sts.json @@ -0,0 +1,418 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.test.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "intersection_type", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.type.parameters.sts punctuation.definition.typeparameters.begin.sts" + }, + { + "c": "T", + "t": "source.sts meta.class.sts meta.type.parameters.sts entity.name.type.sts" + }, + { + "c": "extends", + "t": "source.sts meta.class.sts meta.type.parameters.sts storage.modifier.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.type.parameters.sts meta.type.paren.cover.sts meta.brace.round.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.type.parameters.sts meta.type.paren.cover.sts entity.name.type.sts" + }, + { + "c": "&", + "t": "source.sts meta.class.sts meta.type.parameters.sts meta.type.paren.cover.sts keyword.operator.type.sts" + }, + { + "c": "Runnable", + "t": "source.sts meta.class.sts meta.type.parameters.sts meta.type.paren.cover.sts entity.name.type.sts" + }, + { + "c": "&", + "t": "source.sts meta.class.sts meta.type.parameters.sts meta.type.paren.cover.sts keyword.operator.type.sts" + }, + { + "c": "Something", + "t": "source.sts meta.class.sts meta.type.parameters.sts meta.type.paren.cover.sts entity.name.type.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.type.parameters.sts meta.type.paren.cover.sts meta.brace.round.sts" + }, + { + "c": ">", + "t": "source.sts meta.class.sts meta.type.parameters.sts punctuation.definition.typeparameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "bar", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "arg", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "auxilliary", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "r", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Runnable", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "arg", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": "as", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.control.as.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.type.paren.cover.sts meta.brace.round.sts" + }, + { + "c": "Runnable", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.type.paren.cover.sts entity.name.type.sts" + }, + { + "c": "&", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.type.paren.cover.sts keyword.operator.type.sts" + }, + { + "c": "Something", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.type.paren.cover.sts entity.name.type.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.type.paren.cover.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "r", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "run", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "()", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "s", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Something", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "arg", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": "as", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.control.as.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.type.paren.cover.sts meta.brace.round.sts" + }, + { + "c": "Something", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.type.paren.cover.sts entity.name.type.sts" + }, + { + "c": "&", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.type.paren.cover.sts keyword.operator.type.sts" + }, + { + "c": "Runnable", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.type.paren.cover.sts entity.name.type.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.type.paren.cover.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "s", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "foo", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "()", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "auxilliary", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "implements", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "Runnable", + "t": "source.sts meta.class.sts entity.other.inherited-class.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts punctuation.separator.comma.sts" + }, + { + "c": "Something", + "t": "source.sts meta.class.sts entity.other.inherited-class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "run", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "foo", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "interface", + "t": "source.sts meta.interface.sts storage.type.interface.sts" + }, + { + "c": "Something", + "t": "source.sts meta.interface.sts entity.name.type.interface.sts" + }, + { + "c": "{", + "t": "source.sts meta.interface.sts punctuation.definition.block.sts" + }, + { + "c": "foo", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.interface.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.interface.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/labeled_java.sts.json b/tests/vs_plugin/test/results/labeled_java.sts.json new file mode 100644 index 000000000..7368720b7 --- /dev/null +++ b/tests/vs_plugin/test/results/labeled_java.sts.json @@ -0,0 +1,198 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.test.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "LabeledTest", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "Test", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "L1", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts entity.name.label.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.separator.label.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "10", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "L2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts entity.name.label.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.separator.label.sts" + }, + { + "c": "L3", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts entity.name.label.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.separator.label.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "*=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.compound.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "L4", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts entity.name.label.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.separator.label.sts" + }, + { + "c": "L5", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts entity.name.label.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.separator.label.sts" + }, + { + "c": "L6", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts entity.name.label.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.separator.label.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "+=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.compound.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "L7", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts entity.name.label.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.separator.label.sts" + }, + { + "c": "null", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.language.null.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/literals_java.sts.json b/tests/vs_plugin/test/results/literals_java.sts.json new file mode 100644 index 000000000..eb737f7f1 --- /dev/null +++ b/tests/vs_plugin/test/results/literals_java.sts.json @@ -0,0 +1,1066 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.test.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "literals", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "test", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "byte", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "byte", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "1_0_2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "s", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "short", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "0x1", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.hex.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "s2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "short", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "0X1_F", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.hex.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "0o2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.octal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "i2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "0o3_4_56", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.octal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "l", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "long", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "0b11", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.binary.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "l2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "long", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "0B1_01_11", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.binary.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "f", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "float", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "4", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "f2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "float", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "1_2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "23_45e+6", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "f3", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "float", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "402_823_5e1_7", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "d", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "double", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "5", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "d2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "double", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "123_456", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "d3", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "double", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "123876", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "pi", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "double", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "1416", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "G", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.constant.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "double", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "6", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "6_73_00E-11", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "c", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "char", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "'", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts string.quoted.single.sts punctuation.definition.string.begin.sts" + }, + { + "c": "6", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts string.quoted.single.sts" + }, + { + "c": "'", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts string.quoted.single.sts punctuation.definition.string.end.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "c2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "char", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "'", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts string.quoted.single.sts punctuation.definition.string.begin.sts" + }, + { + "c": "\\t", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts string.quoted.single.sts constant.character.escape.sts" + }, + { + "c": "'", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts string.quoted.single.sts punctuation.definition.string.end.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "c3", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "char", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "'", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts string.quoted.single.sts punctuation.definition.string.begin.sts" + }, + { + "c": "\\'", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts string.quoted.single.sts constant.character.escape.sts" + }, + { + "c": "'", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts string.quoted.single.sts punctuation.definition.string.end.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "str", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "7", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "str2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "Who needs ", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts string.quoted.double.sts" + }, + { + "c": "\\\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts string.quoted.double.sts constant.character.escape.sts" + }, + { + "c": "dots", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts string.quoted.double.sts" + }, + { + "c": "\\\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts string.quoted.double.sts constant.character.escape.sts" + }, + { + "c": " over ", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts string.quoted.double.sts" + }, + { + "c": "\\\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts string.quoted.double.sts constant.character.escape.sts" + }, + { + "c": "eyes", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts string.quoted.double.sts" + }, + { + "c": "\\\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts string.quoted.double.sts constant.character.escape.sts" + }, + { + "c": "? ;)", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts string.quoted.double.sts" + }, + { + "c": "\\r\\n", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts string.quoted.double.sts constant.character.escape.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "nl", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "literals", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "null", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.language.null.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "tl", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "boolean", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "true", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.language.boolean.true.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "fl", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "boolean", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "false", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.language.boolean.false.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "cl", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Class", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts meta.type.parameters.sts punctuation.definition.typeparameters.begin.sts" + }, + { + "c": "literals", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts meta.type.parameters.sts entity.name.type.sts" + }, + { + "c": ">", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts meta.type.parameters.sts punctuation.definition.typeparameters.end.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "literals", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts punctuation.accessor.sts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts variable.other.property.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "ll", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Class", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts meta.type.parameters.sts punctuation.definition.typeparameters.begin.sts" + }, + { + "c": "?", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts meta.type.parameters.sts storage.type.generic.wildcard.sts" + }, + { + "c": ">", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts meta.type.parameters.sts punctuation.definition.typeparameters.end.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "long", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts punctuation.accessor.sts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts variable.other.property.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "sal", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Class", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts meta.type.parameters.sts punctuation.definition.typeparameters.begin.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts meta.type.parameters.sts entity.name.type.sts" + }, + { + "c": "[]", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts meta.type.parameters.sts meta.type.tuple.sts meta.brace.square.sts" + }, + { + "c": ">", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts meta.type.parameters.sts punctuation.definition.typeparameters.end.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": "[]", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts punctuation.accessor.sts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts variable.other.property.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "dal", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Class", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts meta.type.parameters.sts punctuation.definition.typeparameters.begin.sts" + }, + { + "c": "?", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts meta.type.parameters.sts storage.type.generic.wildcard.sts" + }, + { + "c": ">", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts meta.type.parameters.sts punctuation.definition.typeparameters.end.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "double", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": "[]", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts punctuation.accessor.sts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts variable.other.property.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/literals_sts.json b/tests/vs_plugin/test/results/literals_sts.json new file mode 100644 index 000000000..51fcfac0a --- /dev/null +++ b/tests/vs_plugin/test/results/literals_sts.json @@ -0,0 +1,538 @@ +[ + { + "c": "const", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "lit00", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.constant.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "0", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "const", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "lit01", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.constant.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "0x0", + "t": "source.sts meta.var.expr.sts constant.numeric.hex.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "//", + "t": "source.sts comment.line.double-slash.sts punctuation.definition.comment.sts" + }, + { + "c": " Valid but must be fixed in grammar", + "t": "source.sts comment.line.double-slash.sts" + }, + { + "c": "//", + "t": "source.sts comment.line.double-slash.sts punctuation.definition.comment.sts" + }, + { + "c": "const lit02 = 0o644;", + "t": "source.sts comment.line.double-slash.sts" + }, + { + "c": "const", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "lit03", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.constant.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "\"", + "t": "source.sts meta.var.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "string", + "t": "source.sts meta.var.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.var.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "const", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "lit04", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.constant.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "0b1011", + "t": "source.sts meta.var.expr.sts constant.numeric.binary.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "const", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "lit05", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.constant.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "3", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "14159e0", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "const", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "lit06", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.constant.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "1", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "0e-6", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "const", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "lit07", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.constant.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "1", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "0E-6", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "const", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "lit08", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.constant.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "-", + "t": "source.sts meta.var.expr.sts keyword.operator.arithmetic.sts" + }, + { + "c": "1", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "0E-6", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "const", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "lit09", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.constant.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "'", + "t": "source.sts meta.var.expr.sts string.quoted.single.sts punctuation.definition.string.begin.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts string.quoted.single.sts" + }, + { + "c": "'", + "t": "source.sts meta.var.expr.sts string.quoted.single.sts punctuation.definition.string.end.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "const", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "lit10", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.constant.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "'", + "t": "source.sts meta.var.expr.sts string.quoted.single.sts punctuation.definition.string.begin.sts" + }, + { + "c": "\\u0061", + "t": "source.sts meta.var.expr.sts string.quoted.single.sts constant.character.escape.sts" + }, + { + "c": "'", + "t": "source.sts meta.var.expr.sts string.quoted.single.sts punctuation.definition.string.end.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "const", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "lit11", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.constant.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "true", + "t": "source.sts meta.var.expr.sts constant.language.boolean.true.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "const", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "lit12", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.constant.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "false", + "t": "source.sts meta.var.expr.sts constant.language.boolean.false.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "const", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "lit13", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.constant.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "null", + "t": "source.sts meta.var.expr.sts constant.language.null.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "const", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "lit14", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.constant.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "[]", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "const", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "lit15", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.constant.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "[", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": "1", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "2", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "3", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts constant.numeric.decimal.ts" + }, + { + "c": "]", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "const", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "lit16", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.constant.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "[", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": "\"", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "1", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "\"", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "2", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "\"", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "3", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": "]", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "const", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "lit15", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.constant.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "[", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": "1", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "0", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "2", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "0", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "3", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "0", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts constant.numeric.decimal.ts" + }, + { + "c": "]", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/loops_sts.json b/tests/vs_plugin/test/results/loops_sts.json new file mode 100644 index 000000000..20e1dbe08 --- /dev/null +++ b/tests/vs_plugin/test/results/loops_sts.json @@ -0,0 +1,922 @@ +[ + { + "c": "function", + "t": "source.sts meta.function.sts storage.type.function.sts" + }, + { + "c": "fors", + "t": "source.sts meta.function.sts meta.definition.function.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.function.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "for", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "let", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "i", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "1", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "i", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "<", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.relational.sts" + }, + { + "c": "5", + "t": "source.sts meta.function.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "i", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "++", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.increment.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "continue", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "j", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "1", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "for", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "j", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "1", + "t": "source.sts meta.function.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "i", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "<", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.relational.sts" + }, + { + "c": "5", + "t": "source.sts meta.function.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "i", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "++", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.increment.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "continue", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "//", + "t": "source.sts meta.function.sts meta.block.sts comment.line.double-slash.sts punctuation.definition.comment.sts" + }, + { + "c": " Valid but must be fixed in grammar", + "t": "source.sts meta.function.sts meta.block.sts comment.line.double-slash.sts" + }, + { + "c": "//", + "t": "source.sts meta.function.sts meta.block.sts comment.line.double-slash.sts punctuation.definition.comment.sts" + }, + { + "c": " for (;;) break;", + "t": "source.sts meta.function.sts meta.block.sts comment.line.double-slash.sts" + }, + { + "c": "for", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "let", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "i", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "1", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "j", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "3", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "i", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "+", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.arithmetic.sts" + }, + { + "c": "j", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "<", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.relational.sts" + }, + { + "c": "30", + "t": "source.sts meta.function.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "i", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "+=", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.assignment.compound.sts" + }, + { + "c": "j", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "continue", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "function", + "t": "source.sts meta.function.sts storage.type.function.sts" + }, + { + "c": "whiles", + "t": "source.sts meta.function.sts meta.definition.function.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.function.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "while", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "false", + "t": "source.sts meta.function.sts meta.block.sts constant.language.boolean.false.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "while", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "true", + "t": "source.sts meta.function.sts meta.block.sts constant.language.boolean.true.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "break", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "function", + "t": "source.sts meta.function.sts storage.type.function.sts" + }, + { + "c": "dowhiles", + "t": "source.sts meta.function.sts meta.definition.function.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.function.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "let", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "i", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "0", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "do", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "i", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "+=", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.assignment.compound.sts" + }, + { + "c": "1", + "t": "source.sts meta.function.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "while", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "i", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "<", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.relational.sts" + }, + { + "c": "30", + "t": "source.sts meta.function.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "do", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "i", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "*=", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.operator.assignment.compound.sts" + }, + { + "c": "-", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.operator.arithmetic.sts" + }, + { + "c": "1", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "while", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "i", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "!=", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "30", + "t": "source.sts meta.function.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "//", + "t": "source.sts comment.line.double-slash.sts punctuation.definition.comment.sts" + }, + { + "c": " see 6.9", + "t": "source.sts comment.line.double-slash.sts" + }, + { + "c": "function", + "t": "source.sts meta.function.sts storage.type.function.sts" + }, + { + "c": "labeledbreak", + "t": "source.sts meta.function.sts meta.definition.function.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.function.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "loop1", + "t": "source.sts meta.function.sts meta.block.sts entity.name.label.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.block.sts punctuation.separator.label.sts" + }, + { + "c": "for", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "let", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "i", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "1", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "i", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "<", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.relational.sts" + }, + { + "c": "5", + "t": "source.sts meta.function.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "i", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "++", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.increment.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "loop2", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts entity.name.label.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.separator.label.sts" + }, + { + "c": "for", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "let", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "j", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "1", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "j", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "<", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.operator.relational.sts" + }, + { + "c": "5", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "j", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "++", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.operator.increment.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "break", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "loop1", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.block.sts entity.name.label.sts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "//", + "t": "source.sts comment.line.double-slash.sts punctuation.definition.comment.sts" + }, + { + "c": " see 6.10", + "t": "source.sts comment.line.double-slash.sts" + }, + { + "c": "function", + "t": "source.sts meta.function.sts storage.type.function.sts" + }, + { + "c": "labeledcontinue", + "t": "source.sts meta.function.sts meta.definition.function.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.function.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "loop1", + "t": "source.sts meta.function.sts meta.block.sts entity.name.label.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.block.sts punctuation.separator.label.sts" + }, + { + "c": "for", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "let", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "i", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "1", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "i", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "<", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.relational.sts" + }, + { + "c": "5", + "t": "source.sts meta.function.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "i", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "++", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.increment.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "loop2", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts entity.name.label.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.separator.label.sts" + }, + { + "c": "for", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "let", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "j", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "1", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "j", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "<", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.operator.relational.sts" + }, + { + "c": "5", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "j", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "++", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.operator.increment.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "continue", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "loop1", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.block.sts entity.name.label.sts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/method_empty_java.sts.json b/tests/vs_plugin/test/results/method_empty_java.sts.json new file mode 100644 index 000000000..d568c6fff --- /dev/null +++ b/tests/vs_plugin/test/results/method_empty_java.sts.json @@ -0,0 +1,158 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.tests.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "A", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "foo", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "foo", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "foo", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "d", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "double", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/method_full_java.sts.json b/tests/vs_plugin/test/results/method_full_java.sts.json new file mode 100644 index 000000000..df8e4140a --- /dev/null +++ b/tests/vs_plugin/test/results/method_full_java.sts.json @@ -0,0 +1,538 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.tests.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "abstract ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "method_full", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "foo", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "foo_void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "boolean", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "foo_int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "double", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "c", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "char", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "foo_bool", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "d", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "double", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "c", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "char", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "...", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts keyword.operator.rest.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "boolean", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "true", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.language.boolean.true.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "foo_private", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "d", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "double", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "foo_final", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "d", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "double", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "double", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "protected", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "foo_final", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "boolean", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "false", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.language.boolean.false.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "protected", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "abstract", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "foo_abstract", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "native", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "foo_native", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/method_invocation_java.sts.json b/tests/vs_plugin/test/results/method_invocation_java.sts.json new file mode 100644 index 000000000..bd9d0f217 --- /dev/null +++ b/tests/vs_plugin/test/results/method_invocation_java.sts.json @@ -0,0 +1,1670 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.tests.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "SuperClass", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "foo", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "System", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "out", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.other.object.property.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "println", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "Hi", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "SubClass1", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "extends", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "SuperClass", + "t": "source.sts meta.class.sts entity.other.inherited-class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "override", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "foo", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "tweak", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Runnable", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Runnable", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "()", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts punctuation.section.anonymous-class.begin.bracket.curly.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts storage.modifier.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts storage.modifier.sts" + }, + { + "c": "run", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "SubClass1", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts" + }, + { + "c": "super", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.language.super.inner.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "foo", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "()", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts punctuation.section.anonymous-class.end.bracket.curly.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "interface", + "t": "source.sts meta.interface.sts storage.type.interface.sts" + }, + { + "c": "SuperInterface", + "t": "source.sts meta.interface.sts entity.name.type.interface.sts" + }, + { + "c": "{", + "t": "source.sts meta.interface.sts punctuation.definition.block.sts" + }, + { + "c": "foo", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "System", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "out", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.other.object.property.sts" + }, + { + "c": ".", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "println", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "Hi", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ")", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.interface.sts punctuation.definition.block.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "SubClass2", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "implements", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "SuperInterface", + "t": "source.sts meta.class.sts entity.other.inherited-class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "foo", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "tweak", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "SuperInterface", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts" + }, + { + "c": "super", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.language.super.inner.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "foo", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "()", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "SubClass3", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "implements", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "SuperInterface", + "t": "source.sts meta.class.sts entity.other.inherited-class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "foo", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "tweak", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Runnable", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Runnable", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "()", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts punctuation.section.anonymous-class.begin.bracket.curly.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts storage.modifier.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts storage.modifier.sts" + }, + { + "c": "run", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.anonymous-class.sts punctuation.section.anonymous-class.end.bracket.curly.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "Doubler", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "two", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "two", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "two", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": "*", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.arithmetic.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "Test", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "extends", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "Doubler", + "t": "source.sts meta.class.sts entity.other.inherited-class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "two", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "j", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "long", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "long", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "j", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "+", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.arithmetic.sts" + }, + { + "c": "j", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "main", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "args", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "[]", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts meta.type.tuple.sts meta.brace.square.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "System", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "out", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.other.object.property.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "println", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "two", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": "))", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "ColoredPoint", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "x", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "y", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "color", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "byte", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "setColor", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "color", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "byte", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "this", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.language.this.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.accessor.sts" + }, + { + "c": "color", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.property.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "color", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "Test2", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "main", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "args", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "[]", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts meta.type.tuple.sts meta.brace.square.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "cp", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "ColoredPoint", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "ColoredPoint", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "()", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "color", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "byte", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "37", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "cp", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "setColor", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "color", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "Point", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "x", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "y", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "ColoredPoint2", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "extends", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "Point", + "t": "source.sts meta.class.sts entity.other.inherited-class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "color", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "Test3", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "test", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "p", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "ColoredPoint", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "q", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Point", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "System", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "out", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.other.object.property.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "println", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "(ColoredPoint, Point)", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "test", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "q", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Point", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "p", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "ColoredPoint", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "System", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "out", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.other.object.property.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "println", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "(Point, ColoredPoint)", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "main", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "args", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "[]", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts meta.type.tuple.sts meta.brace.square.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "cp", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "ColoredPoint2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "ColoredPoint2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "()", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/named_types_java.sts.json b/tests/vs_plugin/test/results/named_types_java.sts.json new file mode 100644 index 000000000..13c8f3d7f --- /dev/null +++ b/tests/vs_plugin/test/results/named_types_java.sts.json @@ -0,0 +1,558 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.test.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "import ", + "t": "source.sts meta.import.sts keyword.control.import.sts" + }, + { + "c": "java.util.List", + "t": "source.sts meta.import.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "import ", + "t": "source.sts meta.import.sts keyword.control.import.sts" + }, + { + "c": "java.lang.annotation.", + "t": "source.sts meta.import.sts entity.name.namespace.sts" + }, + { + "c": "*", + "t": "source.sts meta.import.sts constant.language.import-export-all.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "named_types", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "text", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "java", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.module.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts punctuation.accessor.sts" + }, + { + "c": "lang", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.module.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts punctuation.accessor.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts meta.class.sts storage.type.class.sts" + }, + { + "c": "inner", + "t": "source.sts meta.class.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.class.sts meta.type.parameters.sts punctuation.definition.typeparameters.begin.sts" + }, + { + "c": "T", + "t": "source.sts meta.class.sts meta.class.sts meta.type.parameters.sts entity.name.type.sts" + }, + { + "c": ">", + "t": "source.sts meta.class.sts meta.class.sts meta.type.parameters.sts punctuation.definition.typeparameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts meta.class.sts meta.class.sts storage.type.class.sts" + }, + { + "c": "innertoo", + "t": "source.sts meta.class.sts meta.class.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts meta.class.sts meta.class.sts meta.class.sts storage.type.class.sts" + }, + { + "c": "inneragain", + "t": "source.sts meta.class.sts meta.class.sts meta.class.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts meta.class.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts meta.class.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "auxilliary", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "foo", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "named_types", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts entity.name.type.module.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts punctuation.accessor.sts" + }, + { + "c": "inner", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts entity.name.type.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "null", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.language.null.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "bar", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "named_types", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts entity.name.type.module.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts punctuation.accessor.sts" + }, + { + "c": "inner", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts entity.name.type.sts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts meta.type.parameters.sts punctuation.definition.typeparameters.begin.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts meta.type.parameters.sts entity.name.type.sts" + }, + { + "c": ">", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts meta.type.parameters.sts punctuation.definition.typeparameters.end.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts" + }, + { + "c": "innertoo", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts entity.name.type.module.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts punctuation.accessor.sts" + }, + { + "c": "inneragain", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts entity.name.type.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "null", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.language.null.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "foobar", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "arg", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "named_types", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.module.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts punctuation.accessor.sts" + }, + { + "c": "inner", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts meta.type.parameters.sts punctuation.definition.typeparameters.begin.sts" + }, + { + "c": "?", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts meta.type.parameters.sts storage.type.generic.wildcard.sts" + }, + { + "c": ">", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts meta.type.parameters.sts punctuation.definition.typeparameters.end.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "named_types", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts entity.name.type.module.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts punctuation.accessor.sts" + }, + { + "c": "inner", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts entity.name.type.sts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts meta.type.parameters.sts punctuation.definition.typeparameters.begin.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts meta.type.parameters.sts entity.name.type.sts" + }, + { + "c": ">", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts meta.type.parameters.sts punctuation.definition.typeparameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "null", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.language.null.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "barfoo", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "arg", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "named_types", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.module.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts punctuation.accessor.sts" + }, + { + "c": "inner", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts meta.type.parameters.sts punctuation.definition.typeparameters.begin.sts" + }, + { + "c": "? ", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts meta.type.parameters.sts storage.type.generic.wildcard.sts" + }, + { + "c": "super", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts meta.type.parameters.sts storage.modifier.super.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts meta.type.parameters.sts entity.name.type.sts" + }, + { + "c": ">", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts meta.type.parameters.sts punctuation.definition.typeparameters.end.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "named_types", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts entity.name.type.module.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts punctuation.accessor.sts" + }, + { + "c": "inner", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts entity.name.type.sts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts meta.type.parameters.sts punctuation.definition.typeparameters.begin.sts" + }, + { + "c": "? ", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts meta.type.parameters.sts storage.type.generic.wildcard.sts" + }, + { + "c": "extends", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts meta.type.parameters.sts storage.modifier.extends.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts meta.type.parameters.sts entity.name.type.sts" + }, + { + "c": ">", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts meta.type.parameters.sts punctuation.definition.typeparameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "null", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.language.null.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/new_expressions_sts.json b/tests/vs_plugin/test/results/new_expressions_sts.json new file mode 100644 index 000000000..4b67ec231 --- /dev/null +++ b/tests/vs_plugin/test/results/new_expressions_sts.json @@ -0,0 +1,106 @@ +[ + { + "c": "//", + "t": "source.sts comment.line.double-slash.sts punctuation.definition.comment.sts" + }, + { + "c": " See 5.9 New Expressions", + "t": "source.sts comment.line.double-slash.sts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "Base", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "constructor", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.type.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "function", + "t": "source.sts meta.function.sts storage.type.function.sts" + }, + { + "c": "main", + "t": "source.sts meta.function.sts meta.definition.function.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.function.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "let", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Base", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "()", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/null_sts.json b/tests/vs_plugin/test/results/null_sts.json new file mode 100644 index 000000000..93b4fc7e5 --- /dev/null +++ b/tests/vs_plugin/test/results/null_sts.json @@ -0,0 +1,22 @@ +[ + { + "c": "const", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "n", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.constant.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "null", + "t": "source.sts meta.var.expr.sts constant.language.null.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/object_sts.json b/tests/vs_plugin/test/results/object_sts.json new file mode 100644 index 000000000..fa42ad9a4 --- /dev/null +++ b/tests/vs_plugin/test/results/object_sts.json @@ -0,0 +1,22 @@ +[ + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "o", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Object", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/override_method_sts.json b/tests/vs_plugin/test/results/override_method_sts.json new file mode 100644 index 000000000..635043ad8 --- /dev/null +++ b/tests/vs_plugin/test/results/override_method_sts.json @@ -0,0 +1,134 @@ +[ + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "P", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "foo", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "T", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "extends", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "P", + "t": "source.sts meta.class.sts entity.other.inherited-class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "override", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "foo", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/parentheses_expression_value_sts.json b/tests/vs_plugin/test/results/parentheses_expression_value_sts.json new file mode 100644 index 000000000..0976ad3e1 --- /dev/null +++ b/tests/vs_plugin/test/results/parentheses_expression_value_sts.json @@ -0,0 +1,234 @@ +[ + { + "c": "//", + "t": "source.sts comment.line.double-slash.sts punctuation.definition.comment.sts" + }, + { + "c": " see 5.4 Parentheses", + "t": "source.sts comment.line.double-slash.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "5", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "(", + "t": "source.sts meta.var.expr.sts meta.brace.round.sts" + }, + { + "c": "5", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.var.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "c", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "((", + "t": "source.sts meta.var.expr.sts meta.brace.round.sts" + }, + { + "c": "5", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": "))", + "t": "source.sts meta.var.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "d", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "(", + "t": "source.sts meta.var.expr.sts meta.brace.round.sts" + }, + { + "c": "b", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.var.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "function", + "t": "source.sts meta.function.sts storage.type.function.sts" + }, + { + "c": "main", + "t": "source.sts meta.function.sts meta.definition.function.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.function.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "a", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "!=", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "b", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "||", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.logical.sts" + }, + { + "c": "b", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "!=", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "c", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "||", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.logical.sts" + }, + { + "c": "c", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "!=", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "d", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "||", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.logical.sts" + }, + { + "c": "d", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "!=", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "a", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "//", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts comment.line.double-slash.sts punctuation.definition.comment.sts" + }, + { + "c": " panic", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts comment.line.double-slash.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/predefined_types_sts.json b/tests/vs_plugin/test/results/predefined_types_sts.json new file mode 100644 index 000000000..73a70c13c --- /dev/null +++ b/tests/vs_plugin/test/results/predefined_types_sts.json @@ -0,0 +1,142 @@ +[ + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "byte", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "s", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "short", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "i", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "l", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "long", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "f", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "float", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "d", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "double", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "c", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "char", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/return_sts.json b/tests/vs_plugin/test/results/return_sts.json new file mode 100644 index 000000000..a3678384a --- /dev/null +++ b/tests/vs_plugin/test/results/return_sts.json @@ -0,0 +1,146 @@ +[ + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "[", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": "1", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "2", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts constant.numeric.decimal.ts" + }, + { + "c": ",", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "3", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts constant.numeric.decimal.ts" + }, + { + "c": "]", + "t": "source.sts meta.var.expr.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "function", + "t": "source.sts meta.function.sts storage.type.function.sts" + }, + { + "c": "main", + "t": "source.sts meta.function.sts meta.definition.function.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.function.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "for", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "let", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "v", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "of", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.expression.of.sts" + }, + { + "c": "a", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "v", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "==", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "2", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "return", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/scoped_decl_sts.json b/tests/vs_plugin/test/results/scoped_decl_sts.json new file mode 100644 index 000000000..89e368e09 --- /dev/null +++ b/tests/vs_plugin/test/results/scoped_decl_sts.json @@ -0,0 +1,106 @@ +[ + { + "c": "function", + "t": "source.sts meta.function.sts storage.type.function.sts" + }, + { + "c": "main", + "t": "source.sts meta.function.sts meta.definition.function.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.function.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "let", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "a", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "0", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "if", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "a", + "t": "source.sts meta.function.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "<", + "t": "source.sts meta.function.sts meta.block.sts keyword.operator.relational.sts" + }, + { + "c": "1", + "t": "source.sts meta.function.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "let", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "a", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/simple_types_sts.json b/tests/vs_plugin/test/results/simple_types_sts.json new file mode 100644 index 000000000..e3c9c1c8b --- /dev/null +++ b/tests/vs_plugin/test/results/simple_types_sts.json @@ -0,0 +1,278 @@ +[ + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "byte", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "127", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "short", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "-", + "t": "source.sts meta.var.expr.sts keyword.operator.arithmetic.sts" + }, + { + "c": "32768", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "c", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "2147483647", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "d", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "long", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "-", + "t": "source.sts meta.var.expr.sts keyword.operator.arithmetic.sts" + }, + { + "c": "9223372036854775808", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "e", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "boolean", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "true", + "t": "source.sts meta.var.expr.sts constant.language.boolean.true.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "f", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "char", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "'", + "t": "source.sts meta.var.expr.sts string.quoted.single.sts punctuation.definition.string.begin.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts string.quoted.single.sts" + }, + { + "c": "'", + "t": "source.sts meta.var.expr.sts string.quoted.single.sts punctuation.definition.string.end.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "g", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "k", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "float", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "3", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "1415", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "l", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "double", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "3", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "1415", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/string_sts.json b/tests/vs_plugin/test/results/string_sts.json new file mode 100644 index 000000000..f480f2baa --- /dev/null +++ b/tests/vs_plugin/test/results/string_sts.json @@ -0,0 +1,38 @@ +[ + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "s", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "string", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "\"", + "t": "source.sts meta.var.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "Hello", + "t": "source.sts meta.var.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.var.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/super_expression_java.sts.json b/tests/vs_plugin/test/results/super_expression_java.sts.json new file mode 100644 index 000000000..ce847bcae --- /dev/null +++ b/tests/vs_plugin/test/results/super_expression_java.sts.json @@ -0,0 +1,702 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.test.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "interface", + "t": "source.sts meta.interface.sts storage.type.interface.sts" + }, + { + "c": "I", + "t": "source.sts meta.interface.sts entity.name.type.interface.sts" + }, + { + "c": "{", + "t": "source.sts meta.interface.sts punctuation.definition.block.sts" + }, + { + "c": "x", + "t": "source.sts meta.interface.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.interface.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.interface.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.interface.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "0", + "t": "source.sts meta.interface.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.interface.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.interface.sts punctuation.definition.block.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "T1", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "implements", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "I", + "t": "source.sts meta.class.sts entity.other.inherited-class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "x", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "T2", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "extends", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "T1", + "t": "source.sts meta.class.sts entity.other.inherited-class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "x", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "T3", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "extends", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "T2", + "t": "source.sts meta.class.sts entity.other.inherited-class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "x", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "test", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "System", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "out", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.other.object.property.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "println", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "x=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts" + }, + { + "c": "\\t\\t", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts constant.character.escape.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": "+", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.arithmetic.sts" + }, + { + "c": "x", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "System", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "out", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.other.object.property.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "println", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "super.x=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts" + }, + { + "c": "\\t\\t", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts constant.character.escape.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": "+", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.arithmetic.sts" + }, + { + "c": "super", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.language.super.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.accessor.sts" + }, + { + "c": "x", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.property.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "System", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "out", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.other.object.property.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "println", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "((T2)this).x=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts" + }, + { + "c": "\\t", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts constant.character.escape.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": "+", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.arithmetic.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "this", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.language.this.sts" + }, + { + "c": "as", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.as.sts" + }, + { + "c": "T2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts entity.name.type.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.accessor.sts" + }, + { + "c": "x", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.property.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "System", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "out", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.other.object.property.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "println", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "((T1)this).x=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts" + }, + { + "c": "\\t", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts constant.character.escape.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": "+", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.arithmetic.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "this", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.language.this.sts" + }, + { + "c": "as", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.as.sts" + }, + { + "c": "T1", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts entity.name.type.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.accessor.sts" + }, + { + "c": "x", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.property.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "System", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "out", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.other.object.property.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "println", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "((I)this).x=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts" + }, + { + "c": "\\t", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts constant.character.escape.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": "+", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.arithmetic.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "this", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.language.this.sts" + }, + { + "c": "as", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.as.sts" + }, + { + "c": "I", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts entity.name.type.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.accessor.sts" + }, + { + "c": "x", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.property.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "Test", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "main", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "args", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "[]", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts meta.type.tuple.sts meta.brace.square.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "T3", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "()", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts new.expr.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "test", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "()", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/switch_statement_java.sts.json b/tests/vs_plugin/test/results/switch_statement_java.sts.json new file mode 100644 index 000000000..9c900bfc7 --- /dev/null +++ b/tests/vs_plugin/test/results/switch_statement_java.sts.json @@ -0,0 +1,3530 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.test.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "export", + "t": "source.sts meta.class.sts keyword.control.export.ts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "switch_statement", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "ReturnFromSwitch", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "id", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts entity.name.type.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "switch", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts keyword.control.switch.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "id", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.definition.block.sts" + }, + { + "c": "case", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.flow.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "First", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "case", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.flow.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "Second", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "default", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.flow.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "Unknown", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "CaseClausesVariations", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "switch", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts keyword.control.switch.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts punctuation.definition.block.sts" + }, + { + "c": "switch", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts keyword.control.switch.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.definition.block.sts" + }, + { + "c": "case", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "21", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "case", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "22", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts punctuation.definition.block.sts" + }, + { + "c": "switch", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts keyword.control.switch.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.definition.block.sts" + }, + { + "c": "default", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "31", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts punctuation.definition.block.sts" + }, + { + "c": "switch", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts keyword.control.switch.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "4", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.definition.block.sts" + }, + { + "c": "case", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "41", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "case", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "default", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "43", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts punctuation.definition.block.sts" + }, + { + "c": "switch", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts keyword.control.switch.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "5", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.definition.block.sts" + }, + { + "c": "default", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "51", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "case", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "52", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "case", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "53", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts punctuation.definition.block.sts" + }, + { + "c": "switch", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts keyword.control.switch.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "6", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.definition.block.sts" + }, + { + "c": "case", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "61", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "default", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "62", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "case", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "63", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts punctuation.definition.block.sts" + }, + { + "c": "switch", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts keyword.control.switch.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "7", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.definition.block.sts" + }, + { + "c": "case", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "case", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "System", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "out", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts variable.other.object.property.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "println", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "Falling through case 1 and case 2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "default", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "System", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "out", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts variable.other.object.property.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "println", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "Default case", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts punctuation.definition.block.sts" + }, + { + "c": "switch", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts keyword.control.switch.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "8", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.definition.block.sts" + }, + { + "c": "case", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "default", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "System", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "out", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts variable.other.object.property.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "println", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "Falling through both case and default clauses", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts punctuation.definition.block.sts" + }, + { + "c": "switch", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts keyword.control.switch.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "9", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.definition.block.sts" + }, + { + "c": "case", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "System", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "out", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts variable.other.object.property.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "println", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "In case 1: Falling through to default case", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "default", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "System", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "out", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts variable.other.object.property.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "println", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "In default case", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "case", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "System", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "out", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts variable.other.object.property.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "println", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "In case 2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "SwitchWithLocalDeclarations", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "10", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "w", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "e", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "switch", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts keyword.control.switch.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.definition.block.sts" + }, + { + "c": "case", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "q", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "5", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "w", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "q", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "default", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "w", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "10", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "e", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "20", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "System", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "out", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts variable.other.object.property.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "println", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.brace.round.sts" + }, + { + "c": "w", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts variable.other.readwrite.sts" + }, + { + "c": "+", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.operator.arithmetic.sts" + }, + { + "c": "e", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "q", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "r", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "switch", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts keyword.control.switch.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.definition.block.sts" + }, + { + "c": "case", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "q", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "5", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "w", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "e", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "10", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "z", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "20", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "x", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "System", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "out", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.function-call.sts variable.other.object.property.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "println", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "q", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "+", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts keyword.operator.arithmetic.sts" + }, + { + "c": "e", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "+", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts keyword.operator.arithmetic.sts" + }, + { + "c": "z", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "default", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "q", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "r", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "4", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "System", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "out", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts variable.other.object.property.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "println", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.brace.round.sts" + }, + { + "c": "q", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts variable.other.readwrite.sts" + }, + { + "c": "+", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.operator.arithmetic.sts" + }, + { + "c": "r", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "localVar", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "switch", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts keyword.control.switch.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.definition.block.sts" + }, + { + "c": "case", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "localVar", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "some value", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "case", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "localVar", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "5", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "default", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "localVar", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "6", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "q", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "e", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "switch", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts keyword.control.switch.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.definition.block.sts" + }, + { + "c": "case", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "q", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "++", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts keyword.operator.increment.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "w", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": "++", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts keyword.operator.increment.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "e", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts keyword.operator.assignment.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "++", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts keyword.operator.increment.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "default", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "q", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "e", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts switch-statement.expr.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "switch", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts keyword.control.switch.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.definition.block.sts" + }, + { + "c": "case", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "k", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "10", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "switch", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts keyword.control.switch.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.definition.block.sts" + }, + { + "c": "case", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "k", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "20", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "default", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts switch-statement.expr.sts punctuation.definition.block.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "default", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts punctuation.definition.block.sts" + }, + { + "c": "switch", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts keyword.control.switch.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.definition.block.sts" + }, + { + "c": "case", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "LocalClass", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "M", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "System", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "out", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.other.object.property.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "println", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "LocalClass.M()", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.class.sts meta.method.declaration.sts meta.block.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "LocalClass", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "()", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts new.expr.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "M", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "()", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "default", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts meta.class.sts storage.type.class.sts" + }, + { + "c": "Color", + "t": "source.sts meta.class.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "extends", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "Enum", + "t": "source.sts meta.class.sts meta.class.sts entity.other.inherited-class.sts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.class.sts meta.type.parameters.sts punctuation.definition.typeparameters.begin.sts" + }, + { + "c": "Color", + "t": "source.sts meta.class.sts meta.class.sts meta.type.parameters.sts entity.name.type.sts" + }, + { + "c": ">", + "t": "source.sts meta.class.sts meta.class.sts meta.type.parameters.sts punctuation.definition.typeparameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "Red", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Color", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Color", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "Red", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "Green", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Color", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Color", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "Green", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "Blue", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Color", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Color", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "Blue", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "values", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Color", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts entity.name.type.sts" + }, + { + "c": "[]", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts meta.type.tuple.sts meta.brace.square.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "[", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": "Red", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.readwrite.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "Green", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.readwrite.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "Blue", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.readwrite.sts" + }, + { + "c": "]", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "valueOf", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Color", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts entity.name.type.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "for", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "value", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Color", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "of", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.expression.of.sts" + }, + { + "c": "values", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "())", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "==", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "value", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "toString", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "())", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "value", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "null", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.language.null.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "constructor", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts storage.type.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "ordinal", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "super", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.language.super.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.separator.comma.sts" + }, + { + "c": "ordinal", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "SwitchWithEnumValues", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "color", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Color", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "Color", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts punctuation.accessor.sts" + }, + { + "c": "Green", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts variable.other.property.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "switch", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts keyword.control.switch.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "color", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.definition.block.sts" + }, + { + "c": "case", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": "Red", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "System", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "out", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts variable.other.object.property.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "println", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "Color is red", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "case", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": "Blue", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "System", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "out", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts variable.other.object.property.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "println", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "Color is blue", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "default", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "System", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "out", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts variable.other.object.property.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "println", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "Color is default", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts switch-statement.expr.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": " ", + "t": "source.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/switch_sts.json b/tests/vs_plugin/test/results/switch_sts.json new file mode 100644 index 000000000..513fe8b41 --- /dev/null +++ b/tests/vs_plugin/test/results/switch_sts.json @@ -0,0 +1,278 @@ +[ + { + "c": "//", + "t": "source.sts comment.line.double-slash.sts punctuation.definition.comment.sts" + }, + { + "c": " see 6.12 - value switch", + "t": "source.sts comment.line.double-slash.sts" + }, + { + "c": "function", + "t": "source.sts meta.function.sts storage.type.function.sts" + }, + { + "c": "main", + "t": "source.sts meta.function.sts meta.definition.function.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.function.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "let", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "value", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "string", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "\"", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "10", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "result", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "string", + "t": "source.sts meta.function.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "switch", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts keyword.control.switch.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "value", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-expression.expr.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.definition.block.sts" + }, + { + "c": "case", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": "\"", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "0", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "case", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": "\"", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "1", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "result", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "\"", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "One or zero", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "case", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": "\"", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "2", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "result", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "\"", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "Two", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "break", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.control.loop.sts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "default", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts keyword.control.switch.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts case-clause.expr.sts punctuation.definition.section.case-statement.sts" + }, + { + "c": "result", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "\"", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "An unknown value", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts switch-block.expr.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts switch-statement.expr.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/ternary_sts.json b/tests/vs_plugin/test/results/ternary_sts.json new file mode 100644 index 000000000..0acc03b5a --- /dev/null +++ b/tests/vs_plugin/test/results/ternary_sts.json @@ -0,0 +1,86 @@ +[ + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "0", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "1", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "c", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ">", + "t": "source.sts meta.var.expr.sts keyword.operator.relational.sts" + }, + { + "c": "b", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": "?", + "t": "source.sts meta.var.expr.sts keyword.operator.ternary.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts keyword.operator.ternary.sts" + }, + { + "c": "b", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/test_enum_java.sts.json b/tests/vs_plugin/test/results/test_enum_java.sts.json new file mode 100644 index 000000000..e69e81da1 --- /dev/null +++ b/tests/vs_plugin/test/results/test_enum_java.sts.json @@ -0,0 +1,3634 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.test.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "export", + "t": "source.sts meta.class.sts keyword.control.export.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "test_enum", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "extends", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "Enum", + "t": "source.sts meta.class.sts entity.other.inherited-class.sts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.type.parameters.sts punctuation.definition.typeparameters.begin.sts" + }, + { + "c": "test_enum", + "t": "source.sts meta.class.sts meta.type.parameters.sts entity.name.type.sts" + }, + { + "c": ">", + "t": "source.sts meta.class.sts meta.type.parameters.sts punctuation.definition.typeparameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "values", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "test_enum", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts entity.name.type.sts" + }, + { + "c": "[]", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts meta.type.tuple.sts meta.brace.square.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "[]", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "valueOf", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "test_enum", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts entity.name.type.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "for", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "value", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "test_enum", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "of", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.expression.of.sts" + }, + { + "c": "values", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "())", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "==", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "value", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "toString", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "())", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "value", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "null", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.language.null.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "constructor", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.type.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "ordinal", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "super", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.language.super.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.separator.comma.sts" + }, + { + "c": "ordinal", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "extends", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "Enum", + "t": "source.sts meta.class.sts entity.other.inherited-class.sts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.type.parameters.sts punctuation.definition.typeparameters.begin.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.type.parameters.sts entity.name.type.sts" + }, + { + "c": ">", + "t": "source.sts meta.class.sts meta.type.parameters.sts punctuation.definition.typeparameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "MERCURY", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "MERCURY", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "VENUS", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "VENUS", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "EARTH", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "EARTH", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "MARS", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "MARS", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "JUPITER", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "JUPITER", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "4", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "SATURN", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "SATURN", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "5", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "URANUS", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "URANUS", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "6", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "NEPTUNE", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "NEPTUNE", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "7", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "values", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts entity.name.type.sts" + }, + { + "c": "[]", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts meta.type.tuple.sts meta.brace.square.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "[", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": "MERCURY", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "VENUS", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "EARTH", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "MARS", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "JUPITER", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "SATURN", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "URANUS", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "NEPTUNE", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": "]", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "valueOf", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts entity.name.type.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "for", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "value", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Planet", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "of", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.expression.of.sts" + }, + { + "c": "values", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "())", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "==", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "value", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "toString", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "())", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "value", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "null", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.language.null.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "constructor", + "t": "source.sts meta.class.sts meta.method.declaration.sts storage.type.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "ordinal", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "super", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.language.super.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.separator.comma.sts" + }, + { + "c": "ordinal", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "NestedEnums", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts meta.class.sts storage.type.class.sts" + }, + { + "c": "Colors", + "t": "source.sts meta.class.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "extends", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "Enum", + "t": "source.sts meta.class.sts meta.class.sts entity.other.inherited-class.sts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.class.sts meta.type.parameters.sts punctuation.definition.typeparameters.begin.sts" + }, + { + "c": "Colors", + "t": "source.sts meta.class.sts meta.class.sts meta.type.parameters.sts entity.name.type.sts" + }, + { + "c": ">", + "t": "source.sts meta.class.sts meta.class.sts meta.type.parameters.sts punctuation.definition.typeparameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "RED", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Colors", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Colors", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "RED", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "GREEN", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Colors", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Colors", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "GREEN", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "BLUE", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Colors", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Colors", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "BLUE", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "values", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Colors", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts entity.name.type.sts" + }, + { + "c": "[]", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts meta.type.tuple.sts meta.brace.square.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "[", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": "RED", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "GREEN", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "BLUE", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": "]", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "valueOf", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Colors", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts entity.name.type.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "for", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "value", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Colors", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "of", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.expression.of.sts" + }, + { + "c": "values", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "())", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "==", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "value", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "toString", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "())", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "value", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "null", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.language.null.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "constructor", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts storage.type.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "ordinal", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "super", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.language.super.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.separator.comma.sts" + }, + { + "c": "ordinal", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "protected", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts meta.class.sts storage.type.class.sts" + }, + { + "c": "Size", + "t": "source.sts meta.class.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "extends", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "Enum", + "t": "source.sts meta.class.sts meta.class.sts entity.other.inherited-class.sts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.class.sts meta.type.parameters.sts punctuation.definition.typeparameters.begin.sts" + }, + { + "c": "Size", + "t": "source.sts meta.class.sts meta.class.sts meta.type.parameters.sts entity.name.type.sts" + }, + { + "c": ">", + "t": "source.sts meta.class.sts meta.class.sts meta.type.parameters.sts punctuation.definition.typeparameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "SMALL", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Size", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Size", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "SMALL", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "MEDIUM", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Size", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Size", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "MEDIUM", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "LARGE", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Size", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Size", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "LARGE", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "values", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Size", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts entity.name.type.sts" + }, + { + "c": "[]", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts meta.type.tuple.sts meta.brace.square.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "[", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": "SMALL", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "MEDIUM", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "LARGE", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": "]", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "valueOf", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Size", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts entity.name.type.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "for", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "value", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Size", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "of", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.expression.of.sts" + }, + { + "c": "values", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "())", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "==", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "value", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "toString", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "())", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "value", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "null", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.language.null.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "constructor", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts storage.type.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "ordinal", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "super", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.language.super.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.separator.comma.sts" + }, + { + "c": "ordinal", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts meta.class.sts storage.type.class.sts" + }, + { + "c": "Direction", + "t": "source.sts meta.class.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "extends", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "Enum", + "t": "source.sts meta.class.sts meta.class.sts entity.other.inherited-class.sts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.class.sts meta.type.parameters.sts punctuation.definition.typeparameters.begin.sts" + }, + { + "c": "Direction", + "t": "source.sts meta.class.sts meta.class.sts meta.type.parameters.sts entity.name.type.sts" + }, + { + "c": ">", + "t": "source.sts meta.class.sts meta.class.sts meta.type.parameters.sts punctuation.definition.typeparameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "NORTH", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Direction", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Direction", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "NORTH", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "EAST", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Direction", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Direction", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "EAST", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "SOUTH", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Direction", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Direction", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "SOUTH", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "WEST", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Direction", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Direction", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "WEST", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "values", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Direction", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts entity.name.type.sts" + }, + { + "c": "[]", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts meta.type.tuple.sts meta.brace.square.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "[", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": "NORTH", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "EAST", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "SOUTH", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "WEST", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": "]", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "valueOf", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Direction", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts entity.name.type.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "for", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "value", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Direction", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "of", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.expression.of.sts" + }, + { + "c": "values", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "())", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "==", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "value", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "toString", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "())", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "value", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "null", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.language.null.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "constructor", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts storage.type.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "ordinal", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "super", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.language.super.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.separator.comma.sts" + }, + { + "c": "ordinal", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts meta.class.sts storage.type.class.sts" + }, + { + "c": "Operator", + "t": "source.sts meta.class.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "extends", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "Enum", + "t": "source.sts meta.class.sts meta.class.sts entity.other.inherited-class.sts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.class.sts meta.type.parameters.sts punctuation.definition.typeparameters.begin.sts" + }, + { + "c": "Operator", + "t": "source.sts meta.class.sts meta.class.sts meta.type.parameters.sts entity.name.type.sts" + }, + { + "c": ">", + "t": "source.sts meta.class.sts meta.class.sts meta.type.parameters.sts punctuation.definition.typeparameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "PLUS", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Operator", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Operator", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "PLUS", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "MINUS", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Operator", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Operator", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "MINUS", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "1", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "MULTIPLY", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Operator", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Operator", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "MULTIPLY", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "DIVIDE", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Operator", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "new", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts keyword.control.new.sts" + }, + { + "c": "Operator", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.begin.sts" + }, + { + "c": "DIVIDE", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts" + }, + { + "c": "\"", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts string.quoted.double.sts punctuation.definition.string.end.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.field.declaration.sts new.expr.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "values", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Operator", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts entity.name.type.sts" + }, + { + "c": "[]", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts meta.type.tuple.sts meta.brace.square.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "[", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": "PLUS", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "MINUS", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "MULTIPLY", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts punctuation.separator.comma.sts" + }, + { + "c": "DIVIDE", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts variable.other.constant.sts" + }, + { + "c": "]", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "static", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "valueOf", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Operator", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts entity.name.type.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "for", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "value", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Operator", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "of", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.expression.of.sts" + }, + { + "c": "values", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "())", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "==", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "value", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "toString", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "())", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "value", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "null", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.language.null.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "constructor", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts storage.type.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "String", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.separator.parameter.sts" + }, + { + "c": "ordinal", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "super", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.language.super.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "name", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.separator.comma.sts" + }, + { + "c": "ordinal", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/test_interface_java.sts.json b/tests/vs_plugin/test/results/test_interface_java.sts.json new file mode 100644 index 000000000..ab0a1fe22 --- /dev/null +++ b/tests/vs_plugin/test/results/test_interface_java.sts.json @@ -0,0 +1,226 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.tests.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "import ", + "t": "source.sts meta.import.sts keyword.control.import.sts" + }, + { + "c": "java.util.List", + "t": "source.sts meta.import.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "import ", + "t": "source.sts meta.import.sts keyword.control.import.sts" + }, + { + "c": "java.io.", + "t": "source.sts meta.import.sts entity.name.namespace.sts" + }, + { + "c": "*", + "t": "source.sts meta.import.sts constant.language.import-export-all.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "interface", + "t": "source.sts meta.interface.sts storage.type.interface.sts" + }, + { + "c": "test_interface", + "t": "source.sts meta.interface.sts entity.name.type.interface.sts" + }, + { + "c": "{", + "t": "source.sts meta.interface.sts punctuation.definition.block.sts" + }, + { + "c": "i", + "t": "source.sts meta.interface.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.interface.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.interface.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.interface.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "10", + "t": "source.sts meta.interface.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.interface.sts punctuation.terminator.statement.sts" + }, + { + "c": "pi", + "t": "source.sts meta.interface.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.interface.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "double", + "t": "source.sts meta.interface.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.interface.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "3", + "t": "source.sts meta.interface.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.interface.sts meta.field.declaration.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "1416", + "t": "source.sts meta.interface.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.interface.sts punctuation.terminator.statement.sts" + }, + { + "c": "foo", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.interface.sts punctuation.terminator.statement.sts" + }, + { + "c": "static", + "t": "source.sts meta.interface.sts storage.modifier.sts" + }, + { + "c": "foo", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "i", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "private", + "t": "source.sts meta.interface.sts meta.method.declaration.sts storage.modifier.sts" + }, + { + "c": "foo", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "b", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "boolean", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ")", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.interface.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.interface.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/this_expression_java.sts.json b/tests/vs_plugin/test/results/this_expression_java.sts.json new file mode 100644 index 000000000..a4e9b4783 --- /dev/null +++ b/tests/vs_plugin/test/results/this_expression_java.sts.json @@ -0,0 +1,466 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.test.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "this_expression", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "v", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "[]", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts meta.type.tuple.sts meta.brace.square.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "equals", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": "other", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts variable.parameter.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "this_expression", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "boolean", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "this", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.language.this.sts" + }, + { + "c": "==", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "other", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "true", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.language.boolean.true.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "v", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.accessor.sts" + }, + { + "c": "length", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts support.variable.property.sts" + }, + { + "c": "!=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "other", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.accessor.sts" + }, + { + "c": "v", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.object.property.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.accessor.sts" + }, + { + "c": "length", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts support.variable.property.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "false", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.language.boolean.false.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "for", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.loop.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "0", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "<", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.relational.sts" + }, + { + "c": "v", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.accessor.sts" + }, + { + "c": "length", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts support.variable.property.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "++", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.increment.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "if", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.conditional.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "v", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "[", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.array.literal.sts variable.other.readwrite.sts" + }, + { + "c": "]", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": "!=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.operator.comparison.sts" + }, + { + "c": "other", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.accessor.sts" + }, + { + "c": "v", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts variable.other.property.sts" + }, + { + "c": "[", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": "i", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.array.literal.sts variable.other.readwrite.sts" + }, + { + "c": "]", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.array.literal.sts meta.brace.square.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "false", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts constant.language.boolean.false.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": "true", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.language.boolean.true.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "foo", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts meta.class.sts storage.type.class.sts" + }, + { + "c": "this_inner", + "t": "source.sts meta.class.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "foo", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "this_expression", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.other.object.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts" + }, + { + "c": "this", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts variable.language.this.inner.sts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts punctuation.accessor.sts" + }, + { + "c": "foo", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.function-call.sts entity.name.function.sts" + }, + { + "c": "()", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.brace.round.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/type_cast_java.sts.json b/tests/vs_plugin/test/results/type_cast_java.sts.json new file mode 100644 index 000000000..30b90aae1 --- /dev/null +++ b/tests/vs_plugin/test/results/type_cast_java.sts.json @@ -0,0 +1,242 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.test.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "export", + "t": "source.sts meta.class.sts keyword.control.export.ts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "type_cast", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "i1", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "34", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "d", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "double", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "7", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "i2", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "d", + "t": "source.sts meta.class.sts meta.field.declaration.sts variable.other.readwrite.sts" + }, + { + "c": "as", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.control.as.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "protected", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "c", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "char", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "'", + "t": "source.sts meta.class.sts meta.field.declaration.sts string.quoted.single.sts punctuation.definition.string.begin.sts" + }, + { + "c": "c", + "t": "source.sts meta.class.sts meta.field.declaration.sts string.quoted.single.sts" + }, + { + "c": "'", + "t": "source.sts meta.class.sts meta.field.declaration.sts string.quoted.single.sts punctuation.definition.string.end.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "protected", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "byte", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "c", + "t": "source.sts meta.class.sts meta.field.declaration.sts variable.other.readwrite.sts" + }, + { + "c": "as", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.control.as.sts" + }, + { + "c": "byte", + "t": "source.sts meta.class.sts meta.field.declaration.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "f", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "float", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "d", + "t": "source.sts meta.class.sts meta.field.declaration.sts variable.other.readwrite.sts" + }, + { + "c": "as", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.control.as.sts" + }, + { + "c": "float", + "t": "source.sts meta.class.sts meta.field.declaration.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/types_decls_sts.json b/tests/vs_plugin/test/results/types_decls_sts.json new file mode 100644 index 000000000..0a8e4b39f --- /dev/null +++ b/tests/vs_plugin/test/results/types_decls_sts.json @@ -0,0 +1,590 @@ +[ + { + "c": "//", + "t": "source.sts comment.line.double-slash.sts punctuation.definition.comment.sts" + }, + { + "c": " see 3.1.1 Integer types", + "t": "source.sts comment.line.double-slash.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "prim_b", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "byte", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "8", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "non_prim_b", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Byte", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "-", + "t": "source.sts meta.var.expr.sts keyword.operator.arithmetic.sts" + }, + { + "c": "8", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "prim_s", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "short", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "42", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "non_prim_s", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Short", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "-", + "t": "source.sts meta.var.expr.sts keyword.operator.arithmetic.sts" + }, + { + "c": "42", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "prim_i", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "65535", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "non_prim_i", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Int", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "-", + "t": "source.sts meta.var.expr.sts keyword.operator.arithmetic.sts" + }, + { + "c": "65535", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "prim_l", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "long", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "10000000", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "non_prim_l", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Long", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "-", + "t": "source.sts meta.var.expr.sts keyword.operator.arithmetic.sts" + }, + { + "c": "10000000", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "//", + "t": "source.sts comment.line.double-slash.sts punctuation.definition.comment.sts" + }, + { + "c": " see 3.1.2 Float types", + "t": "source.sts comment.line.double-slash.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "prim_f", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "float", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "0", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "0", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "non_prim_f", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Float", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "-", + "t": "source.sts meta.var.expr.sts keyword.operator.arithmetic.sts" + }, + { + "c": "0", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "0", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "prim_d", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "double", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "0", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "0", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "non_prim_d", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Double", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "-", + "t": "source.sts meta.var.expr.sts keyword.operator.arithmetic.sts" + }, + { + "c": "0", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "0", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "//", + "t": "source.sts comment.line.double-slash.sts punctuation.definition.comment.sts" + }, + { + "c": " see 3.1.3 Boolean type", + "t": "source.sts comment.line.double-slash.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "prim_b", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "bool", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "true", + "t": "source.sts meta.var.expr.sts constant.language.boolean.true.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "non_prim_b", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Bool", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "false", + "t": "source.sts meta.var.expr.sts constant.language.boolean.false.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "//", + "t": "source.sts comment.line.double-slash.sts punctuation.definition.comment.sts" + }, + { + "c": " see 3.1.4 Char type", + "t": "source.sts comment.line.double-slash.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "prim_c", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "char", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "'", + "t": "source.sts meta.var.expr.sts string.quoted.single.sts punctuation.definition.string.begin.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts string.quoted.single.sts" + }, + { + "c": "'", + "t": "source.sts meta.var.expr.sts string.quoted.single.sts punctuation.definition.string.end.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "non_prim_c", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "Character", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts entity.name.type.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "'", + "t": "source.sts meta.var.expr.sts string.quoted.single.sts punctuation.definition.string.begin.sts" + }, + { + "c": "b", + "t": "source.sts meta.var.expr.sts string.quoted.single.sts" + }, + { + "c": "'", + "t": "source.sts meta.var.expr.sts string.quoted.single.sts punctuation.definition.string.end.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "//", + "t": "source.sts comment.line.double-slash.sts punctuation.definition.comment.sts" + }, + { + "c": " see 3.1.5 Void type", + "t": "source.sts comment.line.double-slash.sts" + }, + { + "c": "function", + "t": "source.sts meta.function.sts storage.type.function.sts" + }, + { + "c": "v", + "t": "source.sts meta.function.sts meta.definition.function.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.function.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{}", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/unary_op_sts.json b/tests/vs_plugin/test/results/unary_op_sts.json new file mode 100644 index 000000000..22617e1d0 --- /dev/null +++ b/tests/vs_plugin/test/results/unary_op_sts.json @@ -0,0 +1,186 @@ +[ + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "1", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": "++", + "t": "source.sts meta.var.expr.sts keyword.operator.increment.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "c", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": "--", + "t": "source.sts meta.var.expr.sts keyword.operator.decrement.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "d", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "+", + "t": "source.sts meta.var.expr.sts keyword.operator.arithmetic.sts" + }, + { + "c": "5", + "t": "source.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "e", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "-", + "t": "source.sts meta.var.expr.sts keyword.operator.arithmetic.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "f", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "~", + "t": "source.sts meta.var.expr.sts keyword.operator.bitwise.sts" + }, + { + "c": "a", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "g", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "true", + "t": "source.sts meta.var.expr.sts constant.language.boolean.true.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "h", + "t": "source.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": "=", + "t": "source.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "!", + "t": "source.sts meta.var.expr.sts keyword.operator.logical.sts" + }, + { + "c": "g", + "t": "source.sts meta.var.expr.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/unary_operations_java.sts.json b/tests/vs_plugin/test/results/unary_operations_java.sts.json new file mode 100644 index 000000000..672a810bb --- /dev/null +++ b/tests/vs_plugin/test/results/unary_operations_java.sts.json @@ -0,0 +1,350 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.test.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "export", + "t": "source.sts meta.class.sts keyword.control.export.ts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "unary_operations", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "pref1", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "+", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.arithmetic.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.field.declaration.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "pref2", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "-", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.arithmetic.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.field.declaration.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "pref3", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "++", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.increment.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.field.declaration.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "pref4", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "--", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.decrement.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.field.declaration.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "pref5", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "~", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.bitwise.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.field.declaration.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "boolean", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "false", + "t": "source.sts meta.class.sts meta.field.declaration.sts constant.language.boolean.false.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "pref6", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "boolean", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "!", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.logical.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.field.declaration.sts variable.other.readwrite.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "post1", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.field.declaration.sts variable.other.readwrite.sts" + }, + { + "c": "++", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.increment.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "private", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "post2", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.definition.property.sts variable.object.property.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.field.declaration.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.assignment.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.field.declaration.sts variable.other.readwrite.sts" + }, + { + "c": "--", + "t": "source.sts meta.class.sts meta.field.declaration.sts keyword.operator.decrement.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/var_declare_java.sts.json b/tests/vs_plugin/test/results/var_declare_java.sts.json new file mode 100644 index 000000000..0af10a922 --- /dev/null +++ b/tests/vs_plugin/test/results/var_declare_java.sts.json @@ -0,0 +1,250 @@ +[ + { + "c": "package", + "t": "source.sts keyword.control.package.sts" + }, + { + "c": "com.ohos.migrator.test.java", + "t": "source.sts entity.name.namespace.sts" + }, + { + "c": ";", + "t": "source.sts punctuation.terminator.statement.sts" + }, + { + "c": "open ", + "t": "source.sts meta.class.sts storage.modifier.ts" + }, + { + "c": "class", + "t": "source.sts meta.class.sts storage.type.class.ts" + }, + { + "c": "VarDeclareTest", + "t": "source.sts meta.class.sts entity.name.type.class.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + }, + { + "c": "public", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "open", + "t": "source.sts meta.class.sts storage.modifier.sts" + }, + { + "c": "Test", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.definition.method.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "a", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "10", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "b", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts variable.other.readwrite.sts" + }, + { + "c": "*=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts keyword.operator.assignment.compound.sts" + }, + { + "c": "10", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "let", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "c", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": ",", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts punctuation.separator.comma.sts" + }, + { + "c": "d", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.readwrite.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "int", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "5", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "e", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.constant.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "double", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "2", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "781828", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "const", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts storage.type.sts" + }, + { + "c": "Pi", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.definition.variable.sts variable.other.constant.sts" + }, + { + "c": ":", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts keyword.operator.type.annotation.sts" + }, + { + "c": "float", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts meta.var-single-variable.expr.sts meta.type.annotation.sts support.type.primitive.sts" + }, + { + "c": "=", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts keyword.operator.assignment.sts" + }, + { + "c": "3", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ".", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts meta.delimiter.decimal.period.ts" + }, + { + "c": "14", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts meta.var.expr.sts constant.numeric.decimal.ts" + }, + { + "c": ";", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts meta.method.declaration.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "}", + "t": "source.sts meta.class.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/results/void_sts.json b/tests/vs_plugin/test/results/void_sts.json new file mode 100644 index 000000000..3061f3708 --- /dev/null +++ b/tests/vs_plugin/test/results/void_sts.json @@ -0,0 +1,42 @@ +[ + { + "c": "function", + "t": "source.sts meta.function.sts storage.type.function.sts" + }, + { + "c": "main", + "t": "source.sts meta.function.sts meta.definition.function.sts entity.name.function.sts" + }, + { + "c": "(", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.begin.sts" + }, + { + "c": ")", + "t": "source.sts meta.function.sts meta.parameters.sts punctuation.definition.parameters.end.sts" + }, + { + "c": ":", + "t": "source.sts meta.function.sts meta.return.type.sts keyword.operator.type.annotation.sts" + }, + { + "c": "void", + "t": "source.sts meta.function.sts meta.return.type.sts support.type.primitive.sts" + }, + { + "c": "{", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + }, + { + "c": "return", + "t": "source.sts meta.function.sts meta.block.sts keyword.control.flow.sts" + }, + { + "c": ";", + "t": "source.sts meta.function.sts meta.block.sts punctuation.terminator.statement.sts" + }, + { + "c": "}", + "t": "source.sts meta.function.sts meta.block.sts punctuation.definition.block.sts" + } +] \ No newline at end of file diff --git a/tests/vs_plugin/test/runTest.ts b/tests/vs_plugin/test/runTest.ts new file mode 100644 index 000000000..136f8a83f --- /dev/null +++ b/tests/vs_plugin/test/runTest.ts @@ -0,0 +1,17 @@ +import * as path from 'path'; +import { runTests } from '@vscode/test-electron'; + +async function main() { + try { + const extensionDevelopmentPath = path.resolve(__dirname, '../../../vs_plugin/src'); + const extensionTestsPath = path.resolve(__dirname, './suite/index'); + + await runTests({ extensionDevelopmentPath, extensionTestsPath }); + } + catch (err) { + console.error('Failed to run tests'); + process.exit(1); + } +} + +main(); \ No newline at end of file diff --git a/tests/vs_plugin/test/snippets/array.sts b/tests/vs_plugin/test/snippets/array.sts new file mode 100644 index 000000000..bff55ea7a --- /dev/null +++ b/tests/vs_plugin/test/snippets/array.sts @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +let a = [1,2,3]; +let v: string[] = ["x", "y", "z"]; + diff --git a/tests/vs_plugin/test/snippets/array_creation.java.sts b/tests/vs_plugin/test/snippets/array_creation.java.sts new file mode 100644 index 000000000..7a386f7a0 --- /dev/null +++ b/tests/vs_plugin/test/snippets/array_creation.java.sts @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.ohos.migrator.test.java; + +export open class array_creation { + private const b1 : byte[] = new byte[8]; + private const c1 : char[] = ['a', 'b', 'c']; + private foo(c2 : char): void { + } + public open bar(): void { + foo(['g', 'k', 'h']); + } +} diff --git a/tests/vs_plugin/test/snippets/array_type.java.sts b/tests/vs_plugin/test/snippets/array_type.java.sts new file mode 100644 index 000000000..a6718858e --- /dev/null +++ b/tests/vs_plugin/test/snippets/array_type.java.sts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.ohos.migrator.test.java; + +open class array_type { + private a : int[] ; + protected f : float[][][] ; + public open foo(s : String[][]): void { + } + open toCharArray(): char[] { + return null; + } + private toStringArray(): String[] { + return null; + } +} diff --git a/tests/vs_plugin/test/snippets/assert.java.sts b/tests/vs_plugin/test/snippets/assert.java.sts new file mode 100644 index 000000000..72da57f5e --- /dev/null +++ b/tests/vs_plugin/test/snippets/assert.java.sts @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.ohos.migrator.test.java; + +open class test_assert { + open test(x : int): void { + assert x > 10; + assert (x != 2); + assert x > 10 || x < 3 : "inside interval!"; + assert (x < 10 && x > 2) : "outside interval!"; + } +} + diff --git a/tests/vs_plugin/test/snippets/assign.sts b/tests/vs_plugin/test/snippets/assign.sts new file mode 100644 index 000000000..6a6b57db3 --- /dev/null +++ b/tests/vs_plugin/test/snippets/assign.sts @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +let a = 0; +const b = 1; + +function main(): void { + a = b; +} diff --git a/tests/vs_plugin/test/snippets/assignments.java.sts b/tests/vs_plugin/test/snippets/assignments.java.sts new file mode 100644 index 000000000..ca14db364 --- /dev/null +++ b/tests/vs_plugin/test/snippets/assignments.java.sts @@ -0,0 +1,38 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.ohos.migrator.test.java; + +open class AssignmentsTest { + a : int ; + b : int ; + public open Test(): void { + a = 10; + a += 1; + a -= 2; + a *= 3; + a /= 4; + a %= 5; + a = 10; + a >>= 1; + a >>>= 2; + a <<= 3; + a = 10; + a &= 2; + a |= 3; + a ^= 4; + b = a = 10; + } +} + diff --git a/tests/vs_plugin/test/snippets/binary_op.sts b/tests/vs_plugin/test/snippets/binary_op.sts new file mode 100644 index 000000000..4b34ad255 --- /dev/null +++ b/tests/vs_plugin/test/snippets/binary_op.sts @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +let a = 1; +let b = 2; +let bool1 = true; +let bool2 = false; + +let b01 = a * b; +let b02 = a / b; +let b03 = a % b; +let b04 = a + b; +let b05 = a - b; +let b06 = a >> b; +let b07 = a << b; +let b08 = a >>> b; +let b09 = a & b; +let b10 = a ^ b; +let b11 = a > b; +let b12 = a < b; +let b13 = a >= b; +let b14 = a <= b; +let b15 = a != b; +let b16 = bool1 && bool2; +let b17 = bool1 || bool2; +let b18 = a == b; +let b19 = a * b >>> b - a; +let b20 = a > b && bool1 || bool2; +let b21 = b01 | b02; diff --git a/tests/vs_plugin/test/snippets/binary_operations.java.sts b/tests/vs_plugin/test/snippets/binary_operations.java.sts new file mode 100644 index 000000000..c2a67f15c --- /dev/null +++ b/tests/vs_plugin/test/snippets/binary_operations.java.sts @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.ohos.migrator.test.java; + +export open class binary_operations { + private sum1 : int = 3 + 2; + private sum2 : int = 3 + 2 - 4 + 1; + private sub1 : int = 8 - 3; + private sub2 : int = 8 - 3 + 8; + private rem1 : int = 5 % 3; + private rem2 : int = 5 % 3 - 2 * 8; + private mult1 : float = 6.2 * 3.14; + private mult2 : double = 6.2 * (3.7 + 8.18) / 2.2; + private div1 : float = 4.2 / 2.3; + private div2 : double = 4.2 / (2.2 - 0.1) + (3.3 / 6.1); + private lsh : int = 7 << 2; + private rsh1 : int = 7 >> 2; + private rsh2 : int = 7 >>> 2; + private bit1 : int = 7 & 3; + private bit2 : int = 7 | 3; + private bit3 : int = 7 ^ 3; + private b1 : boolean = 3 < 8; + private b2 : boolean = 3 <= 7; + private b3 : boolean = 3 >= 7; + private b4 : boolean = 3 > 8; + private b5 : boolean = 7 == 8; + private b6 : boolean = 7 != 4; + private b7 : boolean = (7 < 3) && (8 > 1); + private b8 : boolean = (7 < 3) || (8 > 1); +} + diff --git a/tests/vs_plugin/test/snippets/boolean.sts b/tests/vs_plugin/test/snippets/boolean.sts new file mode 100644 index 000000000..1fada3cc8 --- /dev/null +++ b/tests/vs_plugin/test/snippets/boolean.sts @@ -0,0 +1,17 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +let b: boolean = true; +const f = false; \ No newline at end of file diff --git a/tests/vs_plugin/test/snippets/boolean_cond.sts b/tests/vs_plugin/test/snippets/boolean_cond.sts new file mode 100644 index 000000000..84fc07602 --- /dev/null +++ b/tests/vs_plugin/test/snippets/boolean_cond.sts @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +function main(): void { + if (true) { + + } + if (1 > 2) { + + } +} \ No newline at end of file diff --git a/tests/vs_plugin/test/snippets/break.sts b/tests/vs_plugin/test/snippets/break.sts new file mode 100644 index 000000000..d6e772a92 --- /dev/null +++ b/tests/vs_plugin/test/snippets/break.sts @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +let a = [1, 2, 3]; +function main(): void { + for (let v of a) { + if (v == 2) break; + } +} \ No newline at end of file diff --git a/tests/vs_plugin/test/snippets/calls.sts b/tests/vs_plugin/test/snippets/calls.sts new file mode 100644 index 000000000..3b84275f7 --- /dev/null +++ b/tests/vs_plugin/test/snippets/calls.sts @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +function bar(x: int, y: float): int { + return x; +} + +function foo(x: int): int { + bar(x, 30); +} + +function main(): void { + main(); + foo(11); +} diff --git a/tests/vs_plugin/test/snippets/cast_expressions.sts b/tests/vs_plugin/test/snippets/cast_expressions.sts new file mode 100644 index 000000000..56232b96a --- /dev/null +++ b/tests/vs_plugin/test/snippets/cast_expressions.sts @@ -0,0 +1,20 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// see 5.12 Cast Expressions +let a = 5 as int; +let b = 5 as object; +let c = 5 as Int; + diff --git a/tests/vs_plugin/test/snippets/class_init.sts b/tests/vs_plugin/test/snippets/class_init.sts new file mode 100644 index 000000000..fbae54c8c --- /dev/null +++ b/tests/vs_plugin/test/snippets/class_init.sts @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +class C { + public static x: int; + + static { + x = 30 * 99 + } +} diff --git a/tests/vs_plugin/test/snippets/class_instance_creation.java.sts b/tests/vs_plugin/test/snippets/class_instance_creation.java.sts new file mode 100644 index 000000000..73b567831 --- /dev/null +++ b/tests/vs_plugin/test/snippets/class_instance_creation.java.sts @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.ohos.migrator.test.java; + +open class class_instance_creation { + constructor(i : int) { + } + + constructor() { + } + + constructor(s : String, d : double) { + } + + public open foo(): void { + } + + static inst1 : class_instance_creation = new class_instance_creation(); + static inst2 : class_instance_creation = new class_instance_creation(3); + static inst3 : class_instance_creation = new class_instance_creation("ss", 7.8); + static inst4 : class_instance_creation = new class_instance_creation(3) { + private f : int ; + public override foo(): void { + f = 2; + } + }; +} + diff --git a/tests/vs_plugin/test/snippets/class_instance_initializer.java.sts b/tests/vs_plugin/test/snippets/class_instance_initializer.java.sts new file mode 100644 index 000000000..c77a40cc6 --- /dev/null +++ b/tests/vs_plugin/test/snippets/class_instance_initializer.java.sts @@ -0,0 +1,74 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.ohos.migrator.test.java; + +open class A { + a : int = 1; + b : int = 3; + public constructor() { + a = 2; + b = 4; + a = 10; + b = 20; + } + + public constructor(p : int) { + this(); + a = 30; + b = 40; + } + + public constructor(s : String) { + a = 2; + b = 4; + a = 50; + b = 60; + } + +} + +open class B extends A { + c : int = 11; + d : int = 33; + public constructor() { + c += 22; + d -= 44; + c = 100; + d = 200; + } + + public constructor(p : int) { + this(); + c = 300; + d = 400; + } + + public constructor(s : String) { + super(0); + c += 22; + d -= 44; + c = 500; + d = 600; + } + +} + +open class C { + foo : String ; + + public constructor() { + foo = "bar"; + } +} diff --git a/tests/vs_plugin/test/snippets/class_static_initializer.java.sts b/tests/vs_plugin/test/snippets/class_static_initializer.java.sts new file mode 100644 index 000000000..c1bc35b8a --- /dev/null +++ b/tests/vs_plugin/test/snippets/class_static_initializer.java.sts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.ohos.migrator.test.java; + +open class MyClass { + static a : int = 1; + static { + a = 2; + a += 3; + b = 5; + b -= 6; + } + + static b : int = 4; +} + diff --git a/tests/vs_plugin/test/snippets/classes.sts b/tests/vs_plugin/test/snippets/classes.sts new file mode 100644 index 000000000..f5cfbc654 --- /dev/null +++ b/tests/vs_plugin/test/snippets/classes.sts @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +class C1 { +} + +abstract class C2 { +} + +open class C3 { +} + +class C4 extends C3 { +} diff --git a/tests/vs_plugin/test/snippets/comment_block.sts b/tests/vs_plugin/test/snippets/comment_block.sts new file mode 100644 index 000000000..53e14b4a3 --- /dev/null +++ b/tests/vs_plugin/test/snippets/comment_block.sts @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/**/ + +/* + block +*/ + +/* + /* + nested block + */ +*/ + +/* + // nested one-liner +*/ + +// /* + +// */ \ No newline at end of file diff --git a/tests/vs_plugin/test/snippets/comment_line.sts b/tests/vs_plugin/test/snippets/comment_line.sts new file mode 100644 index 000000000..c4691ea0f --- /dev/null +++ b/tests/vs_plugin/test/snippets/comment_line.sts @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// one-liner \ No newline at end of file diff --git a/tests/vs_plugin/test/snippets/conditional_expression.java.sts b/tests/vs_plugin/test/snippets/conditional_expression.java.sts new file mode 100644 index 000000000..432ed0b68 --- /dev/null +++ b/tests/vs_plugin/test/snippets/conditional_expression.java.sts @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.ohos.migrator.tests.java; + +open class ConditionalExpression { + public open Test(): void { + let value1 : int = 1; + let value2 : int = 2; + let result : int ; + let someCondition : boolean = true; + result = someCondition ? value1 : value2; + } +} diff --git a/tests/vs_plugin/test/snippets/const.sts b/tests/vs_plugin/test/snippets/const.sts new file mode 100644 index 000000000..1cab77240 --- /dev/null +++ b/tests/vs_plugin/test/snippets/const.sts @@ -0,0 +1,17 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +const x = 1; +const y: string = "Hello"; diff --git a/tests/vs_plugin/test/snippets/constructor_test.java.sts b/tests/vs_plugin/test/snippets/constructor_test.java.sts new file mode 100644 index 000000000..f4a251eab --- /dev/null +++ b/tests/vs_plugin/test/snippets/constructor_test.java.sts @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.ohos.migrator.tests.java; + +export open class constructor_test { + public constructor() { + this(0); + } + + protected constructor(b : double, c : char, i : int) { + } + + private constructor(i : int) { + } + +} + +open class derived extends constructor_test { + public constructor() { + this(5); + } + + protected constructor(i : int) { + super(1.2, 'c', i); + } + +} + diff --git a/tests/vs_plugin/test/snippets/constructors.sts b/tests/vs_plugin/test/snippets/constructors.sts new file mode 100644 index 000000000..c5bf00ec7 --- /dev/null +++ b/tests/vs_plugin/test/snippets/constructors.sts @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +class C { + protected x: int; + protected y: float; + private constructor() {} + protected constructor(x: int) { this.x = x; } + public constructor(y: float) { + this(0); + this.y = y; + } +} + +class I { + protected x: int; +} + +class I1 extends I { + public constructor() { + super() + } +} diff --git a/tests/vs_plugin/test/snippets/continue.sts b/tests/vs_plugin/test/snippets/continue.sts new file mode 100644 index 000000000..bc11723e0 --- /dev/null +++ b/tests/vs_plugin/test/snippets/continue.sts @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +let a = [1, 2, 3]; +function main(): void { + for (let v of a) { + if (v == 2) continue; + } +} \ No newline at end of file diff --git a/tests/vs_plugin/test/snippets/decl_infer.sts b/tests/vs_plugin/test/snippets/decl_infer.sts new file mode 100644 index 000000000..d9db2a11e --- /dev/null +++ b/tests/vs_plugin/test/snippets/decl_infer.sts @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +let li = 0; +let ld = 0.0; +let lc = 'a'; +let ls = "11"; +let lb = false; + +const ci = 0; +const cd = 0.0; +const cc = 'a'; +const cs = "11"; +const cb = false; diff --git a/tests/vs_plugin/test/snippets/empty_class.java.sts b/tests/vs_plugin/test/snippets/empty_class.java.sts new file mode 100644 index 000000000..5f90094f9 --- /dev/null +++ b/tests/vs_plugin/test/snippets/empty_class.java.sts @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.ohos.migrator.test.java; + +open class empty_class { +} + diff --git a/tests/vs_plugin/test/snippets/empty_statement.java.sts b/tests/vs_plugin/test/snippets/empty_statement.java.sts new file mode 100644 index 000000000..efe573a47 --- /dev/null +++ b/tests/vs_plugin/test/snippets/empty_statement.java.sts @@ -0,0 +1,38 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.ohos.migrator.test.java; + +open class empty_statement { + a : int ; + public open Test(): void { + a = 10; + let i : int = 0; + for (; i < 10; ++i) { + } + for (let s : int = 1; s < 2; ++s) { + } + for (let c : char of "string".toCharArray()){ + } + if (i != 0) { + } + if (i == 0) { + ++i; + } + else { + } + } + public open Run(): void { + } +} diff --git a/tests/vs_plugin/test/snippets/enhanced_for_statement.java.sts b/tests/vs_plugin/test/snippets/enhanced_for_statement.java.sts new file mode 100644 index 000000000..11e272855 --- /dev/null +++ b/tests/vs_plugin/test/snippets/enhanced_for_statement.java.sts @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.ohos.migrator.test.java; + +import java.util.Collection; +import java.util.ArrayList; +open class EnhancedForStatements { + public static Test(): void { + let array : int[] = null; + let sum : int = 0; + for (let num : int of array)sum += num; + sum = 0; + let list : Collection = new ArrayList(); + for (let i : int of list){ + sum += i; + } + } +} diff --git a/tests/vs_plugin/test/snippets/enum.sts b/tests/vs_plugin/test/snippets/enum.sts new file mode 100644 index 000000000..eff07a159 --- /dev/null +++ b/tests/vs_plugin/test/snippets/enum.sts @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +enum Color { Red, Green, Blue } +let c = Color.Red; +let s = Color[c]; diff --git a/tests/vs_plugin/test/snippets/enum_with_class_behavior.java.sts b/tests/vs_plugin/test/snippets/enum_with_class_behavior.java.sts new file mode 100644 index 000000000..6fab978ac --- /dev/null +++ b/tests/vs_plugin/test/snippets/enum_with_class_behavior.java.sts @@ -0,0 +1,123 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.ohos.migrator.test.java; + +interface IOperation { + apply(a : int, b : int): int ; +} + +open class ArithmeticOperation extends Enum implements IOperation { + public static const PLUS : ArithmeticOperation = new ArithmeticOperation("PLUS", 0) { + public override apply(a : int, b : int): int { + return a + b; + } + }; + public static const MINUS : ArithmeticOperation = new ArithmeticOperation("MINUS", 1) { + public override apply(a : int, b : int): int { + return a - b; + } + }; + public static const MULTIPLY : ArithmeticOperation = new ArithmeticOperation("MULTIPLY", 2) { + public override apply(a : int, b : int): int { + return a * b; + } + }; + public static const DIVIDE : ArithmeticOperation = new ArithmeticOperation("DIVIDE", 3) { + public override apply(a : int, b : int): int { + return a / b; + } + }; + + private foo : String ; + + public static values(): ArithmeticOperation[] { + return [PLUS, MINUS, MULTIPLY, DIVIDE]; + } + public static valueOf(name : String): ArithmeticOperation { + for (let value : ArithmeticOperation of values()){ + if (name == value.toString()) return value; + } + return null; + } + + private constructor(name : String, ordinal : int) { + super(name, ordinal); + foo = "bar"; + } +} +class Planet extends Enum { + public static const MERCURY : Planet = new Planet("MERCURY", 0, 3.303e+23, 2.4397e6); + public static const VENUS : Planet = new Planet("VENUS", 1, 4.869e+24, 6.0518e6); + public static const EARTH : Planet = new Planet("EARTH", 2, 5.976e+24, 6.37814e6); + public static const MARS : Planet = new Planet("MARS", 3, 6.421e+23, 3.3972e6); + public static const JUPITER : Planet = new Planet("JUPITER", 4, 1.9e+27, 7.1492e7, PlanetType.GAS); + public static const SATURN : Planet = new Planet("SATURN", 5, 5.688e+26, 6.0268e7, PlanetType.GAS); + public static const URANUS : Planet = new Planet("URANUS", 6, 8.686e+25, 2.5559e7, PlanetType.ICE); + public static const NEPTUNE : Planet = new Planet("NEPTUNE", 7, 1.024e+26, 2.4746e7, PlanetType.ICE); + + static class PlanetType extends Enum { + public static const ROCK : PlanetType = new PlanetType("ROCK", 0); + public static const GAS : PlanetType = new PlanetType("GAS", 1); + public static const ICE : PlanetType = new PlanetType("ICE", 2); + + public static values(): PlanetType[] { + return [ROCK, GAS, ICE]; + } + public static valueOf(name : String): PlanetType { + for (let value : PlanetType of values()){ + if (name == value.toString()) return value; + } + return null; + } + private constructor(name : String, ordinal : int) { + super(name, ordinal); + } + } + + private mass : double ; + private radius : double ; + private type : PlanetType ; + + constructor(name : String, ordinal : int, mass : double, radius : double, type : PlanetType) { + super(name, ordinal); + this.mass = mass; + this.radius = radius; + this.type = type; + } + + constructor(name : String, ordinal : int, mass : double, radius : double) { + this(name, ordinal, mass, radius, PlanetType.ROCK); + } + + public static const G : double = 6.67300E-11; + + open surfaceGravity(): double { + return G * mass / (radius * radius); + } + + open surfaceWeight(otherMass : double): double { + return otherMass * surfaceGravity(); + } + + public static values(): Planet[] { + return [MERCURY, VENUS, EARTH, MARS, JUPITER, SATURN, URANUS, NEPTUNE]; + } + public static valueOf(name : String): Planet { + for (let value : Planet of values()){ + if (name == value.toString()) return value; + } + return null; + } +} diff --git a/tests/vs_plugin/test/snippets/exports.sts b/tests/vs_plugin/test/snippets/exports.sts new file mode 100644 index 000000000..6cc55bd74 --- /dev/null +++ b/tests/vs_plugin/test/snippets/exports.sts @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +export let a = 11; +export const b = 12; + +export function f(): void {} + +export interface I {} +export class C {} diff --git a/tests/vs_plugin/test/snippets/field_decl.java.sts b/tests/vs_plugin/test/snippets/field_decl.java.sts new file mode 100644 index 000000000..87ed5bfcc --- /dev/null +++ b/tests/vs_plugin/test/snippets/field_decl.java.sts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.ohos.migrator.test.java; + +export open class field_decl { + private a : int ; + protected b : char ; + protected c : char = 'c'; + public d : boolean = true; + f : short ; + static g : long ; + static const pi : float = 3.14; + public static const e : double = 2.71828; + private const h : byte = 2; +} + diff --git a/tests/vs_plugin/test/snippets/fields.sts b/tests/vs_plugin/test/snippets/fields.sts new file mode 100644 index 000000000..4fa8f13b5 --- /dev/null +++ b/tests/vs_plugin/test/snippets/fields.sts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +class C { + x: int; + y = 1; + static a: int; + static b: float; + const d: int = 0; + //const static static const const static e = 30; + const static e = 30; + static const f = 3.0; + public static const g = 30; + private static const f = 30; + protected static const h = 30; +} diff --git a/tests/vs_plugin/test/snippets/final_empty_class.java.sts b/tests/vs_plugin/test/snippets/final_empty_class.java.sts new file mode 100644 index 000000000..0b13e1db4 --- /dev/null +++ b/tests/vs_plugin/test/snippets/final_empty_class.java.sts @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.ohos.migrator.test.java; + +export class final_empty_class { +} + diff --git a/tests/vs_plugin/test/snippets/for_of.sts b/tests/vs_plugin/test/snippets/for_of.sts new file mode 100644 index 000000000..f48945398 --- /dev/null +++ b/tests/vs_plugin/test/snippets/for_of.sts @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +let a = [1, 2, 3]; +function main(): void { + for (let v of a) { + + } + for (let v of a) { + + } +} + +function forins(): char { + for (let i of "abcdef") + return i; +} diff --git a/tests/vs_plugin/test/snippets/for_statement.java.sts b/tests/vs_plugin/test/snippets/for_statement.java.sts new file mode 100644 index 000000000..c1c6e6c92 --- /dev/null +++ b/tests/vs_plugin/test/snippets/for_statement.java.sts @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.ohos.migrator.test.java; + +open class ForStatements { + public static Test(): void { + for (; ; ) break; + for (; ; ) { + break; + } + for (let i : int = 0; ; ) { + i++; + if (i == 2) continue; + if (i == 5) break; + } + let a : int = 0; + for (; a < 5; ) a++; + for (; ; a--) { + if (a == 0) break; + } + for (let i : int = 0, j : int = 0; i < 5; i++, j++) { + let k : int = i * j; + } + let b : int = 0; + for (a = 5, b = 5; a > 0; a--, b--) { + let c : int = a / b; + } + outerLoop: for (let i : int = 0; i < 5; i++) { + innerLoop: for (let j : int = 0; j < 5; j++) { + if (j == 2) continue innerLoop; + if (i * j == 20) break outerLoop; + } + } + } +} + diff --git a/tests/vs_plugin/test/snippets/for_with_break.sts b/tests/vs_plugin/test/snippets/for_with_break.sts new file mode 100644 index 000000000..cb0a16384 --- /dev/null +++ b/tests/vs_plugin/test/snippets/for_with_break.sts @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +function main(): void { + let n = 0; + for (let i = 1; i < 1000; i += 1) { + if (i % 2 == 0) { + n += 1; + } + if (n == 10) { + break; + } + } +} \ No newline at end of file diff --git a/tests/vs_plugin/test/snippets/function.sts b/tests/vs_plugin/test/snippets/function.sts new file mode 100644 index 000000000..1e7abf91f --- /dev/null +++ b/tests/vs_plugin/test/snippets/function.sts @@ -0,0 +1,36 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +function attr(name: string): string { + return ""; +} + +function attr(name: string, value: string): int { + return 0; +} + +function attr(map: Object): int { + return -1; +} + +function attr(nameOrMap: Object, value: string): Object { + return null; +} + +// see 5.16 +let int2str = (i: int): string => { + return ""; +}; \ No newline at end of file diff --git a/tests/vs_plugin/test/snippets/function_decl.sts b/tests/vs_plugin/test/snippets/function_decl.sts new file mode 100644 index 000000000..dddcf6686 --- /dev/null +++ b/tests/vs_plugin/test/snippets/function_decl.sts @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +function foo(a: int, b: float, ...c: int[]): boolean {} \ No newline at end of file diff --git a/tests/vs_plugin/test/snippets/generic_function.sts b/tests/vs_plugin/test/snippets/generic_function.sts new file mode 100644 index 000000000..68d6da074 --- /dev/null +++ b/tests/vs_plugin/test/snippets/generic_function.sts @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +interface Comparable { + localeCompare(other: Object): int; +} + +function compare(x: T, y: T): int { + if (x == null) return y == null ? 0 : -1; + if (y == null) return 1; + return x.localeCompare(y); +} diff --git a/tests/vs_plugin/test/snippets/identifier.sts b/tests/vs_plugin/test/snippets/identifier.sts new file mode 100644 index 000000000..ee35d6c75 --- /dev/null +++ b/tests/vs_plugin/test/snippets/identifier.sts @@ -0,0 +1,20 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// see 2.3 Identifiers +let simple_ident: int = 1; +let _underscore_ident: int = 2; +let $dollar_ident: int = 3; + diff --git a/tests/vs_plugin/test/snippets/if.java.sts b/tests/vs_plugin/test/snippets/if.java.sts new file mode 100644 index 000000000..1eef9e767 --- /dev/null +++ b/tests/vs_plugin/test/snippets/if.java.sts @@ -0,0 +1,72 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.ohos.migrator.test.java; + +open class IfTest { + public open Test(): void { + let t : boolean = true; + let a : int , b : int ; + if (t) a = 1; + if (t) a = 2; + else a = 3; + if (t) { + a = 4; + b = 100; + } + if (t) { + a = 5; + b = 101; + } + else { + a = 6; + b = 102; + } + if (t) a = 7; + else { + a = 8; + b = 103; + } + if (t) { + a = 9; + b = 104; + } + else a = 10; + let p : boolean = false; + if (t) if (p) a = 11; + else a = 12; + if (t) a = 13; + else if (p) { + a = 14; + } + if (t) a = 15; + else { + if (p) a = 16; + else a = 17; + } + if (t) { + if (p) { + a = 18; + b = 105; + } + else { + a = 19; + b = 106; + } + } + else if (p) a = 20; + else a = 21; + } +} + diff --git a/tests/vs_plugin/test/snippets/ifs.sts b/tests/vs_plugin/test/snippets/ifs.sts new file mode 100644 index 000000000..b5f488c63 --- /dev/null +++ b/tests/vs_plugin/test/snippets/ifs.sts @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +function foo(): int { + if (false) return 0; + if (false) return 1; + else { + if (false) return 2; + else + if (false) return 3; + else if (false) return 4; + else return 5; + } +} diff --git a/tests/vs_plugin/test/snippets/inheritance.java.sts b/tests/vs_plugin/test/snippets/inheritance.java.sts new file mode 100644 index 000000000..b069d5614 --- /dev/null +++ b/tests/vs_plugin/test/snippets/inheritance.java.sts @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.ohos.migrator.tests.java; + +interface interface_a { +} + +interface interface_b { +} + +open class base_class { +} + +open class public_class extends base_class implements interface_a, interface_b { +} + +class final_class extends base_class { +} + +abstract class abstract_class extends base_class implements interface_b { +} + +export open class inheritance extends base_class { +} + diff --git a/tests/vs_plugin/test/snippets/instanceof.sts b/tests/vs_plugin/test/snippets/instanceof.sts new file mode 100644 index 000000000..eff0a403b --- /dev/null +++ b/tests/vs_plugin/test/snippets/instanceof.sts @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +function t(v: Object): int { + if (v instanceof string) { + return 1; + } else { + return 2; + } +} \ No newline at end of file diff --git a/tests/vs_plugin/test/snippets/interface.sts b/tests/vs_plugin/test/snippets/interface.sts new file mode 100644 index 000000000..4cdff1888 --- /dev/null +++ b/tests/vs_plugin/test/snippets/interface.sts @@ -0,0 +1,17 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +interface G {} + diff --git a/tests/vs_plugin/test/snippets/interfaces.sts b/tests/vs_plugin/test/snippets/interfaces.sts new file mode 100644 index 000000000..8ae72a9be --- /dev/null +++ b/tests/vs_plugin/test/snippets/interfaces.sts @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +interface I { + RED: int = 1; + BLUE = 2; +} + +interface I0 { + private nop(): void { nopnop(); } + static nopnop(): void {} +} + +interface I1 extends I, I0 { +} diff --git a/tests/vs_plugin/test/snippets/intersection-type.java.sts b/tests/vs_plugin/test/snippets/intersection-type.java.sts new file mode 100755 index 000000000..96a82304a --- /dev/null +++ b/tests/vs_plugin/test/snippets/intersection-type.java.sts @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.ohos.migrator.test.java; + +open class intersection_type { + public open bar(arg : auxilliary): void { + let r : Runnable = arg as (Runnable & Something); + r.run(); + let s : Something = arg as (Something & Runnable); + s.foo(); + } +} + +open class auxilliary implements Runnable, Something { + public open run(): void { + } + public open foo(): void { + } +} + +interface Something { + foo(): void ; +} + diff --git a/tests/vs_plugin/test/snippets/labeled.java.sts b/tests/vs_plugin/test/snippets/labeled.java.sts new file mode 100644 index 000000000..657fe642e --- /dev/null +++ b/tests/vs_plugin/test/snippets/labeled.java.sts @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.ohos.migrator.test.java; + +open class LabeledTest { + a : int ; + public open Test(): void { + L1: a = 10; + L2: L3: a *= 2; + L4: L5: L6: a += 1; + L7: null; + } +} + diff --git a/tests/vs_plugin/test/snippets/literals.java.sts b/tests/vs_plugin/test/snippets/literals.java.sts new file mode 100755 index 000000000..3e3d7934d --- /dev/null +++ b/tests/vs_plugin/test/snippets/literals.java.sts @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.ohos.migrator.test.java; + +open class literals { + open test(): void { + let b : byte = 0; + let b2 : byte = 1_0_2; + let s : short = 0x1; + let s2 : short = 0X1_F; + let i : int = 0o2; + let i2 : int = 0o3_4_56; + let l : long = 0b11; + let l2 : long = 0B1_01_11; + let f : float = 4; + let f2 : float = 1_2.23_45e+6; + let f3 : float = 3.402_823_5e1_7; + let d : double = 5.; + let d2 : double = .123_456; + let d3 : double = 0.123876; + let pi : double = 3.1416; + let G : double = 6.6_73_00E-11; + let c : char = '6'; + let c2 : char = '\t'; + let c3 : char = '\''; + let str : String = "7"; + let str2 : String = "Who needs \"dots\" over \"eyes\"? ;)\r\n"; + let nl : literals = null; + let tl : boolean = true; + let fl : boolean = false; + let cl : Class = literals.class; + let ll : Class = long.class; + let sal : Class = String[].class; + let dal : Class = double[].class; + } +} + diff --git a/tests/vs_plugin/test/snippets/literals.sts b/tests/vs_plugin/test/snippets/literals.sts new file mode 100644 index 000000000..4252257ae --- /dev/null +++ b/tests/vs_plugin/test/snippets/literals.sts @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +const lit00 = 0; +const lit01 = 0x0; +// Valid but must be fixed in grammar +//const lit02 = 0o644; +const lit03 = "string"; +const lit04 = 0b1011; +const lit05 = 3.14159e0; +const lit06 = 1.0e-6; +const lit07 = 1.0E-6; +const lit08 = -1.0E-6; +const lit09 = 'a'; +const lit10 = '\u0061'; +const lit11 = true; +const lit12 = false; +const lit13 = null; +const lit14 = []; +const lit15 = [1,2,3]; +const lit16 = ["1","2","3"]; +const lit15 = [1.0,2.0,3.0]; diff --git a/tests/vs_plugin/test/snippets/loops.sts b/tests/vs_plugin/test/snippets/loops.sts new file mode 100644 index 000000000..b64f5e123 --- /dev/null +++ b/tests/vs_plugin/test/snippets/loops.sts @@ -0,0 +1,65 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +function fors(): void { + for (let i = 1; i < 5; i++) continue; + let j = 1; + for (j = 1; i < 5; i++) continue; + // Valid but must be fixed in grammar + // for (;;) break; + for (let i = 1, j = 3; i + j < 30; i += j) { + continue; + } +} + +function whiles(): void { + while (false) { + } + + while (true) break; +} + +function dowhiles(): void { + let i = 0; + do + i += 1; + while (i < 30); + + do { + i *= -1 + } while (i != 30); +} + +// see 6.9 +function labeledbreak(): void { + loop1: + for (let i = 1; i < 5; i++) { + loop2: + for (let j = 1; j < 5; j++) { + break loop1; + } + } +} + +// see 6.10 +function labeledcontinue(): void { + loop1: + for (let i = 1; i < 5; i++) { + loop2: + for (let j = 1; j < 5; j++) { + continue loop1; + } + } +} diff --git a/tests/vs_plugin/test/snippets/method_empty.java.sts b/tests/vs_plugin/test/snippets/method_empty.java.sts new file mode 100644 index 000000000..f7383f767 --- /dev/null +++ b/tests/vs_plugin/test/snippets/method_empty.java.sts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.ohos.migrator.tests.java; + +open class A { + public open foo(): void { + } + + private foo(i : int): void { + } + + static foo(d : double): void { + } + +} + diff --git a/tests/vs_plugin/test/snippets/method_full.java.sts b/tests/vs_plugin/test/snippets/method_full.java.sts new file mode 100644 index 000000000..0cf0b6554 --- /dev/null +++ b/tests/vs_plugin/test/snippets/method_full.java.sts @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.ohos.migrator.tests.java; + +abstract class method_full { + open foo(): void { + } + open foo_void(b : boolean): void { + return; + } + open foo_int(b : double, c : char, i : int): int { + return 1; + } + open foo_bool(d : double, c : char, ... i: int ): boolean { + return true; + } + private foo_private(d : double): int { + return 2; + } + public foo_final(d : double): double { + return 1.; + } + protected static foo_final(i : int): boolean { + return false; + } + protected abstract foo_abstract(): int ; + private native foo_native(): int ; +} diff --git a/tests/vs_plugin/test/snippets/method_invocation.java.sts b/tests/vs_plugin/test/snippets/method_invocation.java.sts new file mode 100644 index 000000000..681a206d0 --- /dev/null +++ b/tests/vs_plugin/test/snippets/method_invocation.java.sts @@ -0,0 +1,111 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.ohos.migrator.tests.java; + +open class SuperClass { + open foo(): void { + System.out.println("Hi"); + } +} + +open class SubClass1 extends SuperClass { + override foo(): void { + } + tweak : Runnable = new Runnable() { + public open run(): void { + SubClass1.super.foo(); + } + }; +} + +interface SuperInterface { + foo(): void { + System.out.println("Hi"); + } +} + +open class SubClass2 implements SuperInterface { + public open foo(): void { + } + open tweak(): void { + SuperInterface.super.foo(); + } +} + +open class SubClass3 implements SuperInterface { + public open foo(): void { + } + tweak : Runnable = new Runnable() { + public open run(): void { + } + }; +} + +open class Doubler { + static two(): int { + return two(1); + } + private static two(i : int): int { + return 2 * i; + } +} + +open class Test extends Doubler { + static two(j : long): long { + return j + j; + } + public static main(args : String[]): void { + System.out.println(two(3)); + } +} + +open class ColoredPoint { + x : int ; + y : int ; + color : byte ; + open setColor(color : byte): void { + this.color = color; + } +} + +open class Test2 { + public static main(args : String[]): void { + let cp : ColoredPoint = new ColoredPoint(); + let color : byte = 37; + cp.setColor(color); + } +} + +open class Point { + x : int ; + y : int ; +} + +open class ColoredPoint2 extends Point { + color : int ; +} + +open class Test3 { + static test(p : ColoredPoint, q : Point): void { + System.out.println("(ColoredPoint, Point)"); + } + static test(q : Point, p : ColoredPoint): void { + System.out.println("(Point, ColoredPoint)"); + } + public static main(args : String[]): void { + let cp : ColoredPoint2 = new ColoredPoint2(); + } +} diff --git a/tests/vs_plugin/test/snippets/named_types.java.sts b/tests/vs_plugin/test/snippets/named_types.java.sts new file mode 100644 index 000000000..bf7e15d13 --- /dev/null +++ b/tests/vs_plugin/test/snippets/named_types.java.sts @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.ohos.migrator.test.java; + +import java.util.List; +import java.lang.annotation.*; +open class named_types { + text : java.lang.String ; + public static open class inner { + public open class innertoo { + public open class inneragain { + } + } + + } + +} + +open class auxilliary { + public open foo(): named_types.inner { + return null; + } + + public open bar(): named_types.inner.innertoo.inneragain { + return null; + } + + public open foobar(arg : named_types.inner): named_types.inner { + return null; + } + + public open barfoo(arg : named_types.inner): named_types.inner { + return null; + } +} + diff --git a/tests/vs_plugin/test/snippets/new_expressions.sts b/tests/vs_plugin/test/snippets/new_expressions.sts new file mode 100644 index 000000000..d5b723b8e --- /dev/null +++ b/tests/vs_plugin/test/snippets/new_expressions.sts @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// See 5.9 New Expressions + +class Base { + constructor() { + + } +} + +function main(): void { + let b = new Base(); +} diff --git a/tests/vs_plugin/test/snippets/null.sts b/tests/vs_plugin/test/snippets/null.sts new file mode 100644 index 000000000..2db99a9e7 --- /dev/null +++ b/tests/vs_plugin/test/snippets/null.sts @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +const n = null; diff --git a/tests/vs_plugin/test/snippets/object.sts b/tests/vs_plugin/test/snippets/object.sts new file mode 100644 index 000000000..650abe47b --- /dev/null +++ b/tests/vs_plugin/test/snippets/object.sts @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +let o: Object; diff --git a/tests/vs_plugin/test/snippets/override_method.sts b/tests/vs_plugin/test/snippets/override_method.sts new file mode 100644 index 000000000..2933853ba --- /dev/null +++ b/tests/vs_plugin/test/snippets/override_method.sts @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +class P { + public foo(): int { + return 0; + } +} + +class T extends P { + public override foo(): int { + return 1; + } +} \ No newline at end of file diff --git a/tests/vs_plugin/test/snippets/parentheses_expression_value.sts b/tests/vs_plugin/test/snippets/parentheses_expression_value.sts new file mode 100644 index 000000000..1f0177400 --- /dev/null +++ b/tests/vs_plugin/test/snippets/parentheses_expression_value.sts @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// see 5.4 Parentheses +let a = 5; +let b = (5); +let c = ((5)); +let d = (b); +function main(): void { + if (a != b || b != c || c != d || d != a) { + // panic + } +} \ No newline at end of file diff --git a/tests/vs_plugin/test/snippets/predefined_types.sts b/tests/vs_plugin/test/snippets/predefined_types.sts new file mode 100644 index 000000000..47caa2b57 --- /dev/null +++ b/tests/vs_plugin/test/snippets/predefined_types.sts @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +let b: byte; +let s: short; +let i: int; +let l: long; + +let f: float; +let d: double; + +let c: char; + diff --git a/tests/vs_plugin/test/snippets/return.sts b/tests/vs_plugin/test/snippets/return.sts new file mode 100644 index 000000000..2c59f3f25 --- /dev/null +++ b/tests/vs_plugin/test/snippets/return.sts @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +let a = [1, 2, 3]; +function main(): void { + for (let v of a) { + if (v == 2) return; + } +} \ No newline at end of file diff --git a/tests/vs_plugin/test/snippets/scoped_decl.sts b/tests/vs_plugin/test/snippets/scoped_decl.sts new file mode 100644 index 000000000..04c7e2f53 --- /dev/null +++ b/tests/vs_plugin/test/snippets/scoped_decl.sts @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +function main(): void { + let a = 0; + if (a < 1) { + let b = a; + } +} \ No newline at end of file diff --git a/tests/vs_plugin/test/snippets/simple_types.sts b/tests/vs_plugin/test/snippets/simple_types.sts new file mode 100644 index 000000000..599dab095 --- /dev/null +++ b/tests/vs_plugin/test/snippets/simple_types.sts @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +let a: byte = 127; +let b: short = -32768; +let c: int = 2147483647; +let d: long = -9223372036854775808; + +let e: boolean = true; +let f: char = 'a'; + +let g: void; + +let k: float = 3.1415; +let l: double = 3.1415; \ No newline at end of file diff --git a/tests/vs_plugin/test/snippets/string.sts b/tests/vs_plugin/test/snippets/string.sts new file mode 100644 index 000000000..f5d5b970e --- /dev/null +++ b/tests/vs_plugin/test/snippets/string.sts @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +let s: string = "Hello"; diff --git a/tests/vs_plugin/test/snippets/super_expression.java.sts b/tests/vs_plugin/test/snippets/super_expression.java.sts new file mode 100644 index 000000000..660ed7736 --- /dev/null +++ b/tests/vs_plugin/test/snippets/super_expression.java.sts @@ -0,0 +1,44 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.ohos.migrator.test.java; + +interface I { + x : int = 0; +} + +open class T1 implements I { + x : int = 1; +} + +open class T2 extends T1 { + x : int = 2; +} + +open class T3 extends T2 { + x : int = 3; + open test(): void { + System.out.println("x=\t\t" + x); + System.out.println("super.x=\t\t" + super.x); + System.out.println("((T2)this).x=\t" + (this as T2).x); + System.out.println("((T1)this).x=\t" + (this as T1).x); + System.out.println("((I)this).x=\t" + (this as I).x); + } +} +open class Test { + public static main(args : String[]): void { + new T3().test(); + } +} diff --git a/tests/vs_plugin/test/snippets/switch.sts b/tests/vs_plugin/test/snippets/switch.sts new file mode 100644 index 000000000..6ee8bbec9 --- /dev/null +++ b/tests/vs_plugin/test/snippets/switch.sts @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// see 6.12 - value switch +function main(): void { + let value: string = "10"; + let result: string; + switch (value) { + case "0": + case "1": + result = "One or zero"; + break; + case "2": + result = "Two"; + break; + default: + result = "An unknown value"; + } +} diff --git a/tests/vs_plugin/test/snippets/switch_statement.java.sts b/tests/vs_plugin/test/snippets/switch_statement.java.sts new file mode 100644 index 000000000..36e61cd3b --- /dev/null +++ b/tests/vs_plugin/test/snippets/switch_statement.java.sts @@ -0,0 +1,261 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.ohos.migrator.test.java; + +export open class switch_statement { + public static ReturnFromSwitch(id : int): String { + switch (id) { + case 1: + return "First"; + case 2: + return "Second"; + default: + return "Unknown"; + } + + } + public static CaseClausesVariations(): void { + let a : int = 0; + switch (1) { + } + + switch (2) { + case 1: + a = 21; + break; + case 2: + a = 22; + break; + } + + switch (3) { + default: + a = 31; + break; + } + + switch (4) { + case 1: + a = 41; + break; + case 2: + break; + default: + a = 43; + break; + } + + switch (5) { + default: + a = 51; + break; + case 1: + a = 52; + break; + case 2: + a = 53; + break; + } + + switch (6) { + case 1: + a = 61; + break; + default: + a = 62; + break; + case 2: + a = 63; + break; + } + + switch (7) { + case 1: + case 2: + System.out.println("Falling through case 1 and case 2"); + break; + default: + System.out.println("Default case"); + break; + } + + switch (8) { + case 1: + default: + System.out.println("Falling through both case and default clauses"); + break; + } + + switch (9) { + case 1: + System.out.println("In case 1: Falling through to default case"); + default: + System.out.println("In default case"); + break; + case 2: + System.out.println("In case 2"); + break; + } + + } + public static SwitchWithLocalDeclarations(): void { + let i : int = 10; + { + let w : int ; + let e : int ; + switch (i) { + case 0: + { + let q : int = 5; + w = q; + break; + } + default: + w = 10; + e = 20; + System.out.println(w + e); + break; + } + + } + { + let q : int ; + let r : int ; + switch (i) { + case 0: + { + q = 5; + let w : int ; + let e : int = 10; + let z : int = 20; + let x : int ; + System.out.println(q + e + z); + break; + } + default: + q = 2; + r = 4; + System.out.println(q + r); + break; + } + + } + { + let localVar : int ; + switch (i) { + case 1: + { + let localVar : String = "some value"; + } + break; + case 2: + localVar = 5; + break; + default: + localVar = 6; + break; + } + + } + { + let q : int ; + let e : int ; + switch (i) { + case 0: + { + q = i++; + let w : int = i++; + e = i++; + break; + } + default: + q = 1; + e = 2; + break; + } + + } + switch (i) { + case 1: + { + let k : int = 10; + switch (i) { + case 3: + k = 20; + break; + default: + break; + } + + break; + } + default: + break; + } + + switch (i) { + case 1: + { + open class LocalClass { + open M(): void { + System.out.println("LocalClass.M()"); + } + } + + new LocalClass().M(); + break; + } + default: + break; + } + + } + + static class Color extends Enum { + public static const Red : Color = new Color("Red", 0); + public static const Green : Color = new Color("Green", 1); + public static const Blue : Color = new Color("Blue", 2); + public static values(): Color[] { + return [Red, Green, Blue]; + } + public static valueOf(name : String): Color { + for (let value : Color of values()){ + if (name == value.toString()) return value; + } + return null; + } + private constructor(name : String, ordinal : int) { + super(name, ordinal); + } + } + + private static SwitchWithEnumValues(): void { + let color : Color = Color.Green; + switch (color) { + case Red: + System.out.println("Color is red"); + break; + case Blue: + System.out.println("Color is blue"); + break; + default: + System.out.println("Color is default"); + break; + } + + } +} + diff --git a/tests/vs_plugin/test/snippets/ternary.sts b/tests/vs_plugin/test/snippets/ternary.sts new file mode 100644 index 000000000..7b251d8e8 --- /dev/null +++ b/tests/vs_plugin/test/snippets/ternary.sts @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +let a = 0; +let b = 1; + +let c = a > b ? a : b; diff --git a/tests/vs_plugin/test/snippets/test_enum.java.sts b/tests/vs_plugin/test/snippets/test_enum.java.sts new file mode 100644 index 000000000..5f835b040 --- /dev/null +++ b/tests/vs_plugin/test/snippets/test_enum.java.sts @@ -0,0 +1,131 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.ohos.migrator.test.java; + +export class test_enum extends Enum { + public static values(): test_enum[] { + return []; + } + public static valueOf(name : String): test_enum { + for (let value : test_enum of values()){ + if (name == value.toString()) return value; + } + return null; + } + private constructor(name : String, ordinal : int) { + super(name, ordinal); + } + +} +class Planet extends Enum { + public static const MERCURY : Planet = new Planet("MERCURY", 0); + public static const VENUS : Planet = new Planet("VENUS", 1); + public static const EARTH : Planet = new Planet("EARTH", 2); + public static const MARS : Planet = new Planet("MARS", 3); + public static const JUPITER : Planet = new Planet("JUPITER", 4); + public static const SATURN : Planet = new Planet("SATURN", 5); + public static const URANUS : Planet = new Planet("URANUS", 6); + public static const NEPTUNE : Planet = new Planet("NEPTUNE", 7); + + public static values(): Planet[] { + return [MERCURY, VENUS, EARTH, MARS, JUPITER, SATURN, URANUS, NEPTUNE]; + } + public static valueOf(name : String): Planet { + for (let value : Planet of values()){ + if (name == value.toString()) return value; + } + return null; + } + private constructor(name : String, ordinal : int) { + super(name, ordinal); + } +} +open class NestedEnums { + private static class Colors extends Enum { + public static const RED : Colors = new Colors("RED", 0); + public static const GREEN : Colors = new Colors("GREEN", 1); + public static const BLUE : Colors = new Colors("BLUE", 2); + + public static values(): Colors[] { + return [RED, GREEN, BLUE]; + } + public static valueOf(name : String): Colors { + for (let value : Colors of values()){ + if (name == value.toString()) return value; + } + return null; + } + private constructor(name : String, ordinal : int) { + super(name, ordinal); + } + } + protected static class Size extends Enum { + public static const SMALL : Size = new Size("SMALL", 0); + public static const MEDIUM : Size = new Size("MEDIUM", 1); + public static const LARGE : Size = new Size("LARGE", 2); + + public static values(): Size[] { + return [SMALL, MEDIUM, LARGE]; + } + public static valueOf(name : String): Size { + for (let value : Size of values()){ + if (name == value.toString()) return value; + } + return null; + } + private constructor(name : String, ordinal : int) { + super(name, ordinal); + } + } + public static class Direction extends Enum { + public static const NORTH : Direction = new Direction("NORTH", 0); + public static const EAST : Direction = new Direction("EAST", 1); + public static const SOUTH : Direction = new Direction("SOUTH", 2); + public static const WEST : Direction = new Direction("WEST", 3); + + public static values(): Direction[] { + return [NORTH, EAST, SOUTH, WEST]; + } + public static valueOf(name : String): Direction { + for (let value : Direction of values()){ + if (name == value.toString()) return value; + } + return null; + } + private constructor(name : String, ordinal : int) { + super(name, ordinal); + } + } + static class Operator extends Enum { + public static const PLUS : Operator = new Operator("PLUS", 0); + public static const MINUS : Operator = new Operator("MINUS", 1); + public static const MULTIPLY : Operator = new Operator("MULTIPLY", 2); + public static const DIVIDE : Operator = new Operator("DIVIDE", 3); + + public static values(): Operator[] { + return [PLUS, MINUS, MULTIPLY, DIVIDE]; + } + public static valueOf(name : String): Operator { + for (let value : Operator of values()){ + if (name == value.toString()) return value; + } + return null; + } + private constructor(name : String, ordinal : int) { + super(name, ordinal); + } + } +} + diff --git a/tests/vs_plugin/test/snippets/test_interface.java.sts b/tests/vs_plugin/test/snippets/test_interface.java.sts new file mode 100644 index 000000000..9c0696455 --- /dev/null +++ b/tests/vs_plugin/test/snippets/test_interface.java.sts @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.ohos.migrator.tests.java; + +import java.util.List; +import java.io.*; +interface test_interface { + i : int = 10; + pi : double = 3.1416; + foo(): void ; + static foo(i : int): void { + } + + private foo(b : boolean): void { + } + +} + diff --git a/tests/vs_plugin/test/snippets/this_expression.java.sts b/tests/vs_plugin/test/snippets/this_expression.java.sts new file mode 100644 index 000000000..f5d942f63 --- /dev/null +++ b/tests/vs_plugin/test/snippets/this_expression.java.sts @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.ohos.migrator.test.java; + +open class this_expression { + v : int[] ; + + open equals(other : this_expression): boolean { + if (this == other) return true; + if (v.length != other.v.length) return false; + for (let i : int = 0; i < v.length; i++) { + if (v[i] != other.v[i]) return false; + } + return true; + } + open foo(): void { + } + open class this_inner { + open foo(): void { + this_expression.this.foo(); + } + } + +} diff --git a/tests/vs_plugin/test/snippets/type_cast.java.sts b/tests/vs_plugin/test/snippets/type_cast.java.sts new file mode 100644 index 000000000..5eb5377cb --- /dev/null +++ b/tests/vs_plugin/test/snippets/type_cast.java.sts @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.ohos.migrator.test.java; + +export open class type_cast { + private i1 : int = 34; + private d : double = 3.7; + private i2 : int = d as int; + protected c : char = 'c'; + protected b : byte = c as byte; + f : float = d as float; +} + diff --git a/tests/vs_plugin/test/snippets/types_decls.sts b/tests/vs_plugin/test/snippets/types_decls.sts new file mode 100644 index 000000000..795fc15f5 --- /dev/null +++ b/tests/vs_plugin/test/snippets/types_decls.sts @@ -0,0 +1,57 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// see 3.1.1 Integer types + +let prim_b: byte = 8; +let non_prim_b: Byte = -8; + +let prim_s: short = 42; +let non_prim_s: Short = -42; + + +let prim_i: int = 65535; +let non_prim_i: Int = -65535; + +let prim_l: long = 10000000; +let non_prim_l: Long = -10000000; + + + +// see 3.1.2 Float types + +let prim_f: float = 0.0; +let non_prim_f: Float = -0.0; + +let prim_d: double = 0.0; +let non_prim_d: Double = -0.0; + + + +// see 3.1.3 Boolean type + +let prim_b: bool = true; +let non_prim_b: Bool = false; + + + +// see 3.1.4 Char type +let prim_c: char = 'a'; +let non_prim_c: Character = 'b'; + + + +// see 3.1.5 Void type +function v(): void {} diff --git a/tests/vs_plugin/test/snippets/unary_op.sts b/tests/vs_plugin/test/snippets/unary_op.sts new file mode 100644 index 000000000..fb609d706 --- /dev/null +++ b/tests/vs_plugin/test/snippets/unary_op.sts @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +let a = 1; +let b = a++; +let c = a--; +let d = +5; +let e = -a; +let f = ~a; +let g = true; +let h = !g; diff --git a/tests/vs_plugin/test/snippets/unary_operations.java.sts b/tests/vs_plugin/test/snippets/unary_operations.java.sts new file mode 100644 index 000000000..2b5ca885c --- /dev/null +++ b/tests/vs_plugin/test/snippets/unary_operations.java.sts @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.ohos.migrator.test.java; + +export open class unary_operations { + private a : int = 3; + private pref1 : int = +a; + private pref2 : int = -a; + private pref3 : int = ++a; + private pref4 : int = --a; + private pref5 : int = ~a; + private b : boolean = false; + private pref6 : boolean = !b; + private post1 : int = a++; + private post2 : int = a--; +} + diff --git a/tests/vs_plugin/test/snippets/var_declare.java.sts b/tests/vs_plugin/test/snippets/var_declare.java.sts new file mode 100644 index 000000000..eec31d574 --- /dev/null +++ b/tests/vs_plugin/test/snippets/var_declare.java.sts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.ohos.migrator.test.java; + +open class VarDeclareTest { + public open Test(): void { + let a : int ; + let b : int = 10; + b *= 10; + let c : int , d : int = 5; + const e : double = 2.781828; + const Pi : float = 3.14; + } + +} + diff --git a/tests/vs_plugin/test/snippets/void.sts b/tests/vs_plugin/test/snippets/void.sts new file mode 100644 index 000000000..feecc035a --- /dev/null +++ b/tests/vs_plugin/test/snippets/void.sts @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2022-2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +function main(): void { + return; +} \ No newline at end of file diff --git a/tests/vs_plugin/test/suite/extension.test.ts b/tests/vs_plugin/test/suite/extension.test.ts new file mode 100644 index 000000000..0ddbaafd4 --- /dev/null +++ b/tests/vs_plugin/test/suite/extension.test.ts @@ -0,0 +1,56 @@ +import * as assert from 'assert'; +import * as fs from 'fs'; +import 'mocha'; +import { join, normalize } from 'path'; +import { commands, DebugConsoleMode, Uri } from 'vscode'; + +function assertUnchangedTokens(snippetsPath: string, resultsPath: string, snippet: string, done: any) { + const testFixurePath = join(snippetsPath, snippet); + + return commands.executeCommand('_workbench.captureSyntaxTokens', Uri.file(testFixurePath)).then(data => { + try { + const resultPath = join(resultsPath, snippet.replace('.', '_') + '.json'); + const previousData = JSON.parse(fs.readFileSync(resultPath).toString()); + + compareSyntaxArray(data, previousData); + done(); + } + catch (error) { + done(error); + } + }, done); +} + +function compareSyntaxArray(data: any, previousData: any): void { + let dataIdx: number = 0; + let prevDataIdx: number = 0; + + while (dataIdx < data.length && prevDataIdx < previousData.length) { + // skipping objects in data that are not in the generated json + while (previousData[prevDataIdx].c !== data[dataIdx].c && dataIdx + 1 < data.length) { + ++dataIdx; + } + assert.strictEqual(previousData[prevDataIdx].c, data[dataIdx].c); + assert.strictEqual(previousData[prevDataIdx].t, data[dataIdx].t); + + ++dataIdx; + ++prevDataIdx; + } + + assert(prevDataIdx === previousData.length); +} + +suite('Integration test for highlighting the STS language', () => { + const testPath = normalize(join(__dirname, '../../test/')); + const snippetsPath = join(testPath, 'snippets'); + const resultsPath = join(testPath, 'results'); + + for (const snippet of fs.readdirSync(snippetsPath)) { + test(`colorize: ${snippet}`, function (done) { + commands.executeCommand('workbench.action.closeAllEditors').then(() => { + assertUnchangedTokens(snippetsPath, resultsPath, snippet, done); + }); + }); + } +}); + diff --git a/tests/vs_plugin/test/suite/index.ts b/tests/vs_plugin/test/suite/index.ts new file mode 100644 index 000000000..a9d1cf9ef --- /dev/null +++ b/tests/vs_plugin/test/suite/index.ts @@ -0,0 +1,36 @@ +import * as path from 'path'; +import * as Mocha from 'mocha'; +import * as glob from 'glob'; + +export function run(): Promise { + const mocha = new Mocha({ ui: 'tdd' }); + mocha.useColors(true); + + const testsRoot = path.resolve(__dirname, '../suite'); + + return new Promise((c, e) => { + + glob('*.test.js', { cwd: testsRoot }, (err, files) => { + if (err) { + return e(err); + } + + files.forEach(f => mocha.addFile(path.resolve(testsRoot, f))); + + try { + mocha.run(failures => { + if (failures > 0) { + e(new Error(`${failures} tests failed.`)); + } + else { + c(); + } + }); + } + catch (err) { + console.error(err); + e(err); + } + }); + }); +} \ No newline at end of file diff --git a/tests/vs_plugin/tsconfig.json b/tests/vs_plugin/tsconfig.json new file mode 100644 index 000000000..aadc7a7e9 --- /dev/null +++ b/tests/vs_plugin/tsconfig.json @@ -0,0 +1,18 @@ +{ + "compilerOptions": { + "module": "CommonJS", + "target": "es2020", + "lib": ["es2020"], + "outDir": "out", + "sourceMap": true, + "rootDir": "test", + "strict": true, + "types": [ + "node", + "mocha", + "jest" + ], + "skipLibCheck": true, + }, + "exclude": ["node_modules", ".vscode-test"] +} diff --git a/vs_plugin/.vscodeignore b/vs_plugin/.vscodeignore new file mode 100644 index 000000000..f369b5e55 --- /dev/null +++ b/vs_plugin/.vscodeignore @@ -0,0 +1,4 @@ +.vscode/** +.vscode-test/** +.gitignore +vsc-extension-quickstart.md diff --git a/vs_plugin/README.md b/vs_plugin/README.md new file mode 100644 index 000000000..097d6bd42 --- /dev/null +++ b/vs_plugin/README.md @@ -0,0 +1,58 @@ +## Requirements + +- [Node.JS](https://nodejs.org/en/), **x64**, version `>=16.14.x` + +- Linux + - On Debian-based Linux: `sudo apt-get install build-essential g++ libx11-dev libxkbfile-dev libsecret-1-dev python-is-python3` + +## Installing the extension globally +- Open vscode +- Press F1 +- Type 'vsix' and press Enter +- Select build VSIX + +## Build VSIX file +- sudo npm install -g vsce +- type 'vsce package' in ./vs_plugin/src +## Testing + +Integration tests for highlighting the STS language. + +### Running tests for the first time + +If you running tests for the first time, you need to run following command in `./tests/vs_plugin` directory + + npm install +### Run tests from CLI + +Run following command in `./tests/vs_plugin` directory + + npm run test + +### Run tests from vscode GUI +- Open the arkcompiler_ets_runtime folder in vscode +- Press `Ctrl + Shift + B`, to compile ts test into js +- Press `Ctrl + Shift + D`, to open Run and Debug tab +- Choose `Run highlighting tests` +- Press `F5` + +## Debugging highlight plugin + +If you just want to make sure taht syntax highlighting works, you can follow these steps +- Open the arkcompiler_ets_runtime folder in vscode +- Press `Ctrl + Shift + D`, to open Run and Debug tab +- Choose `Run extension` +- Press `F5` +- In the window that opens, open any .sts file + +## Known Issues + +- No known issues + +## Release Notes + +- Added tests + +### 1.0.0 + +- Initial release of syntax highlight extension \ No newline at end of file diff --git a/vs_plugin/src/language-configuration.json b/vs_plugin/src/language-configuration.json new file mode 100644 index 000000000..8f162a0c4 --- /dev/null +++ b/vs_plugin/src/language-configuration.json @@ -0,0 +1,30 @@ +{ + "comments": { + // symbol used for single line comment. Remove this entry if your language does not support line comments + "lineComment": "//", + // symbols used for start and end a block comment. Remove this entry if your language does not support block comments + "blockComment": [ "/*", "*/" ] + }, + // symbols used as brackets + "brackets": [ + ["{", "}"], + ["[", "]"], + ["(", ")"] + ], + // symbols that are auto closed when typing + "autoClosingPairs": [ + ["{", "}"], + ["[", "]"], + ["(", ")"], + ["\"", "\""], + ["'", "'"] + ], + // symbols that can be used to surround a selection + "surroundingPairs": [ + ["{", "}"], + ["[", "]"], + ["(", ")"], + ["\"", "\""], + ["'", "'"] + ] +} \ No newline at end of file diff --git a/vs_plugin/src/package.json b/vs_plugin/src/package.json new file mode 100644 index 000000000..8b63d27ed --- /dev/null +++ b/vs_plugin/src/package.json @@ -0,0 +1,26 @@ +{ + "name": "static-type-script", + "displayName": "Static Type Script", + "repository": "https://gitee.com/openharmony-sig/arkcompiler_ets_runtime", + "description": "Syntax highlighting for static type script", + "version": "1.0.0", + "engines": { + "vscode": "^1.69.0" + }, + "categories": [ + "Programming Languages" + ], + "contributes": { + "languages": [{ + "id": "sts", + "aliases": ["StaticTypeScript", "sts"], + "extensions": [".sts"], + "configuration": "./language-configuration.json" + }], + "grammars": [{ + "language": "sts", + "scopeName": "source.sts", + "path": "./syntaxes/sts.tmLanguage.json" + }] + } +} \ No newline at end of file diff --git a/vs_plugin/src/static-type-script-1.0.0.vsix b/vs_plugin/src/static-type-script-1.0.0.vsix new file mode 100644 index 0000000000000000000000000000000000000000..a658d85a4dd01f677d639ddfb79dfd53df22617e GIT binary patch literal 20733 zcmb6Ab8se6*FFlzHYdr%ww+9HPi)(^Z95a&ww>IuHL-2m{N{Pi?|Vs%!18 zuCD66wD-EMwdJM2AuvEdU|>KjgHctcW}FM-z(7DGpg};eKtMoD+?`Eqoh@t~9Mshpl0^DWo=ff;2#VaZ{J1nP^V`}~Ykh=Y`>*BA)0Ro>$ zRAf^XHkUM)pusWMZr`2vtGi<*qd<19g(c}v3HuW-eYDCZiBeyYiCf-ph8Vmhhc%dE&@bE)d-_syG z0vGuaZ$G5c>q_Q81GRz#qAUT9`zAb7j=tfvyY$ufJmtEiivu~`AubPi>3ayUV%aI8 zlBLENBX#+0ub3llb>^b_8C-x_+~y;*1fphH@adXtnQXeqVV_(cgrVukr9I&z?zT6h zEv7YT@_cu;RXVFwmUt;K;3<$=^r&vpCwVmJjp*-Ra(tn#)B$epfBSTEX&V%p(I~4 zPVaBDwu5*ol>U9m9JB}|TJ6SK*(E{oT3m||GcEM!G88%nGWQdtBj=rTX~P9#oRlanW9yXGvM@Q-2%E8_#ZUfBZJ2rdnlv zhZkhxkLAIbCM7R+nJ?pxQG(XZY`sE>HSqx350B?MW(O=SB5Ls?(_JxFKX2_}{*-Xo z9BY=AxctEi2v7_VLoaaxn)%`1x_Ai~xaCrzo^=Pu7taLQe`yCriks;1u1_$JFogSw89=!h4_0kxt0f%}vhoEJevL^alq*YS7QIVXv0r z(Y9pRD&$jUpL9p2yt^U|#+BETZX z7^rycN#W|qQ6HxClsZY`QEgAJ{HpgJ%R%!hDL3<7o+nhv3O6a+fhYt+jt6GP$6$4#Fir7I>YTvC00g9KofvD^WDdUx&y-w!irBhrMs zbCO3{m~E)n%?94P`UC15$F?c4-PH$X10J?4@_XtMsU(2$*jp-;E10dONXn^{wDW7M zE0NMu_4%HiL&`ki&w#?0n?m_yRfCf`!QvGGqoGS^D!J%SLBtbyb*4E}r>q=sdwgno zpVd!7x7SFuFuVWQBUe5cPx_xduK%q+|F=CZ-2b;dDE^n{J9*eT8@QV|F*-RrF*w^u z|DQnkuYE3ktlZW`6Hd(D)#O_^h{@t3N7BdeH8J)t$h;i?+OnAOce1*P(|}6I_h*1% zfHYOL0ee1GT{yR5L^)w3F&2MC{0=x#b8!K75ai|vcscx-uFbM~AIiJmqlvWb?>n{7 z-+p4;Jh9~03X^4e29Dkqd~Njn0=5K=K7uWG^2OAswYasnFyg!8ips`$%zfw1JnLo& zUg!8+>MviD@H!s*b#^-Rd+coeeweVo+U63tT3^eryqrVD|PYL*#HFdqNm4^KaJ0eS{I_r)kf@|*4vK7W8KF?|M5>p;cos=PxdE;->mvF*|ppC*gC!7w_B>%<&A9|7C7DEMxH-EreI45K)v1A;_BmU+ zh=IFvWl6tX2t@7hzVw|n)Z_P;fYnB>9c4D8^aJE6xHZLyyIc%VaUrZ=l`Rk7ITh=G zZdbOS`m@K0=VE=EKLZw_Ud+WHM!SKUoADNq6;8O0A?K=t!-9^@cTkZH{R-l z?_SE`J`vWs?G{p=(HqXj(d)1#OUBLbNV_BFD+vsmW5}u@*SXgZ)A~$JGP6VbwY9(} zqSLJlQftco zQ-|PqorD{b21gPw3`d}&ct1Bx5Ta0tpnpt%d78+g@T**#qwKxIFs@UK_4Lz<~dI&Yctgr1sPjuuC03 zEg`q7(8vohU3{-F&y%l@Kf_eXwC^tp&I_VahK;OZ*8=*=z?;7ngWO|Q*-3C&=IiUK z-ebRk%-c4v5qi8)k*=+cqHJS#^&-{$%r0YzGdg(G?wKUZ;fb_n0i>37pxJ#3)udm6 zJ2O+*Sj!+y=JnAGqqce*XwMdp9p-<1B)H-;BQcd2k->(4LOQneLrw zqh}be5mVILqY}SQdKr6<>8S4 zc+{wNbuF8>!bX_|yDjT*7d-Zg!MQ~o3t}$2+k?@WnIEnmU0S7Rlsk%Y@m6lx5} zaOy**zYMbN*&&Mh;|OIhavOX}r~CTEHRC1TxU?Kj^T13;9^Y|aS#{A|=ObxzAYQQ$ z0-=(;rWXFYoj<37*xp2q25Tnl=rPG+_8xdih_R!8Ql?ImJ0mZ1?imQL6C?k|7E-#q z&YQ5?o(s<=!=ZcD(LTC67Uw|g@MdFSc}R7n9)77Dd1C*s&||D_^INFXG_ljPO;%SL znD31VC9YwIKdT4Sh;?)v zmVlMR6eiy~a&=YVNL^Q96fB1R=(>t1L(4X;|u|D3O zkX^EWsWQXpJv*`D7CH1y>0QreFGUmhUA=LAg z?E7xDJE52F#MY?cEOyr^^lWI)xToUv^4KsCor}@=LpJ}{it2N6Axk9T`zQ#lJ{*;I zo^*gg=cR}5?_^&Lm{jY8plKZYLD@iFTRGMnvbIqgm;AKUJ`d^-c4_~%dOf6;TFz3d_5}!j)GqO+Kr^iPN z+hH|>N3p{DiW`WvC z%mExfw$cQrm_5OwSSaL;z}P9|s};y8W`<)Y`6lVd>{8t6Lr`H-(^vM=W=~$YC~x1r z$8QB?&wxcKx(9LEakrU?#5rxlHC~9qK*%d?{uDnNW;V{-lw}80yg$(Ac>a2H4s;t* zoVe2Sr3Kn33pUoYRPi5ujx6$o0_*d4-kj>QV5$o|h+899(6PWaME&E*r%G$T;zsKG zBp-D-rG29gE3`Y^$WO0!DkFV%s3m^kV<2DQf1hlax|r)Sj2a6(uvZ09ZgeE#!_++lS>1Sj&9i@Jn4;8!+lN9w=X&Oi;|p_g%s%IPco z(~WfAFhm9W8Sp(#@+aK+r`+=h=Y_8}IN>C@vmZwVhmmnPUbQA=Keu&fZ#`3Xdk!xN zqZg}_MaCR~-NFP(n)Hf6=v#N8_RT>Y1hgG$w8age)^;bqMibZgUYRQcVEL_Yc(-zcBCq5&^p zc~GS#IapXEk&o5249g6WdwVRNU1{jw=SVxH7lLdRa7JH=jh%HKj+sVE!22NGc zOaAV=qs>ETwQX5;Egn7oTuUzTTxDZoHsU6$z);>S@GD6qWz)tgtm1EIy z`}U1@5BnbN)0;dmx7e70D+1xtxN^!g(1Larfpmg~iF)VFSE$5$T^B?ek{W%q7tFj! zjR%te+=h|=?;ms+3{yf@4&pyY{U9e6nXuq7P--Mam~Jp|XVN)j>HHhb{F4fAAF`1q z;EVJ>uMe>1*cUH$oTYfFaI`GIhf3{~?t`QQnY@6cUe#28$}ipbtk&)uT8hU#Oa_sw zqaKlEQQF|cHmb~M-DCwz0pDI`pt&2!uEFf5myn+O^XqO+rWPC$)fwcV#~R6cc~yI! z7x$E4PEas}uMM1mkXo`Gy&wIe{XxTglyt!S-O7`3M5}1h!00TMzUvJ+Z#EX37gt7K zea0Y?Cr1T}kA>jeD^#BAL!8YCk@TB+sDaEIC8y||-U8{Da##WO-BQiM3WF$4=Ks9lUFH6uyalj$GJYwlrL2fH~E!Ab8HPZ1#zHBG=)J( zb_^Lw2@uWCz!5(*<5_{#6EdJ^$yAn;Nm0;wwFY(T0W?i3qXXNt+|rfsTP@Khp=oTX^aWuly}u zw^1sJ;sBMPg=H<#@KijU);s!KC&Z_^@>IA9hT@UL)Lx>BNc3l);v!KiU0W^+_xL}_dcS;2-+jN_Hg*_OxT$0#e0Ush|x$6 z(+Ia{3eW)=%|$FhUJEFH4tDh9KW=8eJHMgbjnADZR~9be4QMvHTFsacqMe#R7BYGEoYj9h>V_G>jyz&U+mfG|Lv!$J4VfCBKGGq5I1j^=vRo~s@o5~M2iR`xnloZ zf7BO|^16ykMn?s?@jOJyQg#nQPLBqlxI?T2gqSZ+BJ**Z=%QUR+!o7j<-A7mI;iV> zh#u8VAltkd(jL1l#}=Ov$Ky|A07!T;dBT1>|5_Iydk)CWKi3J=4|Yu=cz!Qs*Ii!z zAt*`6%a+z8BmFnoYZJj2fhht)owN_@NXV=s*&2@Ric|$@F`#rdG`@)dshA_z7$rMJ z+{>#mS-`KBtWhnCAfU{bY!FrbJ()3Xo1*@`kz+?A1LlUZt*_3@9Ni)ZAh?rCwdlrK6AES|*2+wvQtT zH$aAjNv~**zuFyriW8}mDIg|j!#?+y{|b;GPV!LZK5Y|38kh^E++eVzNjpYT=Qn%` zY-+ncEEr#g*=X;JbEZ$wWq}2aM``^|YywJSGa(qJ;z0cBa3(?H@n}?*zD9T4W~U~Q zj)YF!+l?=3EGnO)CoM}C!4a|{glNvX%I?hLNWlF<-@3oGj^WFek~3scN;&07J&FD> zIjEf+{I3ujS$tMh{6qN~t#0wwHQCL)#m+Vg>Vnx_y`Vbqv zu_z)WKQ)VpRTXhvz(|LdO4d278^5f4ysE%Os=N%-K9pcY?3elpVAr9yFuHYLW7h%s zb~?*NDAnlgwRhi=oHe$g&{4{J@iwgw2 zv__wo3{xTpRn!=7m723TuS)W0(F<~IiuX~Lq4)FHm(Y_7}jQ=0=KSuR+P$fv&>Cqxh$-43N4u` z?++EU@X}Q}a;b`hTml_y;!c0HM54c0$n{*!&-4tLgjX;d&kL3(HGI0(0fazH4W%e* z=L`8oEX^X6yJ%D#SaET8TZ^Av=B}Wv=H{E%$ocbox73@EA6)q+jh0Xj0Tbmm~u$4auMAcDxKjh znCFxV#YgFsZdX5#{u_d%p=WUV2Sp$H-{I39k_Gz}wbg~voX$sd?7eX%^gQ^v1ndqd z)uZT3;qM&dXeHSM(KZ}QJke<@L7r-|JE9=W9+#G@#hubnXn5q3!gdCQ4+liq2=ZVc$_;l9n2^B8 z9?u?QLZ#V5!27KQOFF&c-TUNAS?)P=4}Nvdr55Oa{ud(zV0yd zTV3w9up|kKQW&d4yKo7+HBLtJFe(^-<8VL~%b@r5;r$p$RG$@m>+7oE82F|R9<4%km zr_d25)N2;gIyMTYXd*+aW~{ad-V3w%8fEKqIONR(#}3>jUCCB&TkboKHTyT598Gn= zg^+?eCw9FZc3%?1`5iA>T z^b-iPf|UnX7sL|;V<=^%6w8OO)i*}_#A9OH(&&KE$|_Ne(9AXv0bCeuV@2@pI-NS@ zJ>#aCqB`}N(rv#5Ln3*)Rs0Uyiye_9GWMbyV$luVavs5!w$3k|-I5ptrS4qvEi}3; zwbmJ>B9ifx%X2En?8;HJQF75D>V-|MeKxRsfOGRD1?u90TH3~@=@#6S6(&TH+Puq+ z-VYKDl1-VOEoohA9lUX|+?^-><1c&WX~igs*m_?)Hipq&T%qEx zN^l046e6yrdw)3)63{RehWu4KYEth}@X19ru4ygwUmHi7)|0JhU*OBycWusRc2C;o zn_0{)dp&-S$X+Ox9)ydz$0!&N7#s+SYbm;kOR0FrF5)5Lhf#Jnt zXwHfSS14E~qh}TMa6>-6b$f|kaF=}G28n0fJ=K@VX<=n1KSv+uN2F%*((ZN$(hxF5 z_QZaBAh`(Cm~k_!!0N*?oMY79bl@dM)5I#v(Q`-;=oGLmFBV2AiDP?FVH!xTMWKsh zHyJiLZS5Uu#qXMUC730sQgm-q(T86*wMBiCUXbjE6TF;Pwbl;08?v+JoJ2Pl@3eJ2 zRsPgZDTPeh;+NHA;@RN}{Jk<0Fd__1!~KTmD9+$YWLx)z(Q;9p!0ZRBO&M8MSw=uv zYc{Fufl$K)8Pz3y2kcrp6*;g|z>Z~`?Nm)gXY|nC%*b3ic05#{Rda?qK+x<&=%;zw+OP^^6z3YMkA}F5+#$J3 zh4kU$TwLTpF$CkCESU8pyqQI3;t{@Hg*c+`46=ugcID`)IIG0i5079yK54bLlqeG1EUv(v zY0(L3i|7=m(6~^xpQH3sO~L)!AAhY>x`cT334*4smSf_=&&5!$z~xwaO8^`d^3d@} zT>zKSaF^xCBLU#G| z0VqrZ6R%V&Wd!(Wqvp9;f+EvFMM6WX_6lFx);QX}-`-Ls1~q;;ugwl^VOKdY#wg8Q zA0#W`5E;J(Y7#6RsUP8wohMw;Hyh`imF|sM{!unV{0PeV@l)g+%H9Db@K$}Eh=0tg z?68#Z^v16VCgN`cz>-+X7w+^ek*JoO-fQ5i^zehd9g#=GP}&X5q!#% zU@1OUoeBvz%Ee>hj%T>63F3j&ip<(A!ZTuCNE^-Q)DnvrJT3~cn~n}hqHhfFrUdUjS)%L3`V=n8r<+#En$<)t&LfBg@BNbk9oE^WvkVz2D;i- z(xu+(5L)LLMbiaCh}zxZrK1gXvkfoQ9z|#{Hpw6`A6R~ggB^qDXu%_est`RfB~4-% zwmfZp;qMraBH9Rmc4^3s8t$g&8a^Y#=DEEOCqG3OrzU8?3?L{saYEvXIp~lUxwInC zanV${-UBLFIN=bt>m*0>lqELFz6fsiaNbc;ywLwD;v1y-Pg9f=f<^}P;hBVBy1$T< zRGw-z8}gQ+Fix{HkFa{9+g@fl9Pf%TnAk_!gQxn7F&6)nhm_v^F}7Qpa`^|lmp7^o*3(Nr<^%j+h7XfhZoW>z#G(`4ua783|FT^_ zi1J0K)>1Ejho3I$u`tAQ&4Jo-kAk#8sXg_WsnH)uPZ*75upDiTFAC!F=4H2czrUAQ+z*F#7CKV&I$HR8J;bQc?1 zkUK&_HSh*53Wu~wO`{F)HT431zQ=zAscN@+O|$|DOHN0GcOL+%CQQq&qTN9)wRy9& zA+0`ljUhv4J$*vmsO;g}vXZRJSQUi4+j8|hQ{vieIan37)Lx9&#Cl`bDgx^o?b<+9 zvxIbuhXG2}M)6|X1d;9p=b;QgwZ*QLWC(S3bZW3lLs^`kU?ST8P`kg83N?}TOonUp z3a|tVbuMtA!l~$O_rnLt%rp)eaRsrwC2y9oqDNd2Oo+6@3%T;(;lnaXb<(mK`*s?o`u;v;;LBgTg< zv#%Q%TO3hq#r^Bzg{98je#C9|*DK)lGqeWZ2GRF5 zpea5ypo0yZ1grTD(h84Y&|Yv6{;b_+;2pS+#dGzp-REw_kG{`xkH)$p{6F{=EDZAA zL0Te#2&lhG%(3)pMgvz(Y~aQA$^W0CXs_Q_R$@RyI7@~J*#+fcLtg_)fysUMQT=U? zlIkl~!E~#OMI{u54dccWzpcTQX51BIF~r+y>m0HGstYTW#@f_JXGw`go`;y3n=@z7 zzaGX`OGLu2lge{@+5-0w8b|6OoU|;3TBSo<7-rYjsU^N^Jv+XEwHg0mI|KZ&5#_!} z;0wH{gXf6UK`50cw61&~SHKziQ%e$n$pneOHUp7A`gACurMsLo&g^?x-sWj@qojZN z39g_z{l>S6^JQX&yB}Nl?bd4$WplI#^Ji*A5w4eN5$7*};}$75zd`pwL}z=Q@=o6{PE_Km}(Hs`(oIO2tZMU)RSbaB=~;-jO@mW&>^>P?#m3_NUa?UAEi5@ClLyI>k3sUKGVCXUbN~ zptF8q(!+3?S?kST%ks(j`>AP>zB%>=D%5Av_lVF4yOk|hYE?Ppbrdm|8OHi$a(+{> zvGl#Q6nWY#iG^DcASf$RF>S!=ZO-s0tlxr%>-rcx9YAc;SyyZ-_iQIen4xo;k>U$pTcGvrMi|g`mn=Z)iS&JH#;|kQg~wzI>aN9%IzRC4O;w zZ-8aQh}jUPA$f6EaZ$vqi&4^|0DZ+2P9Ni3TYy$sZT2?C%*VuWR{9k>sj|B$!gBD( z1$Qgmrz7(wf%mK;Ir_<|?z!pytZ$x1d3-+)SqTZ>R&-zO1A~3FI#U61oU_ zr@zpmcZ>)AGtRL$-;fc&w?(FvC-3X4HN7x?&8K>-skBm=9o^3O_xx^Q{i#cP2j^<- zC2qBO8^Jo+xEUi?Zbdb9_vD>hiK!kDay@%(_&hF_3Eb#us_X1B0X^tSUK7r=m@~dI zX(T6TD_I$-9qJ3s;zEa(ss8l$B>jp`%F-=2k?);_NYMloa;$u|&1S{w#Tk`*mKry* znlSzv8Rd7CatD=ZxuK()R{LK(LibXok+H=zpUlzJy$-*w z7WTcWb5ji0GeJxePHKoo%3`A_3s-w1+l$%DhiJ6c)auij7`wp^2DfYxHB-+N!XJ8$ z(*>f)Y0Psv+xHpoS+wUX5G355NorwD_Ke{qRdm9A7pPrWLrcHmg<-n-vttg0vPMpu znkvH1lDBuQgLz&FCX^NCWQsl(_|;_4WH!a%%aqx=F}pO_LxvsP+*vR~H8a$u8q1)y zFn&#pXez=3VFlbVcA+~g5Y7fnXuv1oEo&PBH31@CX{lAIa(|0FCi*OBbsZO#`%x10 z0RB@2uCX8kAZC-)_cK|p)kH-6)UsTp^jcj^P%}yFbl{S#e9|R{<*voe@fM|i&{;SC znoMw)i7FoT8=f%6tRRhYA7oA(5#Ly!GWYW9bOs=lzMv^#Kt>Nt`L)`e9MNCW)D|>) zDW8Mzxjo$QyNH&o=g6c~=J}M0e?H>%2hvmO==&Ow9u@s~9)#dNLk2*lm>Nt9adtQY z+{u9TYHB0xBfaJrUPuN!t7P%ko{JIbrk&F2EEbP3bw*ewb7$89NH%k40{Q>pHqlTB z5>;f| zz%mbLzlXJSUT9m|KW4UF0AoH)Fn9Vtv=I)vdC+bQ?81M4{lAQ~5!fPbvxCVj6oaON zwz>#TpQ1QM^p6N$clwJwnpqLb@}sr}-~{_L@@B=Lj$ienOZz9`;!?_lk%9LL$E^V# zvTWVeq0zt+1U35EB3ex(Z#SoOH6lVvmmWTXcD&|qZE@zF8%5pt#5IqTB7j78_;-dZ zh4P&=<4A?9q1|nT`dsvLOW<`&T~1I_3gG^0y=<4M6%eu@e%p0(DeReI);`InzL+oz zuS%Wj%V#G{%|hgF)b8j^6@r_LiVl0)mH?oFR-j0-?4^2SE}=VpjB7!*60R5(afW08 zyjnfI>>)KGC-s>8VZ6{2Hh;(g+VSn6|VcXs<1OA^0TYKT`Uc~Lzz`UVBB{Z~Il!yn;1l}2GrqG6vj^|>0 zMP;xBA_mfu25%yGGsu2x_|hbord?u{3H`Z#YaPT~lDE!v?|#0;aZ~gqiRgyYV0dmr zj*uo_Q*2=R$SDkGCgnrJE<_Ztsk?Dq1p2K5%QllLl#@SYk& zc^1pCg)!^!248*33$gb8N(Em2S2t0kW&4Hn<#QZt!=Nt3WK>VCp9$bExnFbV zJoc(BbZV@D5JXP0`bW(R*6M;DRqy@U$C*CvXdLYH14qE5C*b^t>z3*S)ADBv1!j_QBQ2M4>P2KTxjQFBq!M z)e)ueW&~V|pO2oNo1nW%E+f%O8B)`Bp5=f2h||nplJxrx9F|`cdc_G{FN)_2!9hcFM+ZM-Hz$YBQ+_seH!(NTW@jIUJvaNPn6twk-I;3hWa7t9(lXxj%&juf7tJ@wh4W$ zMZ@xa*dUgvI-PQD?#wB02(n67L3xYl?i==ngW*=_X}m2gpgnpZf6^Ws>CsV6{+Q)y z>JBXYivJkE^;>*z+|=s6{A7|5_+sHd^E`oNFC?=f<%Hoo8yhrb*b!b>?y{w0usiZ} zwJ&Yx$9Y9keSu4PvK(1H_)E$q3nz6q_IC-U0COBB=iU)7g6?GuF|rK18GFzTv*&`|N#xxnb*o|KM|8_pveCr<6C_`~OAl zMFs^c@t@jDvCreSTJ`iJzpkeZx+&QoJDjBqF!~*82mYElfXVAH&hC+ z;xH6o+*}R+1U{JEm#UiH%g_Qpa#NNbj{l7%6SS19cxpLFzAZQn*=(5znJKLPnvwpV zc4+S6Q^mM{JggsFPjFlO6X=4cRRVakHm~e-7 z^B8S8ccY8KGn>iLN^h*vpqWLzPz4E~}Py%+yM*{8cU;Ho+<*S=F+a zjpb%)vcQN_eF%TrxM$B9;HTq}n$MZo(@=AEG+XCpx++!Gf1#y{k?hqLI}!wGzZ5R& zQID+j3= z?;_-{_sgE|<>vzd-;eSeOg??R&xg+*;OF|E?-;$$n|(QfugmZFp0AIqk&Q$IYAdpr zGIUZzLkdb!Ok78DW=p|Yv`dT559n?~&d?uCV>OVg?{FAQwh|kV8Xban`mn}_>+n_J z0kd|f>3Z#zklqbdv!*|3q2Sr^m?9egmQ)^^m90iWJlzUBZnyYfKLzR@+YGD$eKAxF73bbspKSqPn# z1Kbr$>((DdxU)X15b@(|0dEE~Qn5`gA_NUWaI4-(Q)7MLdC-Zb4O;>i7Vr~AQz>^7C_NP7L~^srSS`E^NT#;KD9P|QreD3I zQ6wZ`aL~|)9z!numHVrQJ6}wga1>|f@yIt%PQ=-u4bLC&5uGneR%B#_QvKUtN%Xw? zS89l01{29Ju5T{o=)FJ4%f?Neqn!aJ1`Rt9HY-fB=!+#3-;^V5-&nuE)Ii8$>+MBG;0~Bv(Mq zuAsH=oX$gve8t|P=9@-dl$<|J0}{FwFpXl4UrG;6aj+4}jMPd}ol8m+)BjjuELxN| ziPX=LDdd$h1NqWA2~lr2AgV9Eoi7{@DxZsRmyY444&4vvuyh2+Hur}d4P1~HTs^hK zNdP;Hk_D3n3EDDxs+aOX3A{OEsyE)bv3vuX<5);b#!KY-^!MYb{u?9DD1BqW7_03u zcS8ZD!Z_00qoNk8y<$rlYPJC4eo*>-P}Z~#-+O^884;uN9$QQ^@AY;^<RvxD+#b|?_YRDuM@SabAA?>f#Sve}>2(o~EMJ>r8c`bIHnY|$)7IXs;loC>Tr5yW zW#!uK+ga}Qc=vrW_O_Jq%lOZ+kPN_GJ9&r%i)v**X7A0o-a{I-OtotP{O{{RbT&&T zo9zuQcnYPHCOyMGf@&-pOk!4bw8WUTbwZI(I;Ds_d-rk9cz^Z-L~i1+q!VlX@%iT6 z@>Q`4&EV-~-eiLUi*U2?W2a7Ki)Hy#Jb-QI9w=XUAVQbHVD@&j7OW(nq z4<^fFcclAeg)}#Ade3iXw5q1sSd1nA=)Xk|y5$!aUqlxlkrmRW-FQ7YUSRzc(&D4owXm?}}f#-(G?t510&GUyi&5D~qyo5(Y}PQb^i3qO9ei zuW!1_bvjML;RGX5__u}A0OA zw7F5OMj2|RMPU;3l#C!x3%Lq-0!C^w`~w?(eL^3|3aOgU`BcutlXipBnbk%#@oi4a zQ0jzw2l4kpZn?kj-6_pFh7}MsIT1SB=B!G*RZjr@Yg*a99IpS24KA+&%k!^Oq&9k? zP2uZdLDhI8y2!YyXpsdiS-}gP$WRf%Q098yB3UVqRjW{Hm>70*lJz)-!?r{|m=|_V z3|iEJ%&3|x3w_6A1mn|5XF*&{B6feblAE%|w|~NN&4{)$sl4XhEbx@bZZK$&Np^T< zLLTRsY6b~`aUW`XfKK<+5Yp*XYH18`(KPAMQ!ffc@udo`9I9=c$@ARLcJgTqltJ55 z$*)xeLHTU?USIo@C6Wsya~|-X)$|4-R3w%HnbJe}0Z7Cf5U{hvZ%O9z|4Tw>NH2u7 z{H|ZSA+oJgo%L`3d1EmBglLHTGOXX5%0J?4C=2t0aa$x-@J`2=F~aqBB5dV%M$y`Z zp)k+*HC8L@*jHNDs+nD+I8$KLyTgad^A8!ZD|1?7cd*$fn$MsXwthkyf1?f_K&^X_X8%pDC|UhU?%KV1!t?;Uhh7b;s_#5 z&2JOMsj_z~S~PpdLhRMl)E}vd*^1z(CDFYSe=6p#Yh4;@UxbAnu-I8@Iwo=LT-$O& zK>o5PBV{EQ?uL@^>$9sRa%(GfC#wOvX6v-nqUjP@mUs%#P@4oR%r7g(5E4MfYqymq`fZ7v+ z0V3jB2tB)3ho9G5p0~*4?}~vg4}#nUWOVi%$J67ij^t|@t!w@29mGj&)?jN4*BAyy#Br#Mb|7po?zP>WA%sdOfA3ON*MG7Q% zwVs_L9=O_pNCf^QlpceGHzcFVdT4YG5$H)<&sX|N`6ZHm0-qGNBhXKiG6KsXTW-ex z@v8vUd4qJ%S@_$4had`GmkjHzM8o1D&BqulN#$j@pRjcEc5e=dwCpx-)IZYCa@ORH z_bv^5FCR$$zp5U+$FGlx-33c&+U71mMF=H`49jC-sBJbb0m&m9uR~-hJKH)@I07kN z8beW;w)0?XTSlC|TXYbewmbNw>GTbjVLC)q@ek?6B%6H;^eeL)Wkk9Ai{zei>5M39 z7Hd0Sk^9dXTS=rQjQ?LB_Ziewx9$Nv^d=ynG^rXo(h&$<5JMF~inNy&sv^>*MQWrY zMQS8Smkyy2wkb^ZIe3K>AJ`Ws zfrfk}DKPhnwsIEA(pY(=FsY@nA|Kox3dgCU=`2=lpSYQ{mGfcED(Wz0lfG~hCtddH z;END+XHVg0lQVF5z-Xw_>S!OHTsexam#RvWDM!Jq%4~KdkKoL|T^oM+t_!K27G>@U zWmH>9e#A+8jj~Ml%;n`K(^w?sn#~>iHqJRARbJZe%_C)lG+8v9(d730fTK~IP>#mp zxddM&3woemU|Op3<`g{~tYy{DeA;aI;cDg6+e3GsndyFyW{8#|ssxgc`NgOYdimV3 zd_F@w)8<2c<3N=Aviqd?j4E~klX|k}Y_v!-B*w;{dc+DwrCq3h*(WqhpriI1K^|7q zy7S~{8nf%Rd2N`giYR`p81p^ItVz0Nx!>r02FXa;_LTh--?s8|hs$Z4Qyyw_Xy|}1 z*b0jJh{#FQ9*qGf33ZfJe8a%)vI4zN4t8dLia(qWF@F~+Ce~k&$l9acI=m-(R1K-C9yGbT0pPCtt>vZpyVHvxh|I~g5;mhh%umx=72;@ z@=r~YAF^6JP9)+na#??Ctpc+teh#^M+S@FhrD^=tYfM>rStuc~b@th93(!ox*(rGr zNBEWRvDpDZ%UTule#Dj6u@782M*?8d0=;UH3zG!}zu@DS!{@4>G3t`Q*R#?q(MEyX80f zxr#s*64rBA5Adyi{5mrN?OCxxV|`}E5LUTST0>Kw3Tb6ZYRH4o39k1d&SsT^S z{+jsBkh5r+QX!90LvFUj(p)ykQtAD%YD@JoRS#NyI|s3pNRn(!l-)YpZKpXK3{}&)W;2b&l+%-LQUZc^Wg!)NSBf z`e$NWd&0y^aE4QE=X-#O)9Y=duwpvSD20HhpP}*T4f4v)3T{ncmZ+ed_|nX{sm_XK zSH=3Y{d@=$^^ic4aO~(kF>P&#fc=}Gz`6IDWlHTSpCiTNg)E18Je@aQ6;Uv83Qym8 z$U;EFP`X8!!Qrqgv z0=}#M2?4dUKaKyeU+bYRl#!y_{!BanWjK zn>y?0MCA>VPSCO%YZyFHB=e9!G)a2mq{9D}zLKtABmCa;VLJFuun(8pYY41XbR84iunSnogcR1^~u`+X|JI!2LZ`t2`HDpO;^riTY=q zJX71kA-dhOPNNxXn4=_PD6xT%z;wA|Gi#I#U$xtT)S!#~z6CFtaeRhz37dpeQ{9ym zQ|d`~opOc7-gs_DM*0A->SvEG*TKi2~^pqzl~x*TEBZs9H-3fks9R~5k@=Gx}M zz3avJB!McqsH6FLbkbKRwKv-XytQc6mcA*{rRg(l5BH<40uZrmr=ct{AfEGAfgs16 zHTraX<((&1zKr85a3%wOag2tR7>QQn6xnU=jp)m>BgP|C-^q>GkvAp2SSX<@7ul=Z zh5k6}%@YXMs_KepcEfxbnxXG(!w$!U36Ez@g^_%`U=4p&PklzGb1KIWnDo+ROnpR5 zPse~SHI_Shz(Y0U3s#+ihdVTMti^ZIpL3YxZi%$F>G@M5TAIO#DEUqXpCdDFf>tg# z+RUd<4lxRHnav43W(Hkw9N^b1u@tMiJN+DwOpX_vAS88K?%iS&HX}VQu2Z79htPRs z?maq>+B-&RSe>FqE|EYMrAQ3$@L0HzmQUh?P)vk)N&&uZSK2m}+ovi-%{&`flS;Lk zz9dB!k8F~DT=O?1*Y7F_LByG>YV{#=E_@Iy&@8s} z@=AD5*Oiqjt8aZaqE>ITWK~^*IbTtNcB{WKwbZ%irNB5HY@hVOKz z#{ka+p~wKz5j)js3+H?C0@D>;xSkV_HI_CAy4wwK7XFl!qImVbzIM`SXlTW`B#|Z7 znwcy-dVpbI%f4R2o9R%F0AtehCs4ArysNv=L?OeW>}1SZhrp;jBvp z>|m9je_t})a=`w?^l*kfxh`fw&o4n_t!hBo%42xI$8edVsxc6`R94+FpxvIytlGYN z^TeSe#xTY@4rtTL1CvL*VO+hHZ96=_5{v@+MP`@*MUKaMXDG6{U^_jVX-@i;V+nT-M<2N~q!jZ2@Co{aX5iM`)y|$7kH*_1}nH1#K z?OETMD^_>Dw)o)$WWR`6zf`;*>#6B4s+EATzj4DIN78~6*iW<97)wN7x_wv59^vOPg4CxJJ^`T|f1x?a?sv^PKJ0?$K*nCz-d9al8(EF_9M zHopA;>M@A^Xf;&@i@SA7d=>grnI>OOKrQvnHe@6=xrPs``tjY$`JnZ@jmmt{{mlO=Kp=VR!2y$U+&(Lp{RrHXY=QSzbb?aGF{sKRgYTp<>HNdXMw@WFA_ zfEsy@%G=xp0Q1mQt0`_PYG|6o!d5O%cC9p@y(_Hk!KhNj;dl+Q@+@T$C zPdMF1oj_?F$;G@75&c9}?L8b<6uq(GuGqZcNNOFbkem^47L}JGrGzMxSyY#nH+kft zH9{_At+NG^Y`Mk#9pEw;`@M%tQFXD<9@nx!8zB9{Of#(Rr*Io=YeBg}!m9#&?5<-+ z@A`gnwq#2IJCDZ5W|qUKc`IX@_sX!?y_O}7f+{uO;)Y8CqUqXda)UKeIZg>xCy$Y# zYaU$?i3oEkEF?M@b8ylp+B06W=%Tv&O`iPuVi-o-l-_uk)BUq^Hp>+@<%QHv!ci;Q}*C)Y~+xie$N2O z$y*pB6I~>Y7Ufe=M2%_fwOI74M%@=*BEiA~b#vKz2DiFOez#2ftVU0>qZmaR2}S literal 0 HcmV?d00001 diff --git a/vs_plugin/src/syntaxes/sts.tmLanguage.json b/vs_plugin/src/syntaxes/sts.tmLanguage.json new file mode 100644 index 000000000..8b9203f7e --- /dev/null +++ b/vs_plugin/src/syntaxes/sts.tmLanguage.json @@ -0,0 +1,5815 @@ +{ + "$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json", + "name": "StaticTypescript", + "scopeName": "source.sts", + "patterns": [ + { + "include": "#directives" + }, + { + "include": "#statements" + }, + { + "include": "#shebang" + } + ], + "repository": { + "shebang": { + "name": "comment.line.shebang.sts", + "match": "\\A(#!).*(?=$)", + "captures": { + "1": { + "name": "punctuation.definition.comment.sts" + } + } + }, + "statements": { + "patterns": [ + { + "include": "#declaration" + }, + { + "include": "#control-statement" + }, + { + "include": "#after-operator-block-as-object-literal" + }, + { + "include": "#decl-block" + }, + { + "include": "#label" + }, + { + "include": "#expression" + }, + { + "include": "#punctuation-semicolon" + }, + { + "include": "#string" + }, + { + "include": "#comment" + } + ] + }, + "declaration": { + "patterns": [ + { + "include": "#decorator" + }, + { + "include": "#var-expr" + }, + { + "include": "#function-declaration" + }, + { + "include": "#class-declaration" + }, + { + "include": "#interface-declaration" + }, + { + "include": "#enum-declaration" + }, + { + "include": "#namespace-declaration" + }, + { + "include": "#type-alias-declaration" + }, + { + "include": "#import-equals-declaration" + }, + { + "include": "#import-declaration" + }, + { + "include": "#export-declaration" + }, + { + "name": "storage.modifier.sts", + "match": "(?)\n )) |\n ((async\\s*)?(\n ((<\\s*$)|((<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)?[\\(]\\s*((([\\{\\[]\\s*)?$)|((\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})\\s*((:\\s*\\{?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))|((\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])\\s*((:\\s*\\[?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))))) |\n # sure shot arrow functions even if => is on new line\n(\n (<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)?\n [(]\\s*(\\/\\*([^\\*]|(\\*[^\\/]))*\\*\\/\\s*)*\n (\n ([)]\\s*:) | # ():\n ((\\.\\.\\.\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\s*:) # [(]param: | [(]...param:\n )\n) |\n\n# arrow function possible to detect only with => on same line\n(\n (<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)? # typeparameters\n \\(\\s*(\\/\\*([^\\*]|(\\*[^\\/]))*\\*\\/\\s*)*(([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])|(\\.\\.\\.\\s*[_$[:alpha:]]))([^()\\'\\\"\\`]|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\'([^\\'\\\\]|\\\\.)*\\')|(\\\"([^\\\"\\\\]|\\\\.)*\\\")|(\\`([^\\`\\\\]|\\\\.)*\\`))*)?\\) # parameters\n (\\s*:\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+)? # return type\n \\s*=> # arrow operator\n)\n ))\n)) |\n# typeannotation is fn type: < | () | (... | (param: | (param, | (param? | (param= | (param) =>\n(:\\s*(\n (<) |\n ([(]\\s*(\n ([)]) |\n (\\.\\.\\.) |\n ([_$[:alnum:]]+\\s*(\n ([:,?=])|\n ([)]\\s*=>)\n ))\n ))\n)) |\n(:\\s*(?]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)?[\\(]\\s*((([\\{\\[]\\s*)?$)|((\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})\\s*((:\\s*\\{?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))|((\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])\\s*((:\\s*\\[?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*))))))) |\n(:\\s*(=>|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(<[^<>]*>)|[^<>(),=])+=\\s*(\n ((async\\s+)?(\n (function\\s*[(<*]) |\n (function\\s+) |\n ([_$[:alpha:]][_$[:alnum:]]*\\s*=>)\n )) |\n ((async\\s*)?(\n ((<\\s*$)|((<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)?[\\(]\\s*((([\\{\\[]\\s*)?$)|((\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})\\s*((:\\s*\\{?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))|((\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])\\s*((:\\s*\\[?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))))) |\n # sure shot arrow functions even if => is on new line\n(\n (<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)?\n [(]\\s*(\\/\\*([^\\*]|(\\*[^\\/]))*\\*\\/\\s*)*\n (\n ([)]\\s*:) | # ():\n ((\\.\\.\\.\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\s*:) # [(]param: | [(]...param:\n )\n) |\n\n# arrow function possible to detect only with => on same line\n(\n (<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)? # typeparameters\n \\(\\s*(\\/\\*([^\\*]|(\\*[^\\/]))*\\*\\/\\s*)*(([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])|(\\.\\.\\.\\s*[_$[:alpha:]]))([^()\\'\\\"\\`]|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\'([^\\'\\\\]|\\\\.)*\\')|(\\\"([^\\\"\\\\]|\\\\.)*\\\")|(\\`([^\\`\\\\]|\\\\.)*\\`))*)?\\) # parameters\n (\\s*:\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+)? # return type\n \\s*=> # arrow operator\n)\n ))\n)))", + "beginCaptures": { + "1": { + "name": "meta.definition.variable.sts entity.name.function.sts" + }, + "2": { + "name": "keyword.operator.definiteassignment.sts" + } + }, + "end": "(?=$|^|[;,=}]|((?)\n )) |\n ((async\\s*)?(\n ((<\\s*$)|((<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)?[\\(]\\s*((([\\{\\[]\\s*)?$)|((\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})\\s*((:\\s*\\{?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))|((\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])\\s*((:\\s*\\[?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))))) |\n # sure shot arrow functions even if => is on new line\n(\n (<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)?\n [(]\\s*(\\/\\*([^\\*]|(\\*[^\\/]))*\\*\\/\\s*)*\n (\n ([)]\\s*:) | # ():\n ((\\.\\.\\.\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\s*:) # [(]param: | [(]...param:\n )\n) |\n\n# arrow function possible to detect only with => on same line\n(\n (<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)? # typeparameters\n \\(\\s*(\\/\\*([^\\*]|(\\*[^\\/]))*\\*\\/\\s*)*(([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])|(\\.\\.\\.\\s*[_$[:alpha:]]))([^()\\'\\\"\\`]|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\'([^\\'\\\\]|\\\\.)*\\')|(\\\"([^\\\"\\\\]|\\\\.)*\\\")|(\\`([^\\`\\\\]|\\\\.)*\\`))*)?\\) # parameters\n (\\s*:\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+)? # return type\n \\s*=> # arrow operator\n)\n ))\n)) |\n# typeannotation is fn type: < | () | (... | (param: | (param, | (param? | (param= | (param) =>\n(:\\s*(\n (<) |\n ([(]\\s*(\n ([)]) |\n (\\.\\.\\.) |\n ([_$[:alnum:]]+\\s*(\n ([:,?=])|\n ([)]\\s*=>)\n ))\n ))\n)) |\n(:\\s*(?]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)?[\\(]\\s*((([\\{\\[]\\s*)?$)|((\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})\\s*((:\\s*\\{?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))|((\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])\\s*((:\\s*\\[?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*))))))) |\n(:\\s*(=>|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(<[^<>]*>)|[^<>(),=])+=\\s*(\n ((async\\s+)?(\n (function\\s*[(<*]) |\n (function\\s+) |\n ([_$[:alpha:]][_$[:alnum:]]*\\s*=>)\n )) |\n ((async\\s*)?(\n ((<\\s*$)|((<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)?[\\(]\\s*((([\\{\\[]\\s*)?$)|((\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})\\s*((:\\s*\\{?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))|((\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])\\s*((:\\s*\\[?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))))) |\n # sure shot arrow functions even if => is on new line\n(\n (<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)?\n [(]\\s*(\\/\\*([^\\*]|(\\*[^\\/]))*\\*\\/\\s*)*\n (\n ([)]\\s*:) | # ():\n ((\\.\\.\\.\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\s*:) # [(]param: | [(]...param:\n )\n) |\n\n# arrow function possible to detect only with => on same line\n(\n (<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)? # typeparameters\n \\(\\s*(\\/\\*([^\\*]|(\\*[^\\/]))*\\*\\/\\s*)*(([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])|(\\.\\.\\.\\s*[_$[:alpha:]]))([^()\\'\\\"\\`]|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\'([^\\'\\\\]|\\\\.)*\\')|(\\\"([^\\\"\\\\]|\\\\.)*\\\")|(\\`([^\\`\\\\]|\\\\.)*\\`))*)?\\) # parameters\n (\\s*:\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+)? # return type\n \\s*=> # arrow operator\n)\n ))\n)))", + "beginCaptures": { + "1": { + "name": "meta.definition.variable.sts variable.other.constant.sts entity.name.function.sts" + } + }, + "end": "(?=$|^|[;,=}]|((?)\n )) |\n ((async\\s*)?(\n ((<\\s*$)|((<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)?[\\(]\\s*((([\\{\\[]\\s*)?$)|((\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})\\s*((:\\s*\\{?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))|((\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])\\s*((:\\s*\\[?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))))) |\n # sure shot arrow functions even if => is on new line\n(\n (<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)?\n [(]\\s*(\\/\\*([^\\*]|(\\*[^\\/]))*\\*\\/\\s*)*\n (\n ([)]\\s*:) | # ():\n ((\\.\\.\\.\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\s*:) # [(]param: | [(]...param:\n )\n) |\n\n# arrow function possible to detect only with => on same line\n(\n (<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)? # typeparameters\n \\(\\s*(\\/\\*([^\\*]|(\\*[^\\/]))*\\*\\/\\s*)*(([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])|(\\.\\.\\.\\s*[_$[:alpha:]]))([^()\\'\\\"\\`]|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\'([^\\'\\\\]|\\\\.)*\\')|(\\\"([^\\\"\\\\]|\\\\.)*\\\")|(\\`([^\\`\\\\]|\\\\.)*\\`))*)?\\) # parameters\n (\\s*:\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+)? # return type\n \\s*=> # arrow operator\n)\n ))\n)) |\n# typeannotation is fn type: < | () | (... | (param: | (param, | (param? | (param= | (param) =>\n(:\\s*(\n (<) |\n ([(]\\s*(\n ([)]) |\n (\\.\\.\\.) |\n ([_$[:alnum:]]+\\s*(\n ([:,?=])|\n ([)]\\s*=>)\n ))\n ))\n)) |\n(:\\s*(?]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)?[\\(]\\s*((([\\{\\[]\\s*)?$)|((\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})\\s*((:\\s*\\{?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))|((\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])\\s*((:\\s*\\[?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*))))))) |\n(:\\s*(=>|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(<[^<>]*>)|[^<>(),=])+=\\s*(\n ((async\\s+)?(\n (function\\s*[(<*]) |\n (function\\s+) |\n ([_$[:alpha:]][_$[:alnum:]]*\\s*=>)\n )) |\n ((async\\s*)?(\n ((<\\s*$)|((<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)?[\\(]\\s*((([\\{\\[]\\s*)?$)|((\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})\\s*((:\\s*\\{?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))|((\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])\\s*((:\\s*\\[?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))))) |\n # sure shot arrow functions even if => is on new line\n(\n (<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)?\n [(]\\s*(\\/\\*([^\\*]|(\\*[^\\/]))*\\*\\/\\s*)*\n (\n ([)]\\s*:) | # ():\n ((\\.\\.\\.\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\s*:) # [(]param: | [(]...param:\n )\n) |\n\n# arrow function possible to detect only with => on same line\n(\n (<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)? # typeparameters\n \\(\\s*(\\/\\*([^\\*]|(\\*[^\\/]))*\\*\\/\\s*)*(([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])|(\\.\\.\\.\\s*[_$[:alpha:]]))([^()\\'\\\"\\`]|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\'([^\\'\\\\]|\\\\.)*\\')|(\\\"([^\\\"\\\\]|\\\\.)*\\\")|(\\`([^\\`\\\\]|\\\\.)*\\`))*)?\\) # parameters\n (\\s*:\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+)? # return type\n \\s*=> # arrow operator\n)\n ))\n)))", + "captures": { + "1": { + "name": "storage.modifier.sts" + }, + "2": { + "name": "keyword.operator.rest.sts" + }, + "3": { + "name": "entity.name.function.sts variable.language.this.sts" + }, + "4": { + "name": "entity.name.function.sts" + }, + "5": { + "name": "keyword.operator.optional.sts" + } + } + }, + { + "match": "(?x)(?:(?)\n )) |\n ((async\\s*)?(\n ((<\\s*$)|((<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)?[\\(]\\s*((([\\{\\[]\\s*)?$)|((\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})\\s*((:\\s*\\{?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))|((\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])\\s*((:\\s*\\[?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))))) |\n # sure shot arrow functions even if => is on new line\n(\n (<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)?\n [(]\\s*(\\/\\*([^\\*]|(\\*[^\\/]))*\\*\\/\\s*)*\n (\n ([)]\\s*:) | # ():\n ((\\.\\.\\.\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\s*:) # [(]param: | [(]...param:\n )\n) |\n\n# arrow function possible to detect only with => on same line\n(\n (<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)? # typeparameters\n \\(\\s*(\\/\\*([^\\*]|(\\*[^\\/]))*\\*\\/\\s*)*(([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])|(\\.\\.\\.\\s*[_$[:alpha:]]))([^()\\'\\\"\\`]|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\'([^\\'\\\\]|\\\\.)*\\')|(\\\"([^\\\"\\\\]|\\\\.)*\\\")|(\\`([^\\`\\\\]|\\\\.)*\\`))*)?\\) # parameters\n (\\s*:\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+)? # return type\n \\s*=> # arrow operator\n)\n ))\n)) |\n# typeannotation is fn type: < | () | (... | (param: | (param, | (param? | (param= | (param) =>\n(:\\s*(\n (<) |\n ([(]\\s*(\n ([)]) |\n (\\.\\.\\.) |\n ([_$[:alnum:]]+\\s*(\n ([:,?=])|\n ([)]\\s*=>)\n ))\n ))\n)) |\n(:\\s*(?]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)?[\\(]\\s*((([\\{\\[]\\s*)?$)|((\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})\\s*((:\\s*\\{?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))|((\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])\\s*((:\\s*\\[?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*))))))) |\n(:\\s*(=>|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(<[^<>]*>)|[^<>(),=])+=\\s*(\n ((async\\s+)?(\n (function\\s*[(<*]) |\n (function\\s+) |\n ([_$[:alpha:]][_$[:alnum:]]*\\s*=>)\n )) |\n ((async\\s*)?(\n ((<\\s*$)|((<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)?[\\(]\\s*((([\\{\\[]\\s*)?$)|((\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})\\s*((:\\s*\\{?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))|((\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])\\s*((:\\s*\\[?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))))) |\n # sure shot arrow functions even if => is on new line\n(\n (<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)?\n [(]\\s*(\\/\\*([^\\*]|(\\*[^\\/]))*\\*\\/\\s*)*\n (\n ([)]\\s*:) | # ():\n ((\\.\\.\\.\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\s*:) # [(]param: | [(]...param:\n )\n) |\n\n# arrow function possible to detect only with => on same line\n(\n (<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)? # typeparameters\n \\(\\s*(\\/\\*([^\\*]|(\\*[^\\/]))*\\*\\/\\s*)*(([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])|(\\.\\.\\.\\s*[_$[:alpha:]]))([^()\\'\\\"\\`]|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\'([^\\'\\\\]|\\\\.)*\\')|(\\\"([^\\\"\\\\]|\\\\.)*\\\")|(\\`([^\\`\\\\]|\\\\.)*\\`))*)?\\) # parameters\n (\\s*:\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+)? # return type\n \\s*=> # arrow operator\n)\n ))\n)))", + "captures": { + "1": { + "name": "meta.definition.property.sts entity.name.function.sts" + }, + "2": { + "name": "keyword.operator.optional.sts" + }, + "3": { + "name": "keyword.operator.definiteassignment.sts" + } + } + }, + { + "name": "meta.definition.property.sts variable.object.property.sts", + "match": "\\#?[_$[:alpha:]][_$[:alnum:]]*" + }, + { + "name": "keyword.operator.optional.sts", + "match": "\\?" + }, + { + "name": "keyword.operator.definiteassignment.sts", + "match": "\\!" + } + ] + }, + "variable-initializer": { + "patterns": [ + { + "begin": "(?\\s*$)", + "beginCaptures": { + "1": { + "name": "keyword.operator.assignment.sts" + } + }, + "end": "(?=$|^|[,);}\\]]|((?]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*))?[\\(])", + "beginCaptures": { + "1": { + "name": "storage.modifier.sts" + }, + "2": { + "name": "storage.modifier.sts" + }, + "3": { + "name": "storage.modifier.sts" + }, + "4": { + "name": "storage.modifier.async.sts" + }, + "5": { + "name": "keyword.operator.new.sts" + }, + "6": { + "name": "keyword.generator.asterisk.sts" + } + }, + "end": "(?=\\}|;|,|$)|(?<=\\})", + "patterns": [ + { + "include": "#method-declaration-name" + }, + { + "include": "#function-body" + } + ] + }, + { + "name": "meta.method.declaration.sts", + "begin": "(?x)(?]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*))?[\\(])", + "beginCaptures": { + "1": { + "name": "storage.modifier.sts" + }, + "2": { + "name": "storage.modifier.sts" + }, + "3": { + "name": "storage.modifier.sts" + }, + "4": { + "name": "storage.modifier.async.sts" + }, + "5": { + "name": "storage.type.property.sts" + }, + "6": { + "name": "keyword.generator.asterisk.sts" + } + }, + "end": "(?=\\}|;|,|$)|(?<=\\})", + "patterns": [ + { + "include": "#method-declaration-name" + }, + { + "include": "#function-body" + } + ] + } + ] + }, + "object-literal-method-declaration": { + "name": "meta.method.declaration.sts", + "begin": "(?x)(?]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*))?[\\(])", + "beginCaptures": { + "1": { + "name": "storage.modifier.async.sts" + }, + "2": { + "name": "storage.type.property.sts" + }, + "3": { + "name": "keyword.generator.asterisk.sts" + } + }, + "end": "(?=\\}|;|,)|(?<=\\})", + "patterns": [ + { + "include": "#method-declaration-name" + }, + { + "include": "#function-body" + }, + { + "begin": "(?x)(?]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*))?[\\(])", + "beginCaptures": { + "1": { + "name": "storage.modifier.async.sts" + }, + "2": { + "name": "storage.type.property.sts" + }, + "3": { + "name": "keyword.generator.asterisk.sts" + } + }, + "end": "(?=\\(|\\<)", + "patterns": [ + { + "include": "#method-declaration-name" + } + ] + } + ] + }, + "method-declaration-name": { + "begin": "(?x)(?=((\\b(?)", + "captures": { + "1": { + "name": "storage.modifier.async.sts" + }, + "2": { + "name": "variable.parameter.sts" + } + } + }, + { + "name": "meta.arrow.sts", + "begin": "(?x) (?:\n (? is on new line\n(\n (<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)?\n [(]\\s*(\\/\\*([^\\*]|(\\*[^\\/]))*\\*\\/\\s*)*\n (\n ([)]\\s*:) | # ():\n ((\\.\\.\\.\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\s*:) # [(]param: | [(]...param:\n )\n) |\n\n# arrow function possible to detect only with => on same line\n(\n (<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)? # typeparameters\n \\(\\s*(\\/\\*([^\\*]|(\\*[^\\/]))*\\*\\/\\s*)*(([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])|(\\.\\.\\.\\s*[_$[:alpha:]]))([^()\\'\\\"\\`]|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\'([^\\'\\\\]|\\\\.)*\\')|(\\\"([^\\\"\\\\]|\\\\.)*\\\")|(\\`([^\\`\\\\]|\\\\.)*\\`))*)?\\) # parameters\n (\\s*:\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+)? # return type\n \\s*=> # arrow operator\n)\n )\n)", + "beginCaptures": { + "1": { + "name": "storage.modifier.async.sts" + } + }, + "end": "(?==>|\\{|(^\\s*(export|function|class|interface|let|var|const|import|enum|namespace|module|type|abstract|declare)\\s+))", + "patterns": [ + { + "include": "#comment" + }, + { + "include": "#type-parameters" + }, + { + "include": "#function-parameters" + }, + { + "include": "#arrow-return-type" + }, + { + "include": "#possibly-arrow-return-type" + } + ] + }, + { + "name": "meta.arrow.sts", + "begin": "=>", + "beginCaptures": { + "0": { + "name": "storage.type.function.arrow.sts" + } + }, + "end": "((?<=\\}|\\S)(?)|((?!\\{)(?=\\S)))(?!\\/[\\/\\*])", + "patterns": [ + { + "include": "#single-line-comment-consuming-line-ending" + }, + { + "include": "#decl-block" + }, + { + "include": "#expression" + } + ] + } + ] + }, + "indexer-declaration": { + "name": "meta.indexer.declaration.sts", + "begin": "(?:(?]|^await|[^\\._$[:alnum:]]await|^return|[^\\._$[:alnum:]]return|^yield|[^\\._$[:alnum:]]yield|^throw|[^\\._$[:alnum:]]throw|^in|[^\\._$[:alnum:]]in|^of|[^\\._$[:alnum:]]of|^typeof|[^\\._$[:alnum:]]typeof|&&|\\|\\||\\*)\\s*(\\{)", + "beginCaptures": { + "1": { + "name": "punctuation.definition.block.sts" + } + }, + "end": "\\}", + "endCaptures": { + "0": { + "name": "punctuation.definition.block.sts" + } + }, + "patterns": [ + { + "include": "#object-member" + } + ] + }, + "object-literal": { + "name": "meta.objectliteral.sts", + "begin": "\\{", + "beginCaptures": { + "0": { + "name": "punctuation.definition.block.sts" + } + }, + "end": "\\}", + "endCaptures": { + "0": { + "name": "punctuation.definition.block.sts" + } + }, + "patterns": [ + { + "include": "#object-member" + } + ] + }, + "object-member": { + "patterns": [ + { + "include": "#comment" + }, + { + "include": "#object-literal-method-declaration" + }, + { + "name": "meta.object.member.sts meta.object-literal.key.sts", + "begin": "(?=\\[)", + "end": "(?=:)|((?<=[\\]])(?=\\s*[\\(\\<]))", + "patterns": [ + { + "include": "#comment" + }, + { + "include": "#array-literal" + } + ] + }, + { + "name": "meta.object.member.sts meta.object-literal.key.sts", + "begin": "(?=[\\'\\\"\\`])", + "end": "(?=:)|((?<=[\\'\\\"\\`])(?=((\\s*[\\(\\<,}])|(\\s+(as)\\s+))))", + "patterns": [ + { + "include": "#comment" + }, + { + "include": "#string" + } + ] + }, + { + "name": "meta.object.member.sts meta.object-literal.key.sts", + "begin": "(?x)(?=(\\b(?)\n )) |\n ((async\\s*)?(\n ((<\\s*$)|((<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)?[\\(]\\s*((([\\{\\[]\\s*)?$)|((\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})\\s*((:\\s*\\{?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))|((\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])\\s*((:\\s*\\[?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))))) |\n # sure shot arrow functions even if => is on new line\n(\n (<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)?\n [(]\\s*(\\/\\*([^\\*]|(\\*[^\\/]))*\\*\\/\\s*)*\n (\n ([)]\\s*:) | # ():\n ((\\.\\.\\.\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\s*:) # [(]param: | [(]...param:\n )\n) |\n\n# arrow function possible to detect only with => on same line\n(\n (<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)? # typeparameters\n \\(\\s*(\\/\\*([^\\*]|(\\*[^\\/]))*\\*\\/\\s*)*(([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])|(\\.\\.\\.\\s*[_$[:alpha:]]))([^()\\'\\\"\\`]|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\'([^\\'\\\\]|\\\\.)*\\')|(\\\"([^\\\"\\\\]|\\\\.)*\\\")|(\\`([^\\`\\\\]|\\\\.)*\\`))*)?\\) # parameters\n (\\s*:\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+)? # return type\n \\s*=> # arrow operator\n)\n ))\n)))", + "captures": { + "0": { + "name": "meta.object-literal.key.sts" + }, + "1": { + "name": "entity.name.function.sts" + } + } + }, + { + "name": "meta.object.member.sts", + "match": "(?:[_$[:alpha:]][_$[:alnum:]]*)\\s*(?=(\\/\\*([^\\*]|(\\*[^\\/]))*\\*\\/\\s*)*:)", + "captures": { + "0": { + "name": "meta.object-literal.key.sts" + } + } + }, + { + "name": "meta.object.member.sts", + "begin": "\\.\\.\\.", + "beginCaptures": { + "0": { + "name": "keyword.operator.spread.sts" + } + }, + "end": "(?=,|\\})", + "patterns": [ + { + "include": "#expression" + } + ] + }, + { + "name": "meta.object.member.sts", + "match": "([_$[:alpha:]][_$[:alnum:]]*)\\s*(?=,|\\}|$|\\/\\/|\\/\\*)", + "captures": { + "1": { + "name": "variable.other.readwrite.sts" + } + } + }, + { + "name": "meta.object.member.sts", + "match": "(?]|\\|\\||\\&\\&|\\!\\=\\=|$|^|((?]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)\\(\\s*((([\\{\\[]\\s*)?$)|((\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})\\s*((:\\s*\\{?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))|((\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])\\s*((:\\s*\\[?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))))", + "beginCaptures": { + "1": { + "name": "storage.modifier.async.sts" + } + }, + "end": "(?<=\\))", + "patterns": [ + { + "include": "#type-parameters" + }, + { + "begin": "\\(", + "beginCaptures": { + "0": { + "name": "meta.brace.round.sts" + } + }, + "end": "\\)", + "endCaptures": { + "0": { + "name": "meta.brace.round.sts" + } + }, + "patterns": [ + { + "include": "#expression-inside-possibly-arrow-parens" + } + ] + } + ] + }, + { + "begin": "(?<=:)\\s*(async)?\\s*(\\()(?=\\s*((([\\{\\[]\\s*)?$)|((\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})\\s*((:\\s*\\{?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))|((\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])\\s*((:\\s*\\[?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))))", + "beginCaptures": { + "1": { + "name": "storage.modifier.async.sts" + }, + "2": { + "name": "meta.brace.round.sts" + } + }, + "end": "\\)", + "endCaptures": { + "0": { + "name": "meta.brace.round.sts" + } + }, + "patterns": [ + { + "include": "#expression-inside-possibly-arrow-parens" + } + ] + }, + { + "begin": "(?<=:)\\s*(async)?\\s*(?=\\<\\s*$)", + "beginCaptures": { + "1": { + "name": "storage.modifier.async.sts" + } + }, + "end": "(?<=\\>)", + "patterns": [ + { + "include": "#type-parameters" + } + ] + }, + { + "begin": "(?<=\\>)\\s*(\\()(?=\\s*((([\\{\\[]\\s*)?$)|((\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})\\s*((:\\s*\\{?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))|((\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])\\s*((:\\s*\\[?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))))", + "beginCaptures": { + "1": { + "name": "meta.brace.round.sts" + } + }, + "end": "\\)", + "endCaptures": { + "0": { + "name": "meta.brace.round.sts" + } + }, + "patterns": [ + { + "include": "#expression-inside-possibly-arrow-parens" + } + ] + }, + { + "include": "#possibly-arrow-return-type" + }, + { + "include": "#expression" + } + ] + }, + { + "include": "#access-modifier" + }, + { + "include": "#punctuation-comma" + } + ] + }, + "ternary-expression": { + "begin": "(?!\\?\\.\\s*[^[:digit:]])(\\?)(?!\\?)", + "beginCaptures": { + "1": { + "name": "keyword.operator.ternary.sts" + } + }, + "end": "\\s*(:)", + "endCaptures": { + "1": { + "name": "keyword.operator.ternary.sts" + } + }, + "patterns": [ + { + "include": "#expression" + } + ] + }, + "function-call": { + "patterns": [ + { + "begin": "(?=(((([_$[:alpha:]][_$[:alnum:]]*)(\\s*\\??\\.\\s*(\\#?[_$[:alpha:]][_$[:alnum:]]*))*)|(\\??\\.\\s*\\#?[_$[:alpha:]][_$[:alnum:]]*))|(?<=[\\)]))\\s*(?:(\\?\\.\\s*)|(\\!))?((<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])|(\\'([^\\'\\\\]|\\\\.)*\\')|(\\\"([^\\\"\\\\]|\\\\.)*\\\")|(\\`([^\\`\\\\]|\\\\.)*\\`))(?=\\s*([\\<\\>\\,\\.\\[]|=>|&(?!&)|\\|(?!\\|)))))([^<>\\(]|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(?<==)\\>|\\<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])|(\\'([^\\'\\\\]|\\\\.)*\\')|(\\\"([^\\\"\\\\]|\\\\.)*\\\")|(\\`([^\\`\\\\]|\\\\.)*\\`))(?=\\s*([\\<\\>\\,\\.\\[]|=>|&(?!&)|\\|(?!\\|)))))(([^<>\\(]|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(?<==)\\>|\\<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])|(\\'([^\\'\\\\]|\\\\.)*\\')|(\\\"([^\\\"\\\\]|\\\\.)*\\\")|(\\`([^\\`\\\\]|\\\\.)*\\`))(?=\\s*([\\<\\>\\,\\.\\[]|=>|&(?!&)|\\|(?!\\|)))))([^<>\\(]|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(?<==)\\>)*(?))*(?)*(?\\s*)?\\())", + "end": "(?<=\\))(?!(((([_$[:alpha:]][_$[:alnum:]]*)(\\s*\\??\\.\\s*(\\#?[_$[:alpha:]][_$[:alnum:]]*))*)|(\\??\\.\\s*\\#?[_$[:alpha:]][_$[:alnum:]]*))|(?<=[\\)]))\\s*(?:(\\?\\.\\s*)|(\\!))?((<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])|(\\'([^\\'\\\\]|\\\\.)*\\')|(\\\"([^\\\"\\\\]|\\\\.)*\\\")|(\\`([^\\`\\\\]|\\\\.)*\\`))(?=\\s*([\\<\\>\\,\\.\\[]|=>|&(?!&)|\\|(?!\\|)))))([^<>\\(]|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(?<==)\\>|\\<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])|(\\'([^\\'\\\\]|\\\\.)*\\')|(\\\"([^\\\"\\\\]|\\\\.)*\\\")|(\\`([^\\`\\\\]|\\\\.)*\\`))(?=\\s*([\\<\\>\\,\\.\\[]|=>|&(?!&)|\\|(?!\\|)))))(([^<>\\(]|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(?<==)\\>|\\<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])|(\\'([^\\'\\\\]|\\\\.)*\\')|(\\\"([^\\\"\\\\]|\\\\.)*\\\")|(\\`([^\\`\\\\]|\\\\.)*\\`))(?=\\s*([\\<\\>\\,\\.\\[]|=>|&(?!&)|\\|(?!\\|)))))([^<>\\(]|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(?<==)\\>)*(?))*(?)*(?\\s*)?\\())", + "patterns": [ + { + "name": "meta.function-call.sts", + "begin": "(?=(([_$[:alpha:]][_$[:alnum:]]*)(\\s*\\??\\.\\s*(\\#?[_$[:alpha:]][_$[:alnum:]]*))*)|(\\??\\.\\s*\\#?[_$[:alpha:]][_$[:alnum:]]*))", + "end": "(?=\\s*(?:(\\?\\.\\s*)|(\\!))?((<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])|(\\'([^\\'\\\\]|\\\\.)*\\')|(\\\"([^\\\"\\\\]|\\\\.)*\\\")|(\\`([^\\`\\\\]|\\\\.)*\\`))(?=\\s*([\\<\\>\\,\\.\\[]|=>|&(?!&)|\\|(?!\\|)))))([^<>\\(]|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(?<==)\\>|\\<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])|(\\'([^\\'\\\\]|\\\\.)*\\')|(\\\"([^\\\"\\\\]|\\\\.)*\\\")|(\\`([^\\`\\\\]|\\\\.)*\\`))(?=\\s*([\\<\\>\\,\\.\\[]|=>|&(?!&)|\\|(?!\\|)))))(([^<>\\(]|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(?<==)\\>|\\<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])|(\\'([^\\'\\\\]|\\\\.)*\\')|(\\\"([^\\\"\\\\]|\\\\.)*\\\")|(\\`([^\\`\\\\]|\\\\.)*\\`))(?=\\s*([\\<\\>\\,\\.\\[]|=>|&(?!&)|\\|(?!\\|)))))([^<>\\(]|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(?<==)\\>)*(?))*(?)*(?\\s*)?\\())", + "patterns": [ + { + "include": "#function-call-target" + } + ] + }, + { + "include": "#comment" + }, + { + "include": "#function-call-optionals" + }, + { + "include": "#type-arguments" + }, + { + "include": "#paren-expression" + } + ] + }, + { + "begin": "(?=(((([_$[:alpha:]][_$[:alnum:]]*)(\\s*\\??\\.\\s*(\\#?[_$[:alpha:]][_$[:alnum:]]*))*)|(\\??\\.\\s*\\#?[_$[:alpha:]][_$[:alnum:]]*))|(?<=[\\)]))(<\\s*[\\{\\[\\(]\\s*$))", + "end": "(?<=\\>)(?!(((([_$[:alpha:]][_$[:alnum:]]*)(\\s*\\??\\.\\s*(\\#?[_$[:alpha:]][_$[:alnum:]]*))*)|(\\??\\.\\s*\\#?[_$[:alpha:]][_$[:alnum:]]*))|(?<=[\\)]))(<\\s*[\\{\\[\\(]\\s*$))", + "patterns": [ + { + "name": "meta.function-call.sts", + "begin": "(?=(([_$[:alpha:]][_$[:alnum:]]*)(\\s*\\??\\.\\s*(\\#?[_$[:alpha:]][_$[:alnum:]]*))*)|(\\??\\.\\s*\\#?[_$[:alpha:]][_$[:alnum:]]*))", + "end": "(?=(<\\s*[\\{\\[\\(]\\s*$))", + "patterns": [ + { + "include": "#function-call-target" + } + ] + }, + { + "include": "#comment" + }, + { + "include": "#function-call-optionals" + }, + { + "include": "#type-arguments" + } + ] + } + ] + }, + "function-call-target": { + "patterns": [ + { + "include": "#support-function-call-identifiers" + }, + { + "name": "entity.name.function.sts", + "match": "(\\#?[_$[:alpha:]][_$[:alnum:]]*)" + } + ] + }, + "function-call-optionals": { + "patterns": [ + { + "name": "meta.function-call.sts punctuation.accessor.optional.sts", + "match": "\\?\\." + }, + { + "name": "meta.function-call.sts keyword.operator.definiteassignment.sts", + "match": "\\!" + } + ] + }, + "support-function-call-identifiers": { + "patterns": [ + { + "include": "#literal" + }, + { + "include": "#support-objects" + }, + { + "include": "#object-identifiers" + }, + { + "include": "#punctuation-accessor" + }, + { + "name": "keyword.operator.expression.import.sts", + "match": "(?:(?]|\\|\\||\\&\\&|\\!\\=\\=|$|(([\\&\\~\\^\\|]\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\s+instanceof(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.)))|((?]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*))?\\(\\s*((([\\{\\[]\\s*)?$)|((\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})\\s*((:\\s*\\{?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))|((\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])\\s*((:\\s*\\[?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))))", + "beginCaptures": { + "1": { + "name": "storage.modifier.async.sts" + } + }, + "end": "(?<=\\))", + "patterns": [ + { + "include": "#paren-expression-possibly-arrow-with-typeparameters" + } + ] + }, + { + "begin": "(?<=[(=,]|=>|^return|[^\\._$[:alnum:]]return)\\s*(async)?(?=\\s*((((<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*))?\\()|(<))\\s*$)", + "beginCaptures": { + "1": { + "name": "storage.modifier.async.sts" + } + }, + "end": "(?<=\\))", + "patterns": [ + { + "include": "#paren-expression-possibly-arrow-with-typeparameters" + } + ] + }, + { + "include": "#possibly-arrow-return-type" + } + ] + }, + "paren-expression-possibly-arrow-with-typeparameters": { + "patterns": [ + { + "include": "#type-parameters" + }, + { + "begin": "\\(", + "beginCaptures": { + "0": { + "name": "meta.brace.round.sts" + } + }, + "end": "\\)", + "endCaptures": { + "0": { + "name": "meta.brace.round.sts" + } + }, + "patterns": [ + { + "include": "#expression-inside-possibly-arrow-parens" + } + ] + } + ] + }, + "expression-inside-possibly-arrow-parens": { + "patterns": [ + { + "include": "#expressionWithoutIdentifiers" + }, + { + "include": "#comment" + }, + { + "include": "#string" + }, + { + "include": "#decorator" + }, + { + "include": "#destructuring-parameter" + }, + { + "match": "(?)\n )) |\n ((async\\s*)?(\n ((<\\s*$)|((<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)?[\\(]\\s*((([\\{\\[]\\s*)?$)|((\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})\\s*((:\\s*\\{?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))|((\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])\\s*((:\\s*\\[?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))))) |\n # sure shot arrow functions even if => is on new line\n(\n (<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)?\n [(]\\s*(\\/\\*([^\\*]|(\\*[^\\/]))*\\*\\/\\s*)*\n (\n ([)]\\s*:) | # ():\n ((\\.\\.\\.\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\s*:) # [(]param: | [(]...param:\n )\n) |\n\n# arrow function possible to detect only with => on same line\n(\n (<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)? # typeparameters\n \\(\\s*(\\/\\*([^\\*]|(\\*[^\\/]))*\\*\\/\\s*)*(([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])|(\\.\\.\\.\\s*[_$[:alpha:]]))([^()\\'\\\"\\`]|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\'([^\\'\\\\]|\\\\.)*\\')|(\\\"([^\\\"\\\\]|\\\\.)*\\\")|(\\`([^\\`\\\\]|\\\\.)*\\`))*)?\\) # parameters\n (\\s*:\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+)? # return type\n \\s*=> # arrow operator\n)\n ))\n)) |\n# typeannotation is fn type: < | () | (... | (param: | (param, | (param? | (param= | (param) =>\n(:\\s*(\n (<) |\n ([(]\\s*(\n ([)]) |\n (\\.\\.\\.) |\n ([_$[:alnum:]]+\\s*(\n ([:,?=])|\n ([)]\\s*=>)\n ))\n ))\n)) |\n(:\\s*(?]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)?[\\(]\\s*((([\\{\\[]\\s*)?$)|((\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})\\s*((:\\s*\\{?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))|((\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])\\s*((:\\s*\\[?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*))))))) |\n(:\\s*(=>|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(<[^<>]*>)|[^<>(),=])+=\\s*(\n ((async\\s+)?(\n (function\\s*[(<*]) |\n (function\\s+) |\n ([_$[:alpha:]][_$[:alnum:]]*\\s*=>)\n )) |\n ((async\\s*)?(\n ((<\\s*$)|((<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)?[\\(]\\s*((([\\{\\[]\\s*)?$)|((\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})\\s*((:\\s*\\{?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))|((\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])\\s*((:\\s*\\[?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))))) |\n # sure shot arrow functions even if => is on new line\n(\n (<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)?\n [(]\\s*(\\/\\*([^\\*]|(\\*[^\\/]))*\\*\\/\\s*)*\n (\n ([)]\\s*:) | # ():\n ((\\.\\.\\.\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\s*:) # [(]param: | [(]...param:\n )\n) |\n\n# arrow function possible to detect only with => on same line\n(\n (<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)? # typeparameters\n \\(\\s*(\\/\\*([^\\*]|(\\*[^\\/]))*\\*\\/\\s*)*(([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])|(\\.\\.\\.\\s*[_$[:alpha:]]))([^()\\'\\\"\\`]|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\'([^\\'\\\\]|\\\\.)*\\')|(\\\"([^\\\"\\\\]|\\\\.)*\\\")|(\\`([^\\`\\\\]|\\\\.)*\\`))*)?\\) # parameters\n (\\s*:\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+)? # return type\n \\s*=> # arrow operator\n)\n ))\n)))", + "captures": { + "1": { + "name": "storage.modifier.sts" + }, + "2": { + "name": "keyword.operator.rest.sts" + }, + "3": { + "name": "entity.name.function.sts variable.language.this.sts" + }, + "4": { + "name": "entity.name.function.sts" + }, + "5": { + "name": "keyword.operator.optional.sts" + } + } + }, + { + "match": "(?x)(?:(?)", + "captures": { + "1": { + "name": "meta.brace.angle.sts" + }, + "2": { + "name": "storage.modifier.sts" + }, + "3": { + "name": "meta.brace.angle.sts" + } + } + }, + { + "name": "cast.expr.sts", + "begin": "(?:(?*?\\&\\|\\^]|[^_$[:alnum:]](?:\\+\\+|\\-\\-)|[^\\+]\\+|[^\\-]\\-))\\s*(<)(?!)", + "endCaptures": { + "1": { + "name": "meta.brace.angle.sts" + } + }, + "patterns": [ + { + "include": "#type" + } + ] + }, + { + "name": "cast.expr.sts", + "begin": "(?:(?<=^))\\s*(<)(?=[_$[:alpha:]][_$[:alnum:]]*\\s*>)", + "beginCaptures": { + "1": { + "name": "meta.brace.angle.sts" + } + }, + "end": "(\\>)", + "endCaptures": { + "1": { + "name": "meta.brace.angle.sts" + } + }, + "patterns": [ + { + "include": "#type" + } + ] + } + ] + }, + "expression-operators": { + "patterns": [ + { + "name": "keyword.control.flow.sts", + "match": "(?]|\\|\\||\\&\\&|\\!\\=\\=|$|((?>=|>>>=|\\|=" + }, + { + "name": "keyword.operator.bitwise.shift.sts", + "match": "<<|>>>|>>" + }, + { + "name": "keyword.operator.comparison.sts", + "match": "===|!==|==|!=" + }, + { + "name": "keyword.operator.relational.sts", + "match": "<=|>=|<>|<|>" + }, + { + "match": "(?<=[_$[:alnum:]])(\\!)\\s*(?:(/=)|(?:(/)(?![/*])))", + "captures": { + "1": { + "name": "keyword.operator.logical.sts" + }, + "2": { + "name": "keyword.operator.assignment.compound.sts" + }, + "3": { + "name": "keyword.operator.arithmetic.sts" + } + } + }, + { + "name": "keyword.operator.logical.sts", + "match": "\\!|&&|\\|\\||\\?\\?" + }, + { + "name": "keyword.operator.bitwise.sts", + "match": "\\&|~|\\^|\\|" + }, + { + "name": "keyword.operator.assignment.sts", + "match": "\\=" + }, + { + "name": "keyword.operator.decrement.sts", + "match": "--" + }, + { + "name": "keyword.operator.increment.sts", + "match": "\\+\\+" + }, + { + "name": "keyword.operator.arithmetic.sts", + "match": "%|\\*|/|-|\\+" + }, + { + "begin": "(?<=[_$[:alnum:])\\]])\\s*(?=(\\/\\*([^\\*]|(\\*[^\\/]))*\\*\\/\\s*)+(?:(/=)|(?:(/)(?![/*]))))", + "end": "(?:(/=)|(?:(/)(?!\\*([^\\*]|(\\*[^\\/]))*\\*\\/)))", + "endCaptures": { + "1": { + "name": "keyword.operator.assignment.compound.sts" + }, + "2": { + "name": "keyword.operator.arithmetic.sts" + } + }, + "patterns": [ + { + "include": "#comment" + } + ] + }, + { + "match": "(?<=[_$[:alnum:])\\]])\\s*(?:(/=)|(?:(/)(?![/*])))", + "captures": { + "1": { + "name": "keyword.operator.assignment.compound.sts" + }, + "2": { + "name": "keyword.operator.arithmetic.sts" + } + } + } + ] + }, + "typeof-operator": { + "begin": "(?:&|{\\?]|$|;|^\\s*$|(?:^\\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|type|var)\\b))", + "patterns": [ + { + "include": "#expression" + } + ] + }, + "literal": { + "patterns": [ + { + "include": "#numeric-literal" + }, + { + "include": "#boolean-literal" + }, + { + "include": "#null-literal" + }, + { + "include": "#array-literal" + }, + { + "include": "#this-literal" + }, + { + "include": "#super-literal" + } + ] + }, + "array-literal": { + "name": "meta.array.literal.sts", + "begin": "\\s*(\\[)", + "beginCaptures": { + "1": { + "name": "meta.brace.square.sts" + } + }, + "end": "\\]", + "endCaptures": { + "0": { + "name": "meta.brace.square.sts" + } + }, + "patterns": [ + { + "include": "#expression" + }, + { + "include": "#punctuation-comma" + } + ] + }, + "numeric-literal": { + "patterns": [ + { + "name": "constant.numeric.hex.ts", + "match": "\\b(?]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)?\\())\n |\n (?:(EPSILON|MAX_SAFE_INTEGER|MAX_VALUE|MIN_SAFE_INTEGER|MIN_VALUE|NEGATIVE_INFINITY|POSITIVE_INFINITY)\\b(?!\\$)))", + "captures": { + "1": { + "name": "punctuation.accessor.sts" + }, + "2": { + "name": "punctuation.accessor.optional.sts" + }, + "3": { + "name": "support.variable.property.sts" + }, + "4": { + "name": "support.constant.sts" + } + } + }, + { + "match": "(?)\n )) |\n ((async\\s*)?(\n ((<\\s*$)|((<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)?[\\(]\\s*((([\\{\\[]\\s*)?$)|((\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})\\s*((:\\s*\\{?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))|((\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])\\s*((:\\s*\\[?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))))) |\n # sure shot arrow functions even if => is on new line\n(\n (<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)?\n [(]\\s*(\\/\\*([^\\*]|(\\*[^\\/]))*\\*\\/\\s*)*\n (\n ([)]\\s*:) | # ():\n ((\\.\\.\\.\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\s*:) # [(]param: | [(]...param:\n )\n) |\n\n# arrow function possible to detect only with => on same line\n(\n (<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)? # typeparameters\n \\(\\s*(\\/\\*([^\\*]|(\\*[^\\/]))*\\*\\/\\s*)*(([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])|(\\.\\.\\.\\s*[_$[:alpha:]]))([^()\\'\\\"\\`]|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\'([^\\'\\\\]|\\\\.)*\\')|(\\\"([^\\\"\\\\]|\\\\.)*\\\")|(\\`([^\\`\\\\]|\\\\.)*\\`))*)?\\) # parameters\n (\\s*:\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+)? # return type\n \\s*=> # arrow operator\n)\n ))\n))", + "captures": { + "1": { + "name": "punctuation.accessor.sts" + }, + "2": { + "name": "punctuation.accessor.optional.sts" + }, + "3": { + "name": "entity.name.function.sts" + } + } + }, + { + "match": "(?:(\\.)|(\\?\\.(?!\\s*[[:digit:]])))\\s*(\\#?[[:upper:]][_$[:digit:][:upper:]]*)(?![_$[:alnum:]])", + "captures": { + "1": { + "name": "punctuation.accessor.sts" + }, + "2": { + "name": "punctuation.accessor.optional.sts" + }, + "3": { + "name": "variable.other.constant.property.sts" + } + } + }, + { + "match": "(?:(\\.)|(\\?\\.(?!\\s*[[:digit:]])))\\s*(\\#?[_$[:alpha:]][_$[:alnum:]]*)", + "captures": { + "1": { + "name": "punctuation.accessor.sts" + }, + "2": { + "name": "punctuation.accessor.optional.sts" + }, + "3": { + "name": "variable.other.property.sts" + } + } + }, + { + "name": "variable.other.constant.sts", + "match": "([[:upper:]][_$[:digit:][:upper:]]*)(?![_$[:alnum:]])" + }, + { + "name": "variable.other.readwrite.sts", + "match": "[_$[:alpha:]][_$[:alnum:]]*" + } + ] + }, + "object-identifiers": { + "patterns": [ + { + "name": "support.class.sts", + "match": "([_$[:alpha:]][_$[:alnum:]]*)(?=\\s*\\??\\.\\s*prototype\\b(?!\\$))" + }, + { + "match": "(?x)(?:(\\.)|(\\?\\.(?!\\s*[[:digit:]])))\\s*(?:\n (\\#?[[:upper:]][_$[:digit:][:upper:]]*) |\n (\\#?[_$[:alpha:]][_$[:alnum:]]*)\n)(?=\\s*\\??\\.\\s*\\#?[_$[:alpha:]][_$[:alnum:]]*)", + "captures": { + "1": { + "name": "punctuation.accessor.sts" + }, + "2": { + "name": "punctuation.accessor.optional.sts" + }, + "3": { + "name": "variable.other.constant.object.property.sts" + }, + "4": { + "name": "variable.other.object.property.sts" + } + } + }, + { + "match": "(?x)(?:\n ([[:upper:]][_$[:digit:][:upper:]]*) |\n ([_$[:alpha:]][_$[:alnum:]]*)\n)(?=\\s*\\??\\.\\s*\\#?[_$[:alpha:]][_$[:alnum:]]*)", + "captures": { + "1": { + "name": "variable.other.constant.object.sts" + }, + "2": { + "name": "variable.other.object.sts" + } + } + } + ] + }, + "type-annotation": { + "patterns": [ + { + "name": "meta.type.annotation.sts", + "begin": "(:)(?=\\s*\\S)", + "beginCaptures": { + "1": { + "name": "keyword.operator.type.annotation.sts" + } + }, + "end": "(?])|(?=of)|((?<=[\\}>\\]\\)]|[_$[:alpha:]])\\s*(?=\\{)))", + "patterns": [ + { + "include": "#type" + } + ] + }, + { + "name": "meta.type.annotation.sts", + "begin": "(:)", + "beginCaptures": { + "1": { + "name": "keyword.operator.type.annotation.sts" + } + }, + "end": "(?])|(?=^\\s*$)|((?<=\\S)(?=\\s*$))|((?<=[\\}>\\]\\)]|[_$[:alpha:]])\\s*(?=\\{)))", + "patterns": [ + { + "include": "#type" + } + ] + } + ] + }, + "parameter-type-annotation": { + "patterns": [ + { + "name": "meta.type.annotation.sts", + "begin": "(:)", + "beginCaptures": { + "1": { + "name": "keyword.operator.type.annotation.sts" + } + }, + "end": "(?=[,)])|(?==[^>])", + "patterns": [ + { + "include": "#type" + } + ] + } + ] + }, + "return-type": { + "patterns": [ + { + "name": "meta.return.type.sts", + "begin": "(?<=\\))\\s*(:)(?=\\s*\\S)", + "beginCaptures": { + "1": { + "name": "keyword.operator.type.annotation.sts" + } + }, + "end": "(?|\\{|(^\\s*(export|function|class|interface|let|var|const|import|enum|namespace|module|type|abstract|declare)\\s+))", + "patterns": [ + { + "include": "#arrow-return-type-body" + } + ] + }, + "possibly-arrow-return-type": { + "begin": "(?<=\\)|^)\\s*(:)(?=\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*=>)", + "beginCaptures": { + "1": { + "name": "meta.arrow.sts meta.return.type.arrow.sts keyword.operator.type.annotation.sts" + } + }, + "end": "(?==>|\\{|(^\\s*(export|function|class|interface|let|var|const|import|enum|namespace|module|type|abstract|declare)\\s+))", + "contentName": "meta.arrow.sts meta.return.type.arrow.sts", + "patterns": [ + { + "include": "#arrow-return-type-body" + } + ] + }, + "arrow-return-type-body": { + "patterns": [ + { + "begin": "(?<=[:])(?=\\s*\\{)", + "end": "(?<=\\})", + "patterns": [ + { + "include": "#type-object" + } + ] + }, + { + "include": "#type-predicate-operator" + }, + { + "include": "#type" + } + ] + }, + "type-parameters": { + "name": "meta.type.parameters.sts", + "begin": "(<)", + "beginCaptures": { + "1": { + "name": "punctuation.definition.typeparameters.begin.sts" + } + }, + "end": "(>)", + "endCaptures": { + "1": { + "name": "punctuation.definition.typeparameters.end.sts" + } + }, + "patterns": [ + { + "include": "#comment" + }, + { + "name": "storage.modifier.sts", + "match": "(?)" + } + ] + }, + "type-arguments": { + "name": "meta.type.parameters.sts", + "begin": "\\<", + "beginCaptures": { + "0": { + "name": "punctuation.definition.typeparameters.begin.sts" + } + }, + "end": "\\>", + "endCaptures": { + "0": { + "name": "punctuation.definition.typeparameters.end.sts" + } + }, + "patterns": [ + { + "include": "#type-arguments-body" + } + ] + }, + "type-arguments-body": { + "patterns": [ + { + "match": "(?)\n ))\n ))\n)) |\n(:\\s*(?]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)?[\\(]\\s*((([\\{\\[]\\s*)?$)|((\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})\\s*((:\\s*\\{?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*)))|((\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])\\s*((:\\s*\\[?$)|((\\s*([^<>\\(\\)\\{\\}]|\\<([^<>]|\\<([^<>]|\\<[^<>]+\\>)+\\>)+\\>|\\([^\\(\\)]+\\)|\\{[^\\{\\}]+\\})+\\s*)?=\\s*))))))))", + "captures": { + "1": { + "name": "storage.modifier.sts" + }, + "2": { + "name": "keyword.operator.rest.sts" + }, + "3": { + "name": "entity.name.function.sts variable.language.this.sts" + }, + "4": { + "name": "entity.name.function.sts" + }, + "5": { + "name": "keyword.operator.optional.sts" + } + } + }, + { + "match": "(?x)(?:(?)", + "patterns": [ + { + "include": "#comment" + }, + { + "include": "#type-parameters" + } + ] + }, + { + "name": "meta.type.constructor.sts", + "begin": "(?)\n ))\n )\n )\n)", + "end": "(?<=\\))", + "patterns": [ + { + "include": "#function-parameters" + } + ] + } + ] + }, + "type-function-return-type": { + "patterns": [ + { + "name": "meta.type.function.return.sts", + "begin": "(=>)(?=\\s*\\S)", + "beginCaptures": { + "1": { + "name": "storage.type.function.arrow.sts" + } + }, + "end": "(?)(?:\\?]|//|$)", + "patterns": [ + { + "include": "#type-function-return-type-core" + } + ] + }, + { + "name": "meta.type.function.return.sts", + "begin": "=>", + "beginCaptures": { + "0": { + "name": "storage.type.function.arrow.sts" + } + }, + "end": "(?)(?]|//|^\\s*$)|((?<=\\S)(?=\\s*$)))", + "patterns": [ + { + "include": "#type-function-return-type-core" + } + ] + } + ] + }, + "type-function-return-type-core": { + "patterns": [ + { + "include": "#comment" + }, + { + "begin": "(?<==>)(?=\\s*\\{)", + "end": "(?<=\\})", + "patterns": [ + { + "include": "#type-object" + } + ] + }, + { + "include": "#type-predicate-operator" + }, + { + "include": "#type" + } + ] + }, + "type-operators": { + "patterns": [ + { + "include": "#typeof-operator" + }, + { + "include": "#type-infer" + }, + { + "begin": "([&|])(?=\\s*\\{)", + "beginCaptures": { + "0": { + "name": "keyword.operator.type.sts" + } + }, + "end": "(?<=\\})", + "patterns": [ + { + "include": "#type-object" + } + ] + }, + { + "begin": "[&|]", + "beginCaptures": { + "0": { + "name": "keyword.operator.type.sts" + } + }, + "end": "(?=\\S)" + }, + { + "name": "keyword.operator.expression.keyof.sts", + "match": "(?)", + "endCaptures": { + "1": { + "name": "meta.type.parameters.sts punctuation.definition.typeparameters.end.sts" + } + }, + "contentName": "meta.type.parameters.sts", + "patterns": [ + { + "include": "#type-arguments-body" + } + ] + }, + { + "begin": "([_$[:alpha:]][_$[:alnum:]]*)\\s*(<)", + "beginCaptures": { + "1": { + "name": "entity.name.type.sts" + }, + "2": { + "name": "meta.type.parameters.sts punctuation.definition.typeparameters.begin.sts" + } + }, + "end": "(>)", + "endCaptures": { + "1": { + "name": "meta.type.parameters.sts punctuation.definition.typeparameters.end.sts" + } + }, + "contentName": "meta.type.parameters.sts", + "patterns": [ + { + "include": "#type-arguments-body" + } + ] + }, + { + "match": "([_$[:alpha:]][_$[:alnum:]]*)\\s*(?:(\\.)|(\\?\\.(?!\\s*[[:digit:]])))", + "captures": { + "1": { + "name": "entity.name.type.module.sts" + }, + "2": { + "name": "punctuation.accessor.sts" + }, + "3": { + "name": "punctuation.accessor.optional.sts" + } + } + }, + { + "name": "entity.name.type.sts", + "match": "[_$[:alpha:]][_$[:alnum:]]*" + } + ] + }, + "punctuation-comma": { + "name": "punctuation.separator.comma.sts", + "match": "," + }, + "punctuation-semicolon": { + "name": "punctuation.terminator.statement.sts", + "match": ";" + }, + "punctuation-accessor": { + "match": "(?:(\\.)|(\\?\\.(?!\\s*[[:digit:]])))", + "captures": { + "1": { + "name": "punctuation.accessor.sts" + }, + "2": { + "name": "punctuation.accessor.optional.sts" + } + } + }, + "string": { + "patterns": [ + { + "include": "#qstring-single" + }, + { + "include": "#qstring-double" + }, + { + "include": "#template" + } + ] + }, + "qstring-double": { + "name": "string.quoted.double.sts", + "begin": "\"", + "beginCaptures": { + "0": { + "name": "punctuation.definition.string.begin.sts" + } + }, + "end": "(\")|((?:[^\\\\\\n])$)", + "endCaptures": { + "1": { + "name": "punctuation.definition.string.end.sts" + }, + "2": { + "name": "invalid.illegal.newline.sts" + } + }, + "patterns": [ + { + "include": "#string-character-escape" + } + ] + }, + "qstring-single": { + "name": "string.quoted.single.sts", + "begin": "'", + "beginCaptures": { + "0": { + "name": "punctuation.definition.string.begin.sts" + } + }, + "end": "(\\')|((?:[^\\\\\\n])$)", + "endCaptures": { + "1": { + "name": "punctuation.definition.string.end.sts" + }, + "2": { + "name": "invalid.illegal.newline.sts" + } + }, + "patterns": [ + { + "include": "#string-character-escape" + } + ] + }, + "string-character-escape": { + "name": "constant.character.escape.sts", + "match": "\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|u\\{[0-9A-Fa-f]+\\}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$)" + }, + "template": { + "patterns": [ + { + "include": "#template-call" + }, + { + "name": "string.template.sts", + "begin": "([_$[:alpha:]][_$[:alnum:]]*)?(`)", + "beginCaptures": { + "1": { + "name": "entity.name.function.tagged-template.sts" + }, + "2": { + "name": "punctuation.definition.string.template.begin.sts" + } + }, + "end": "`", + "endCaptures": { + "0": { + "name": "punctuation.definition.string.template.end.sts" + } + }, + "patterns": [ + { + "include": "#template-substitution-element" + }, + { + "include": "#string-character-escape" + } + ] + } + ] + }, + "template-call": { + "patterns": [ + { + "name": "string.template.sts", + "begin": "(?=(([_$[:alpha:]][_$[:alnum:]]*\\s*\\??\\.\\s*)*|(\\??\\.\\s*)?)([_$[:alpha:]][_$[:alnum:]]*)(<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])|(\\'([^\\'\\\\]|\\\\.)*\\')|(\\\"([^\\\"\\\\]|\\\\.)*\\\")|(\\`([^\\`\\\\]|\\\\.)*\\`))(?=\\s*([\\<\\>\\,\\.\\[]|=>|&(?!&)|\\|(?!\\|)))))([^<>\\(]|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(?<==)\\>|\\<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])|(\\'([^\\'\\\\]|\\\\.)*\\')|(\\\"([^\\\"\\\\]|\\\\.)*\\\")|(\\`([^\\`\\\\]|\\\\.)*\\`))(?=\\s*([\\<\\>\\,\\.\\[]|=>|&(?!&)|\\|(?!\\|)))))(([^<>\\(]|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(?<==)\\>|\\<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])|(\\'([^\\'\\\\]|\\\\.)*\\')|(\\\"([^\\\"\\\\]|\\\\.)*\\\")|(\\`([^\\`\\\\]|\\\\.)*\\`))(?=\\s*([\\<\\>\\,\\.\\[]|=>|&(?!&)|\\|(?!\\|)))))([^<>\\(]|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(?<==)\\>)*(?))*(?)*(?\\s*)?`)", + "end": "(?=`)", + "patterns": [ + { + "begin": "(?=(([_$[:alpha:]][_$[:alnum:]]*\\s*\\??\\.\\s*)*|(\\??\\.\\s*)?)([_$[:alpha:]][_$[:alnum:]]*))", + "end": "(?=(<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])|(\\'([^\\'\\\\]|\\\\.)*\\')|(\\\"([^\\\"\\\\]|\\\\.)*\\\")|(\\`([^\\`\\\\]|\\\\.)*\\`))(?=\\s*([\\<\\>\\,\\.\\[]|=>|&(?!&)|\\|(?!\\|)))))([^<>\\(]|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(?<==)\\>|\\<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])|(\\'([^\\'\\\\]|\\\\.)*\\')|(\\\"([^\\\"\\\\]|\\\\.)*\\\")|(\\`([^\\`\\\\]|\\\\.)*\\`))(?=\\s*([\\<\\>\\,\\.\\[]|=>|&(?!&)|\\|(?!\\|)))))(([^<>\\(]|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(?<==)\\>|\\<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])|(\\'([^\\'\\\\]|\\\\.)*\\')|(\\\"([^\\\"\\\\]|\\\\.)*\\\")|(\\`([^\\`\\\\]|\\\\.)*\\`))(?=\\s*([\\<\\>\\,\\.\\[]|=>|&(?!&)|\\|(?!\\|)))))([^<>\\(]|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(?<==)\\>)*(?))*(?)*(?\\s*)?`)", + "patterns": [ + { + "include": "#support-function-call-identifiers" + }, + { + "name": "entity.name.function.tagged-template.sts", + "match": "([_$[:alpha:]][_$[:alnum:]]*)" + } + ] + }, + { + "include": "#type-arguments" + } + ] + }, + { + "name": "string.template.sts", + "begin": "([_$[:alpha:]][_$[:alnum:]]*)?\\s*(?=(<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])|(\\'([^\\'\\\\]|\\\\.)*\\')|(\\\"([^\\\"\\\\]|\\\\.)*\\\")|(\\`([^\\`\\\\]|\\\\.)*\\`))(?=\\s*([\\<\\>\\,\\.\\[]|=>|&(?!&)|\\|(?!\\|)))))([^<>\\(]|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(?<==)\\>|\\<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])|(\\'([^\\'\\\\]|\\\\.)*\\')|(\\\"([^\\\"\\\\]|\\\\.)*\\\")|(\\`([^\\`\\\\]|\\\\.)*\\`))(?=\\s*([\\<\\>\\,\\.\\[]|=>|&(?!&)|\\|(?!\\|)))))(([^<>\\(]|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(?<==)\\>|\\<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\])|(\\'([^\\'\\\\]|\\\\.)*\\')|(\\\"([^\\\"\\\\]|\\\\.)*\\\")|(\\`([^\\`\\\\]|\\\\.)*\\`))(?=\\s*([\\<\\>\\,\\.\\[]|=>|&(?!&)|\\|(?!\\|)))))([^<>\\(]|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(?<==)\\>)*(?))*(?)*(?\\s*)`)", + "beginCaptures": { + "1": { + "name": "entity.name.function.tagged-template.sts" + } + }, + "end": "(?=`)", + "patterns": [ + { + "include": "#type-arguments" + } + ] + } + ] + }, + "template-substitution-element": { + "name": "meta.template.expression.sts", + "begin": "\\$\\{", + "beginCaptures": { + "0": { + "name": "punctuation.definition.template-expression.begin.sts" + } + }, + "end": "\\}", + "endCaptures": { + "0": { + "name": "punctuation.definition.template-expression.end.sts" + } + }, + "patterns": [ + { + "include": "#expression" + } + ], + "contentName": "meta.embedded.line.sts" + }, + "type-string": { + "patterns": [ + { + "include": "#qstring-single" + }, + { + "include": "#qstring-double" + }, + { + "include": "#template-type" + } + ] + }, + "template-type": { + "patterns": [ + { + "include": "#template-call" + }, + { + "name": "string.template.sts", + "begin": "([_$[:alpha:]][_$[:alnum:]]*)?(`)", + "beginCaptures": { + "1": { + "name": "entity.name.function.tagged-template.sts" + }, + "2": { + "name": "punctuation.definition.string.template.begin.sts" + } + }, + "end": "`", + "endCaptures": { + "0": { + "name": "punctuation.definition.string.template.end.sts" + } + }, + "patterns": [ + { + "include": "#template-type-substitution-element" + }, + { + "include": "#string-character-escape" + } + ] + } + ] + }, + "template-type-substitution-element": { + "name": "meta.template.expression.sts", + "begin": "\\$\\{", + "beginCaptures": { + "0": { + "name": "punctuation.definition.template-expression.begin.sts" + } + }, + "end": "\\}", + "endCaptures": { + "0": { + "name": "punctuation.definition.template-expression.end.sts" + } + }, + "patterns": [ + { + "include": "#type" + } + ], + "contentName": "meta.embedded.line.sts" + }, + "regex": { + "patterns": [ + { + "name": "string.regexp.sts", + "begin": "(?|&&|\\|\\||\\*\\/)\\s*(\\/)(?![\\/*])(?=(?:[^\\/\\\\\\[\\()]|\\\\.|\\[([^\\]\\\\]|\\\\.)+\\]|\\(([^\\)\\\\]|\\\\.)+\\))+\\/([dgimsuy]+|(?![\\/\\*])|(?=\\/\\*))(?!\\s*[a-zA-Z0-9_$]))", + "beginCaptures": { + "1": { + "name": "punctuation.definition.string.begin.sts" + } + }, + "end": "(/)([dgimsuy]*)", + "endCaptures": { + "1": { + "name": "punctuation.definition.string.end.sts" + }, + "2": { + "name": "keyword.other.sts" + } + }, + "patterns": [ + { + "include": "#regexp" + } + ] + }, + { + "name": "string.regexp.sts", + "begin": "((?", + "captures": { + "0": { + "name": "keyword.other.back-reference.regexp" + }, + "1": { + "name": "variable.other.regexp" + } + } + }, + { + "name": "keyword.operator.quantifier.regexp", + "match": "[?+*]|\\{(\\d+,\\d+|\\d+,|,\\d+|\\d+)\\}\\??" + }, + { + "name": "keyword.operator.or.regexp", + "match": "\\|" + }, + { + "name": "meta.group.assertion.regexp", + "begin": "(\\()((\\?=)|(\\?!)|(\\?<=)|(\\?))?", + "beginCaptures": { + "0": { + "name": "punctuation.definition.group.regexp" + }, + "1": { + "name": "punctuation.definition.group.no-capture.regexp" + }, + "2": { + "name": "variable.other.regexp" + } + }, + "end": "\\)", + "endCaptures": { + "0": { + "name": "punctuation.definition.group.regexp" + } + }, + "patterns": [ + { + "include": "#regexp" + } + ] + }, + { + "name": "constant.other.character-class.set.regexp", + "begin": "(\\[)(\\^)?", + "beginCaptures": { + "1": { + "name": "punctuation.definition.character-class.regexp" + }, + "2": { + "name": "keyword.operator.negation.regexp" + } + }, + "end": "(\\])", + "endCaptures": { + "1": { + "name": "punctuation.definition.character-class.regexp" + } + }, + "patterns": [ + { + "name": "constant.other.character-class.range.regexp", + "match": "(?:.|(\\\\(?:[0-7]{3}|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}))|(\\\\c[A-Z])|(\\\\.))\\-(?:[^\\]\\\\]|(\\\\(?:[0-7]{3}|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}))|(\\\\c[A-Z])|(\\\\.))", + "captures": { + "1": { + "name": "constant.character.numeric.regexp" + }, + "2": { + "name": "constant.character.control.regexp" + }, + "3": { + "name": "constant.character.escape.backslash.regexp" + }, + "4": { + "name": "constant.character.numeric.regexp" + }, + "5": { + "name": "constant.character.control.regexp" + }, + "6": { + "name": "constant.character.escape.backslash.regexp" + } + } + }, + { + "include": "#regex-character-class" + } + ] + }, + { + "include": "#regex-character-class" + } + ] + }, + "regex-character-class": { + "patterns": [ + { + "name": "constant.other.character-class.regexp", + "match": "\\\\[wWsSdDtrnvf]|\\." + }, + { + "name": "constant.character.numeric.regexp", + "match": "\\\\([0-7]{3}|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4})" + }, + { + "name": "constant.character.control.regexp", + "match": "\\\\c[A-Z]" + }, + { + "name": "constant.character.escape.backslash.regexp", + "match": "\\\\." + } + ] + }, + "comment": { + "patterns": [ + { + "name": "comment.block.documentation.sts", + "begin": "/\\*\\*(?!/)", + "beginCaptures": { + "0": { + "name": "punctuation.definition.comment.sts" + } + }, + "end": "\\*/", + "endCaptures": { + "0": { + "name": "punctuation.definition.comment.sts" + } + }, + "patterns": [ + { + "include": "#docblock" + } + ] + }, + { + "include": "#comment-block" + }, + { + "begin": "(^[ \\t]+)?((//)(?:\\s*((@)internal)(?=\\s|$))?)", + "beginCaptures": { + "1": { + "name": "punctuation.whitespace.comment.leading.sts" + }, + "2": { + "name": "comment.line.double-slash.sts" + }, + "3": { + "name": "punctuation.definition.comment.sts" + }, + "4": { + "name": "storage.type.internaldeclaration.sts" + }, + "5": { + "name": "punctuation.decorator.internaldeclaration.sts" + } + }, + "end": "(?=$)", + "contentName": "comment.line.double-slash.sts" + } + ] + }, + "comment-block":{ + "name": "comment.block.sts", + "begin": "(/\\*)(?:\\s*((@)internal)(?=\\s|(\\*/)))?", + "beginCaptures": { + "1": { + "name": "punctuation.definition.comment.sts" + }, + "2": { + "name": "storage.type.internaldeclaration.sts" + }, + "3": { + "name": "punctuation.decorator.internaldeclaration.sts" + } + }, + "end": "\\*/", + "endCaptures": { + "0": { + "name": "punctuation.definition.comment.sts" + } + }, + "patterns": [ + { + "include": "#comment-block" + } + ] + }, + "single-line-comment-consuming-line-ending": { + "begin": "(^[ \\t]+)?((//)(?:\\s*((@)internal)(?=\\s|$))?)", + "beginCaptures": { + "1": { + "name": "punctuation.whitespace.comment.leading.sts" + }, + "2": { + "name": "comment.line.double-slash.sts" + }, + "3": { + "name": "punctuation.definition.comment.sts" + }, + "4": { + "name": "storage.type.internaldeclaration.sts" + }, + "5": { + "name": "punctuation.decorator.internaldeclaration.sts" + } + }, + "end": "(?=^)", + "contentName": "comment.line.double-slash.sts" + }, + "directives": { + "name": "comment.line.triple-slash.directive.sts", + "begin": "^(///)\\s*(?=<(reference|amd-dependency|amd-module)(\\s+(path|types|no-default-lib|lib|name|resolution-mode)\\s*=\\s*((\\'([^\\'\\\\]|\\\\.)*\\')|(\\\"([^\\\"\\\\]|\\\\.)*\\\")|(\\`([^\\`\\\\]|\\\\.)*\\`)))+\\s*/>\\s*$)", + "beginCaptures": { + "1": { + "name": "punctuation.definition.comment.sts" + } + }, + "end": "(?=$)", + "patterns": [ + { + "name": "meta.tag.sts", + "begin": "(<)(reference|amd-dependency|amd-module)", + "beginCaptures": { + "1": { + "name": "punctuation.definition.tag.directive.sts" + }, + "2": { + "name": "entity.name.tag.directive.sts" + } + }, + "end": "/>", + "endCaptures": { + "0": { + "name": "punctuation.definition.tag.directive.sts" + } + }, + "patterns": [ + { + "name": "entity.other.attribute-name.directive.sts", + "match": "path|types|no-default-lib|lib|name|resolution-mode" + }, + { + "name": "keyword.operator.assignment.sts", + "match": "=" + }, + { + "include": "#string" + } + ] + } + ] + }, + "docblock": { + "patterns": [ + { + "match": "(?x)\n((@)(?:access|api))\n\\s+\n(private|protected|public)\n\\b", + "captures": { + "1": { + "name": "storage.type.class.jsdoc" + }, + "2": { + "name": "punctuation.definition.block.tag.jsdoc" + }, + "3": { + "name": "constant.language.access-type.jsdoc" + } + } + }, + { + "match": "(?x)\n((@)author)\n\\s+\n(\n [^@\\s<>*/]\n (?:[^@<>*/]|\\*[^/])*\n)\n(?:\n \\s*\n (<)\n ([^>\\s]+)\n (>)\n)?", + "captures": { + "1": { + "name": "storage.type.class.jsdoc" + }, + "2": { + "name": "punctuation.definition.block.tag.jsdoc" + }, + "3": { + "name": "entity.name.type.instance.jsdoc" + }, + "4": { + "name": "punctuation.definition.bracket.angle.begin.jsdoc" + }, + "5": { + "name": "constant.other.email.link.underline.jsdoc" + }, + "6": { + "name": "punctuation.definition.bracket.angle.end.jsdoc" + } + } + }, + { + "match": "(?x)\n((@)borrows) \\s+\n((?:[^@\\s*/]|\\*[^/])+) # \n\\s+ (as) \\s+ # as\n((?:[^@\\s*/]|\\*[^/])+) # ", + "captures": { + "1": { + "name": "storage.type.class.jsdoc" + }, + "2": { + "name": "punctuation.definition.block.tag.jsdoc" + }, + "3": { + "name": "entity.name.type.instance.jsdoc" + }, + "4": { + "name": "keyword.operator.control.jsdoc" + }, + "5": { + "name": "entity.name.type.instance.jsdoc" + } + } + }, + { + "name": "meta.example.jsdoc", + "begin": "((@)example)\\s+", + "end": "(?=@|\\*/)", + "beginCaptures": { + "1": { + "name": "storage.type.class.jsdoc" + }, + "2": { + "name": "punctuation.definition.block.tag.jsdoc" + } + }, + "patterns": [ + { + "match": "^\\s\\*\\s+" + }, + { + "contentName": "constant.other.description.jsdoc", + "begin": "\\G(<)caption(>)", + "beginCaptures": { + "0": { + "name": "entity.name.tag.inline.jsdoc" + }, + "1": { + "name": "punctuation.definition.bracket.angle.begin.jsdoc" + }, + "2": { + "name": "punctuation.definition.bracket.angle.end.jsdoc" + } + }, + "end": "()|(?=\\*/)", + "endCaptures": { + "0": { + "name": "entity.name.tag.inline.jsdoc" + }, + "1": { + "name": "punctuation.definition.bracket.angle.begin.jsdoc" + }, + "2": { + "name": "punctuation.definition.bracket.angle.end.jsdoc" + } + } + }, + { + "match": "[^\\s@*](?:[^*]|\\*[^/])*", + "captures": { + "0": { + "name": "source.embedded.sts" + } + } + } + ] + }, + { + "match": "(?x) ((@)kind) \\s+ (class|constant|event|external|file|function|member|mixin|module|namespace|typedef) \\b", + "captures": { + "1": { + "name": "storage.type.class.jsdoc" + }, + "2": { + "name": "punctuation.definition.block.tag.jsdoc" + }, + "3": { + "name": "constant.language.symbol-type.jsdoc" + } + } + }, + { + "match": "(?x)\n((@)see)\n\\s+\n(?:\n # URL\n (\n (?=https?://)\n (?:[^\\s*]|\\*[^/])+\n )\n |\n # JSDoc namepath\n (\n (?!\n # Avoid matching bare URIs (also acceptable as links)\n https?://\n |\n # Avoid matching {@inline tags}; we match those below\n (?:\\[[^\\[\\]]*\\])? # Possible description [preceding]{@tag}\n {@(?:link|linkcode|linkplain|tutorial)\\b\n )\n # Matched namepath\n (?:[^@\\s*/]|\\*[^/])+\n )\n)", + "captures": { + "1": { + "name": "storage.type.class.jsdoc" + }, + "2": { + "name": "punctuation.definition.block.tag.jsdoc" + }, + "3": { + "name": "variable.other.link.underline.jsdoc" + }, + "4": { + "name": "entity.name.type.instance.jsdoc" + } + } + }, + { + "match": "(?x)\n((@)template)\n\\s+\n# One or more valid identifiers\n(\n [A-Za-z_$] # First character: non-numeric word character\n [\\w$.\\[\\]]* # Rest of identifier\n (?: # Possible list of additional identifiers\n \\s* , \\s*\n [A-Za-z_$]\n [\\w$.\\[\\]]*\n )*\n)", + "captures": { + "1": { + "name": "storage.type.class.jsdoc" + }, + "2": { + "name": "punctuation.definition.block.tag.jsdoc" + }, + "3": { + "name": "variable.other.jsdoc" + } + } + }, + { + "begin": "(?x)((@)template)\\s+(?={)", + "beginCaptures": { + "1": { + "name": "storage.type.class.jsdoc" + }, + "2": { + "name": "punctuation.definition.block.tag.jsdoc" + } + }, + "end": "(?=\\s|\\*/|[^{}\\[\\]A-Za-z_$])", + "patterns": [ + { + "include": "#jsdoctype" + }, + { + "name": "variable.other.jsdoc", + "match": "([A-Za-z_$][\\w$.\\[\\]]*)" + } + ] + }, + { + "match": "(?x)\n(\n (@)\n (?:arg|argument|const|constant|member|namespace|param|var)\n)\n\\s+\n(\n [A-Za-z_$]\n [\\w$.\\[\\]]*\n)", + "captures": { + "1": { + "name": "storage.type.class.jsdoc" + }, + "2": { + "name": "punctuation.definition.block.tag.jsdoc" + }, + "3": { + "name": "variable.other.jsdoc" + } + } + }, + { + "begin": "((@)typedef)\\s+(?={)", + "beginCaptures": { + "1": { + "name": "storage.type.class.jsdoc" + }, + "2": { + "name": "punctuation.definition.block.tag.jsdoc" + } + }, + "end": "(?=\\s|\\*/|[^{}\\[\\]A-Za-z_$])", + "patterns": [ + { + "include": "#jsdoctype" + }, + { + "name": "entity.name.type.instance.jsdoc", + "match": "(?:[^@\\s*/]|\\*[^/])+" + } + ] + }, + { + "begin": "((@)(?:arg|argument|const|constant|member|namespace|param|prop|property|var))\\s+(?={)", + "beginCaptures": { + "1": { + "name": "storage.type.class.jsdoc" + }, + "2": { + "name": "punctuation.definition.block.tag.jsdoc" + } + }, + "end": "(?=\\s|\\*/|[^{}\\[\\]A-Za-z_$])", + "patterns": [ + { + "include": "#jsdoctype" + }, + { + "name": "variable.other.jsdoc", + "match": "([A-Za-z_$][\\w$.\\[\\]]*)" + }, + { + "name": "variable.other.jsdoc", + "match": "(?x)\n(\\[)\\s*\n[\\w$]+\n(?:\n (?:\\[\\])? # Foo[ ].bar properties within an array\n \\. # Foo.Bar namespaced parameter\n [\\w$]+\n)*\n(?:\n \\s*\n (=) # [foo=bar] Default parameter value\n \\s*\n (\n # The inner regexes are to stop the match early at */ and to not stop at escaped quotes\n (?>\n \"(?:(?:\\*(?!/))|(?:\\\\(?!\"))|[^*\\\\])*?\" | # [foo=\"bar\"] Double-quoted\n '(?:(?:\\*(?!/))|(?:\\\\(?!'))|[^*\\\\])*?' | # [foo='bar'] Single-quoted\n \\[ (?:(?:\\*(?!/))|[^*])*? \\] | # [foo=[1,2]] Array literal\n (?:(?:\\*(?!/))|\\s(?!\\s*\\])|\\[.*?(?:\\]|(?=\\*/))|[^*\\s\\[\\]])* # Everything else\n )*\n )\n)?\n\\s*(?:(\\])((?:[^*\\s]|\\*[^\\s/])+)?|(?=\\*/))", + "captures": { + "1": { + "name": "punctuation.definition.optional-value.begin.bracket.square.jsdoc" + }, + "2": { + "name": "keyword.operator.assignment.jsdoc" + }, + "3": { + "name": "source.embedded.sts" + }, + "4": { + "name": "punctuation.definition.optional-value.end.bracket.square.jsdoc" + }, + "5": { + "name": "invalid.illegal.syntax.jsdoc" + } + } + } + ] + }, + { + "begin": "(?x)\n(\n (@)\n (?:define|enum|exception|export|extends|lends|implements|modifies\n |namespace|private|protected|returns?|suppress|this|throws|type\n |yields?)\n)\n\\s+(?={)", + "beginCaptures": { + "1": { + "name": "storage.type.class.jsdoc" + }, + "2": { + "name": "punctuation.definition.block.tag.jsdoc" + } + }, + "end": "(?=\\s|\\*/|[^{}\\[\\]A-Za-z_$])", + "patterns": [ + { + "include": "#jsdoctype" + } + ] + }, + { + "match": "(?x)\n(\n (@)\n (?:alias|augments|callback|constructs|emits|event|fires|exports?\n |extends|external|function|func|host|lends|listens|interface|memberof!?\n |method|module|mixes|mixin|name|requires|see|this|typedef|uses)\n)\n\\s+\n(\n (?:\n [^{}@\\s*] | \\*[^/]\n )+\n)", + "captures": { + "1": { + "name": "storage.type.class.jsdoc" + }, + "2": { + "name": "punctuation.definition.block.tag.jsdoc" + }, + "3": { + "name": "entity.name.type.instance.jsdoc" + } + } + }, + { + "contentName": "variable.other.jsdoc", + "begin": "((@)(?:default(?:value)?|license|version))\\s+(([''\"]))", + "beginCaptures": { + "1": { + "name": "storage.type.class.jsdoc" + }, + "2": { + "name": "punctuation.definition.block.tag.jsdoc" + }, + "3": { + "name": "variable.other.jsdoc" + }, + "4": { + "name": "punctuation.definition.string.begin.jsdoc" + } + }, + "end": "(\\3)|(?=$|\\*/)", + "endCaptures": { + "0": { + "name": "variable.other.jsdoc" + }, + "1": { + "name": "punctuation.definition.string.end.jsdoc" + } + } + }, + { + "match": "((@)(?:default(?:value)?|license|tutorial|variation|version))\\s+([^\\s*]+)", + "captures": { + "1": { + "name": "storage.type.class.jsdoc" + }, + "2": { + "name": "punctuation.definition.block.tag.jsdoc" + }, + "3": { + "name": "variable.other.jsdoc" + } + } + }, + { + "name": "storage.type.class.jsdoc", + "match": "(?x) (@) (?:abstract|access|alias|api|arg|argument|async|attribute|augments|author|beta|borrows|bubbles |callback|chainable|class|classdesc|code|config|const|constant|constructor|constructs|copyright |default|defaultvalue|define|deprecated|desc|description|dict|emits|enum|event|example|exception |exports?|extends|extension(?:_?for)?|external|externs|file|fileoverview|final|fires|for|func |function|generator|global|hideconstructor|host|ignore|implements|implicitCast|inherit[Dd]oc |inner|instance|interface|internal|kind|lends|license|listens|main|member|memberof!?|method |mixes|mixins?|modifies|module|name|namespace|noalias|nocollapse|nocompile|nosideeffects |override|overview|package|param|polymer(?:Behavior)?|preserve|private|prop|property|protected |public|read[Oo]nly|record|require[ds]|returns?|see|since|static|struct|submodule|summary |suppress|template|this|throws|todo|tutorial|type|typedef|unrestricted|uses|var|variation |version|virtual|writeOnce|yields?) \\b", + "captures": { + "1": { + "name": "punctuation.definition.block.tag.jsdoc" + } + } + }, + { + "include": "#inline-tags" + }, + { + "match": "((@)(?:[_$[:alpha:]][_$[:alnum:]]*))(?=\\s+)", + "captures": { + "1": { + "name": "storage.type.class.jsdoc" + }, + "2": { + "name": "punctuation.definition.block.tag.jsdoc" + } + } + } + ] + }, + "brackets": { + "patterns": [ + { + "begin": "{", + "end": "}|(?=\\*/)", + "patterns": [ + { + "include": "#brackets" + } + ] + }, + { + "begin": "\\[", + "end": "\\]|(?=\\*/)", + "patterns": [ + { + "include": "#brackets" + } + ] + } + ] + }, + "inline-tags": { + "patterns": [ + { + "name": "constant.other.description.jsdoc", + "match": "(\\[)[^\\]]+(\\])(?={@(?:link|linkcode|linkplain|tutorial))", + "captures": { + "1": { + "name": "punctuation.definition.bracket.square.begin.jsdoc" + }, + "2": { + "name": "punctuation.definition.bracket.square.end.jsdoc" + } + } + }, + { + "name": "entity.name.type.instance.jsdoc", + "begin": "({)((@)(?:link(?:code|plain)?|tutorial))\\s*", + "beginCaptures": { + "1": { + "name": "punctuation.definition.bracket.curly.begin.jsdoc" + }, + "2": { + "name": "storage.type.class.jsdoc" + }, + "3": { + "name": "punctuation.definition.inline.tag.jsdoc" + } + }, + "end": "}|(?=\\*/)", + "endCaptures": { + "0": { + "name": "punctuation.definition.bracket.curly.end.jsdoc" + } + }, + "patterns": [ + { + "match": "\\G((?=https?://)(?:[^|}\\s*]|\\*[/])+)(\\|)?", + "captures": { + "1": { + "name": "variable.other.link.underline.jsdoc" + }, + "2": { + "name": "punctuation.separator.pipe.jsdoc" + } + } + }, + { + "match": "\\G((?:[^{}@\\s|*]|\\*[^/])+)(\\|)?", + "captures": { + "1": { + "name": "variable.other.description.jsdoc" + }, + "2": { + "name": "punctuation.separator.pipe.jsdoc" + } + } + } + ] + } + ] + }, + "jsdoctype": { + "patterns": [ + { + "contentName": "entity.name.type.instance.jsdoc", + "begin": "\\G({)", + "beginCaptures": { + "0": { + "name": "entity.name.type.instance.jsdoc" + }, + "1": { + "name": "punctuation.definition.bracket.curly.begin.jsdoc" + } + }, + "end": "((}))\\s*|(?=\\*/)", + "endCaptures": { + "1": { + "name": "entity.name.type.instance.jsdoc" + }, + "2": { + "name": "punctuation.definition.bracket.curly.end.jsdoc" + } + }, + "patterns": [ + { + "include": "#brackets" + } + ] + } + ] + }, + "storage-modifiers": { + "match": "\\b(public|private|protected|const|static|final|native|synchronized|abstract|threadsafe|transient|volatile|default|strictfp|sealed|non-sealed)\\b", + "name": "storage.modifier.sts" + } + } +} \ No newline at end of file -- Gitee