diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..de4d1f007dd195ea685034cbda7209013105044b --- /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 0000000000000000000000000000000000000000..f4d88be8e16537ad8a29898d95adecd874ae1920 --- /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 0000000000000000000000000000000000000000..645727ac89ce5f26564626c4fdc9d8b55d9a50ab --- /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 0000000000000000000000000000000000000000..bc3a0196f8342fe7350fa09779328edb45d226ec --- /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 0000000000000000000000000000000000000000..9a27fcd8dc65c19e5166c0111c04cf39b116f3a4 --- /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 0000000000000000000000000000000000000000..ad074fc528f5bc6fbb478429ca1000fe28355cd2 --- /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 0000000000000000000000000000000000000000..7f8ab902a4e77763c62aed365fcdc514a3be9a15 --- /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 0000000000000000000000000000000000000000..d16074e5282d65a463e8cd2b3ee387ab8f1482dc --- /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 0000000000000000000000000000000000000000..a31d9e7718b215614675ee652d35a1a9b5005585 --- /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 0000000000000000000000000000000000000000..1e43f73ccfa3b94515ceb7a95758143be4d30bc5 --- /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 0000000000000000000000000000000000000000..bf8756a90c94d3279a583b91ef303e24f9696476 --- /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 0000000000000000000000000000000000000000..0b8efdbd5374d1ef5543f0a952976296f1bddd09 --- /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 0000000000000000000000000000000000000000..f817240ff306bd19101bf9b8a58c595305304d60 --- /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 0000000000000000000000000000000000000000..f669b675a65f13c44e29df8f52ef16b5f784b0b0 --- /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 0000000000000000000000000000000000000000..952c0d28178b5251e50e7acfd77fcebdbad6aae0 --- /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 0000000000000000000000000000000000000000..fd13a17c58486855b82cf48341ce0fc2a8380d24 --- /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 0000000000000000000000000000000000000000..732c9fb0dad8c8d224d63592d9ac609e52472d3d --- /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 0000000000000000000000000000000000000000..46002c0be6bd8ecd918e7233dfa131ff4be8a8f3 --- /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 0000000000000000000000000000000000000000..ff86ceac7432c904e32c7cb1ccb8d7f2d3180cdb --- /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 0000000000000000000000000000000000000000..15b744295b6b13a63ed915dabad1eed4a3b33fca --- /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 0000000000000000000000000000000000000000..fdd25f292899300625f6917200218ef1f2177822 --- /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 0000000000000000000000000000000000000000..0deb8a2e35ffaa610a4c4752fb66e55e763884c5 --- /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 0000000000000000000000000000000000000000..c21679f02e6d243803ce4bd3cfbe6e1119b6134f --- /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 0000000000000000000000000000000000000000..1e4912f6992d55eb71dea87fe550b6b0a286e0e7 --- /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 0000000000000000000000000000000000000000..78255097a054b22e5d5988fb41e0e735efd286fa --- /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 0000000000000000000000000000000000000000..eb9c65929b3061671b48a73bcbd52bd43003442a --- /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 0000000000000000000000000000000000000000..1b5b6bf47e1d55f95b3c03ef8c76e0da04139c0e --- /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 0000000000000000000000000000000000000000..b1411c93137b36ff11838e909b7ad07b911c8b01 --- /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 0000000000000000000000000000000000000000..fb8795b2b4843e1ccdab7319dd7a877d3a58ba31 --- /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 0000000000000000000000000000000000000000..f602fc429b50fe540f304ce3ca348c128778efd4 --- /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 0000000000000000000000000000000000000000..a302481a41e40b560cef7757fd7f99cecf0f6d2d --- /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 0000000000000000000000000000000000000000..e4a1c51f1f88ec19ed3336636b8427f05d5816b3 --- /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 0000000000000000000000000000000000000000..75e778d2e903e77d9722302756e4cfdd395a5687 --- /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 0000000000000000000000000000000000000000..04d6d34854577ba16274e04c0ad9bfbce2b94e85 --- /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 0000000000000000000000000000000000000000..0eb385088f53e67a58ba9bc50d68dfb4a7db3c42 --- /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 0000000000000000000000000000000000000000..1f8170fb420175f819c9b10e2da5dc20b14493b3 --- /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 0000000000000000000000000000000000000000..0f2e90714874a564531ce39a7fcd814fc72cb682 --- /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 0000000000000000000000000000000000000000..c112c824f27e2801f3ba88d74acc88e26e72c672 --- /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 0000000000000000000000000000000000000000..5ef3b7e4443ceba1e63d4c5de8e6ebe9cbf09427 --- /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 0000000000000000000000000000000000000000..365fd84e699f598b6d0fff32d2113e6f2731b3ba --- /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 0000000000000000000000000000000000000000..381cd40e62ec810f65e751237be19e4f3bdddc7a --- /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 0000000000000000000000000000000000000000..a18ac5f0e7933125d694ca727a407721d8475a44 --- /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 0000000000000000000000000000000000000000..924ad2d9fe42e74a9f628f6dc4050d673621e70e --- /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 0000000000000000000000000000000000000000..3309fadbeec4ae54402d750a7e36e0bb650de127 --- /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 0000000000000000000000000000000000000000..6aee79b0bb03aed1dd73ec413e8c0f39f98dc366 --- /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 0000000000000000000000000000000000000000..841fb651dc5476dcb254a98d144adf36c22d2347 --- /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 0000000000000000000000000000000000000000..a9bb5301ae0359a9f1eac2ac82da86eb3c15791f --- /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 0000000000000000000000000000000000000000..d0033a75b39975bf28c3554ed05792520d6a3b02 --- /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 0000000000000000000000000000000000000000..31ad1855c8fbdaa9fb643910284851dfddc414b5 --- /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 0000000000000000000000000000000000000000..797fe9419fe73b9e5197c30a58561aa2c30ad30d --- /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 0000000000000000000000000000000000000000..7cc98558bfa5254944ac48f0fe3c81eea6734718 --- /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 0000000000000000000000000000000000000000..7671b5eb4c16aa7c28cee2c61aef466bfd9891f1 --- /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 0000000000000000000000000000000000000000..7ec5234f9b5836cfe492f104d912ee2458bedb6d --- /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 0000000000000000000000000000000000000000..8d4150b822727d93b8111ae2122004154b5931ea --- /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 0000000000000000000000000000000000000000..7368720b79681781f9ada4fb1dc1a1fa05c1dd1a --- /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 0000000000000000000000000000000000000000..eb737f7f194f7f03715e3cdee5a2a3393e36ed1d --- /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 0000000000000000000000000000000000000000..51fcfac0a39d4562e5415f744477c122e9241156 --- /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 0000000000000000000000000000000000000000..20e1dbe08c2dfac525e3fdfc29f200d919e2588c --- /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 0000000000000000000000000000000000000000..d568c6fffcd4bcd570edb22682213cd20ab242e3 --- /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 0000000000000000000000000000000000000000..df8e4140a3cd1679012df2601f485aa2b61bb787 --- /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 0000000000000000000000000000000000000000..bd9d0f21749120888e642c11c29d2d4db3727aad --- /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 0000000000000000000000000000000000000000..13c8f3d7f4243fae470e00802f8f1e3c32f6bf30 --- /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 0000000000000000000000000000000000000000..4b67ec231f9dc7416f8f0e38d3e5be551f89bf91 --- /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 0000000000000000000000000000000000000000..93b4fc7e5485ec7d2cfad990de8e29093bd7e737 --- /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 0000000000000000000000000000000000000000..fa42ad9a4ce629e16d38aa47d927ad85adb39003 --- /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 0000000000000000000000000000000000000000..635043ad8f61a905d9a2db3376c9ac405076f2e6 --- /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 0000000000000000000000000000000000000000..0976ad3e1fa9c26f187b7964fa2150390f890f5b --- /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 0000000000000000000000000000000000000000..73a70c13c4dd1f5227829ad16fb53f1061fb369f --- /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 0000000000000000000000000000000000000000..a3678384acdad215f2affa071052605ebf33d9f5 --- /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 0000000000000000000000000000000000000000..89e368e09c0536d9f2644ce3b5c28a650f452d6f --- /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 0000000000000000000000000000000000000000..e3c9c1c8bcf228a57af46fefc601b725f0dad3e2 --- /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 0000000000000000000000000000000000000000..f480f2baa8ec2f21e8a7f646cbb6b705a7c68b5d --- /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 0000000000000000000000000000000000000000..ce847bcae55da8263991b7e54cc2b1a4f2a3a770 --- /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 0000000000000000000000000000000000000000..9c900bfc70defd40a7f94824a11349c72cfa8974 --- /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 0000000000000000000000000000000000000000..513fe8b410e65f805b5fd35943e173c524c89c12 --- /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 0000000000000000000000000000000000000000..0acc03b5a353879ab981c6115ac5c5b052805ef9 --- /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 0000000000000000000000000000000000000000..e69e81da1bb4ca6330ba825a2c284ef1a6b3bb4f --- /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 0000000000000000000000000000000000000000..ab0a1fe22e918ec64db795a037328a3a35033710 --- /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 0000000000000000000000000000000000000000..a4e9b47832179fea5cc67f762b7b95785ee7859f --- /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 0000000000000000000000000000000000000000..30b90aae1fe5918aad5c941ddd6539a3ebb924fc --- /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 0000000000000000000000000000000000000000..0a8e4b39fe96a12944daf0e1b4625a07edae4e05 --- /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 0000000000000000000000000000000000000000..22617e1d0d651e12b5e82f252ae559c636acec11 --- /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 0000000000000000000000000000000000000000..672a810bb8d481d92e02ce49d51648dadb739c87 --- /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 0000000000000000000000000000000000000000..0af10a922d28b8e47f98cc97fea1531f5a6575ac --- /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 0000000000000000000000000000000000000000..3061f370818f8e7fd5886b572af7fb9f8b48d3af --- /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 0000000000000000000000000000000000000000..136f8a83fa16e2d0e751eb03ae0e6536dd157fc2 --- /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 0000000000000000000000000000000000000000..bff55ea7a99cf4961ab9959818aea4da5a5a789d --- /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 0000000000000000000000000000000000000000..7a386f7a000b7b747853ca4a125f1eb9837aeb7d --- /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 0000000000000000000000000000000000000000..a6718858e94b7f48e184a3fbe7186791588a5f81 --- /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 0000000000000000000000000000000000000000..72da57f5e81c44319b8b336abc9a860df97afea7 --- /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 0000000000000000000000000000000000000000..6a6b57db396a6c9e410e0c3c4165b997c7222e3e --- /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 0000000000000000000000000000000000000000..ca14db364d301f6df7990e2d15c8312b810f4539 --- /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 0000000000000000000000000000000000000000..4b34ad255a78b1557e90a40380700b32af15166e --- /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 0000000000000000000000000000000000000000..c2a67f15c7fd2f0dd4142d1680b6f0fb3919a018 --- /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 0000000000000000000000000000000000000000..1fada3cc8fbfc66cc895f2e4c9be1cdd050bfc5c --- /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 0000000000000000000000000000000000000000..84fc076025f19690f9cdd6576d898852bd4aa32f --- /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 0000000000000000000000000000000000000000..d6e772a925095116c3be72795069c10149a518c7 --- /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 0000000000000000000000000000000000000000..3b84275f76ed3364d3dff8b4a2a562897e275c9f --- /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 0000000000000000000000000000000000000000..56232b96a242ed2860985a780e30d05d1c9cc73a --- /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 0000000000000000000000000000000000000000..fbae54c8c4a3a8af03ff76e5849a0d2fa78628c1 --- /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 0000000000000000000000000000000000000000..73b5678318ce06598c48c50fc23aaeaac287b0c7 --- /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 0000000000000000000000000000000000000000..c77a40cc6db0538bf23e3e8911a7cff1f4ab7b23 --- /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 0000000000000000000000000000000000000000..c1bc35b8ac3e98a305fac32d4bfdce160afb4301 --- /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 0000000000000000000000000000000000000000..f5cfbc654f9baca864a6f21f6565415639b933e2 --- /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 0000000000000000000000000000000000000000..53e14b4a30b8e17f091bf279ddf4886e8a4f5890 --- /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 0000000000000000000000000000000000000000..c4691ea0f0f2a9a7e5a31fde0b84696a8906ad13 --- /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 0000000000000000000000000000000000000000..432ed0b68d0c44f66cb384a955a0449bcd1319e8 --- /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 0000000000000000000000000000000000000000..1cab7724056fd09831d7103ed4c4147e19595e03 --- /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 0000000000000000000000000000000000000000..f4a251eab60a0796f5790f6cb5242a50f53c2d9b --- /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 0000000000000000000000000000000000000000..c5bf00ec73d971d39d4efe5b32bf963a149ce54e --- /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 0000000000000000000000000000000000000000..bc11723e0a92d9368f0625e70ba5f8dac0ca6ee2 --- /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 0000000000000000000000000000000000000000..d9db2a11ee6e893ffd318fa661737ac140275e5e --- /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 0000000000000000000000000000000000000000..5f90094f9bb94f4ecfa2d47c3afe44bf077e01d4 --- /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 0000000000000000000000000000000000000000..efe573a472663eeea307d5929fe083bf7cada565 --- /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 0000000000000000000000000000000000000000..11e272855c309c1197a39925cd94d71df408acf1 --- /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 0000000000000000000000000000000000000000..eff07a15942dab8e70893c8245f4204f49e9b93a --- /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 0000000000000000000000000000000000000000..6fab978ac04fd1519eb76005d5a594c8711e98ac --- /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 0000000000000000000000000000000000000000..6cc55bd7410cc78aeb8a0aa2ef33c38b31b39a76 --- /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 0000000000000000000000000000000000000000..87ed5bfcc607a8f189ec48b0eb6abda93c697781 --- /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 0000000000000000000000000000000000000000..4fa8f13b540ed5adcc21e167784c7423e518a7ad --- /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 0000000000000000000000000000000000000000..0b13e1db46c611a8f4c696cb6ccfd6742d3e5811 --- /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 0000000000000000000000000000000000000000..f489453987ab8fff691ba38379812de7423295fd --- /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 0000000000000000000000000000000000000000..c1c6e6c92d8bfb14914affb58b4ff64d92c41f7d --- /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 0000000000000000000000000000000000000000..cb0a16384bb718d543f4d771def24d446fba514b --- /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 0000000000000000000000000000000000000000..1e7abf91f699f5314f440b033f4830e3aa144c35 --- /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 0000000000000000000000000000000000000000..dddcf668634ffcd1a110f1f0800b44730b212b93 --- /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 0000000000000000000000000000000000000000..68d6da074941c54f2d47ed60503603b7768c3e3f --- /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 0000000000000000000000000000000000000000..ee35d6c756f11b4c18a20e22368852932fa3686e --- /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 0000000000000000000000000000000000000000..1eef9e76703e3f66955bc3155de32227e7d6bc6d --- /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 0000000000000000000000000000000000000000..b5f488c63935ec667dc098f3ead44ee7139c07a6 --- /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 0000000000000000000000000000000000000000..b069d5614afd7233118c5fb8d11ec9ed55494f52 --- /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 0000000000000000000000000000000000000000..eff0a403bba5ffb505ce35f629de61ea675b53b5 --- /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 0000000000000000000000000000000000000000..4cdff1888fcdeaeafec97f1fe98ab92b29e39bd2 --- /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 0000000000000000000000000000000000000000..8ae72a9be9497c9022681f1a5893046cdc0137ef --- /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 0000000000000000000000000000000000000000..96a82304a83561c6e3ebdfba83aed1e1f43db65a --- /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 0000000000000000000000000000000000000000..657fe642e589e4af4b62b632726a3c32610b3fde --- /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 0000000000000000000000000000000000000000..3e3d7934d4048e83801b310a86286732d32a8398 --- /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 0000000000000000000000000000000000000000..4252257aef195afb0c22f361ca12c9a14a63269c --- /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 0000000000000000000000000000000000000000..b64f5e123ce27639536ef7f396ad94ded37436fe --- /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 0000000000000000000000000000000000000000..f7383f767fbcff800c0eb3a4fed5d92ca6f97dd0 --- /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 0000000000000000000000000000000000000000..0cf0b65542874499c6b959d63d2cb3b2acb8b4ce --- /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 0000000000000000000000000000000000000000..681a206d0c6673ed9086b4eacc048bd88b8c63d6 --- /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 0000000000000000000000000000000000000000..bf7e15d138a05d986d37919211a2bb21e4dbb617 --- /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 0000000000000000000000000000000000000000..d5b723b8ef434f0d52f761ff421e609445e08285 --- /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 0000000000000000000000000000000000000000..2db99a9e78ef0e66b16280ffc5f7d3d6dcc195f2 --- /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 0000000000000000000000000000000000000000..650abe47be8a53836d66a4e43b6988b6b8915762 --- /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 0000000000000000000000000000000000000000..2933853ba9cd434262f088602783231114f10e75 --- /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 0000000000000000000000000000000000000000..1f0177400828305c235459800f4eff8e7b1a095f --- /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 0000000000000000000000000000000000000000..47caa2b57373d995b8e8e7ed0283bf0e784ac6f1 --- /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 0000000000000000000000000000000000000000..2c59f3f25e7f5fdd8c44aef3fb93d52ec48e4ab7 --- /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 0000000000000000000000000000000000000000..04c7e2f5363bc3c2df1a2f4bda7731fdcf925bdc --- /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 0000000000000000000000000000000000000000..599dab095992fd9e811b895f3c0268eed68ab5f5 --- /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 0000000000000000000000000000000000000000..f5d5b970e951a7008b5e2f86d69f5ee87d5d8777 --- /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 0000000000000000000000000000000000000000..660ed77361e71df8176bf6cc8f65149ea510b2fb --- /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 0000000000000000000000000000000000000000..6ee8bbec96fc871a7b3ff8fc1282d8030f722721 --- /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 0000000000000000000000000000000000000000..36e61cd3b2975a6303b46c00a6fc5a33f331e637 --- /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 0000000000000000000000000000000000000000..7b251d8e81e03fca3dfeda66cc09a20ace3d2aad --- /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 0000000000000000000000000000000000000000..5f835b0403abe9929731f93eb787a7f4f06e22c5 --- /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 0000000000000000000000000000000000000000..9c0696455c3bea87454a03bb2194aa229fc7b76f --- /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 0000000000000000000000000000000000000000..f5d942f639f52eb283506d00586b5ffe22173f74 --- /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 0000000000000000000000000000000000000000..5eb5377cbed989d7a474b0089c5a8188dae6c077 --- /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 0000000000000000000000000000000000000000..795fc15f5f6cc1c7d9ff0d8c77b4852acc78ef92 --- /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 0000000000000000000000000000000000000000..fb609d70676f691c2a9b28f9b68f63558e84c564 --- /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 0000000000000000000000000000000000000000..2b5ca885c527487e053279467d9c698ac49a5f67 --- /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 0000000000000000000000000000000000000000..eec31d5746b27c655b69ce2cc012c4c917f12c7f --- /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 0000000000000000000000000000000000000000..feecc035a5168a6f2062ae931ae2278cb427b359 --- /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 0000000000000000000000000000000000000000..0ddbaafd4c526c71a9ad7e26d628955bc5b3c90f --- /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 0000000000000000000000000000000000000000..a9d1cf9efa02f878c87ab5fa37bd4fa0a3d6d142 --- /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 0000000000000000000000000000000000000000..aadc7a7e92a287e0a1c7b423da53634edbb6752e --- /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 0000000000000000000000000000000000000000..f369b5e55b684e5c99d8446581a52ab2d7fc0437 --- /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 0000000000000000000000000000000000000000..097d6bd422a709c8a1d5e794fcbbabf55edf5893 --- /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 0000000000000000000000000000000000000000..8f162a0c45f2c0a4867ff1f967d7e5ec33062482 --- /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 0000000000000000000000000000000000000000..8b63d27ed48bb446311a36c3259b8ee8fcfd5dcf --- /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 Binary files /dev/null and b/vs_plugin/src/static-type-script-1.0.0.vsix differ diff --git a/vs_plugin/src/syntaxes/sts.tmLanguage.json b/vs_plugin/src/syntaxes/sts.tmLanguage.json new file mode 100644 index 0000000000000000000000000000000000000000..8b9203f7ef6bcd55a2ded4f1f89fc0fd1b674add --- /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