From 6739710f2fe3ba93e2a7491b794908b8440a5772 Mon Sep 17 00:00:00 2001 From: Denys Smirnov Date: Fri, 2 Nov 2018 18:23:42 +0200 Subject: [PATCH] enable language namespace in semantic uast Signed-off-by: Denys Smirnov --- Gopkg.lock | 6 +- Gopkg.toml | 2 +- driver/normalizer/transforms.go | 1 + fixtures/_integration.js.sem.uast | 14 +- fixtures/array-expression.js.sem.uast | 12 +- fixtures/array-pattern.js.sem.uast | 16 +- .../arrow-function-expression.js.sem.uast | 112 ++++----- fixtures/assignment-expression.js.sem.uast | 70 +++--- fixtures/assignment-pattern.js.sem.uast | 28 +-- fixtures/await-expression.js.sem.uast | 12 +- fixtures/binary-expression.js.sem.uast | 176 +++++++------- fixtures/bind-expression.js.sem.uast | 12 +- fixtures/block-statement.js.sem.uast | 4 +- fixtures/boolean-literal.js.sem.uast | 12 +- fixtures/break-statement.js.sem.uast | 10 +- fixtures/call-expression.js.sem.uast | 36 +-- fixtures/case-statement.js.sem.uast | 40 ++-- fixtures/class-body.js.sem.uast | 8 +- fixtures/class-declaration.js.sem.uast | 8 +- fixtures/class-expression.js.sem.uast | 12 +- fixtures/class-method.js.sem.uast | 10 +- fixtures/class-private-method.js.sem.uast | 12 +- fixtures/class-private-property.js.sem.uast | 14 +- fixtures/class-property.js.sem.uast | 12 +- fixtures/comment.js.sem.uast | 4 +- fixtures/conditional-expression.js.sem.uast | 12 +- fixtures/continue-statement.js.sem.uast | 20 +- fixtures/debugger-statement.js.sem.uast | 6 +- fixtures/decorator.js.sem.uast | 10 +- fixtures/directive-literal.js.sem.uast | 8 +- fixtures/directive.js.sem.uast | 8 +- fixtures/do-expression.js.sem.uast | 20 +- fixtures/empty-statement.js.sem.uast | 6 +- fixtures/export-declaration.js.sem.uast | 18 +- fixtures/expression-statement.js.sem.uast | 8 +- fixtures/ext_typedecl.js.sem.uast | 220 +++++++++--------- fixtures/flow-annotations.js.sem.uast | 66 +++--- fixtures/for-in-statement.js.sem.uast | 10 +- fixtures/for-of-statement.js.sem.uast | 10 +- fixtures/for-statement.js.sem.uast | 26 +-- fixtures/function-declaration.js.sem.uast | 10 +- fixtures/function-expression.js.sem.uast | 14 +- fixtures/hello.js.sem.uast | 10 +- fixtures/identifier.js.sem.uast | 6 +- fixtures/if-statement.js.sem.uast | 66 +++--- fixtures/import-declaration.js.sem.uast | 4 +- fixtures/import.js.sem.uast | 10 +- fixtures/issue24.js.sem.uast | 208 ++++++++--------- fixtures/jsxelems.js.sem.uast | 42 ++-- fixtures/labeled-statement.js.sem.uast | 12 +- fixtures/logical-expression.js.sem.uast | 16 +- fixtures/member-expression.js.sem.uast | 16 +- fixtures/meta-property.js.sem.uast | 8 +- fixtures/new-expression.js.sem.uast | 8 +- fixtures/null-literal.js.sem.uast | 8 +- fixtures/numeric-literal.js.sem.uast | 16 +- fixtures/object-expression.js.sem.uast | 14 +- fixtures/object-method.js.sem.uast | 16 +- fixtures/object-pattern.js.sem.uast | 14 +- fixtures/object-property.js.sem.uast | 14 +- fixtures/private-name.js.sem.uast | 14 +- fixtures/regexp-literal.js.sem.uast | 16 +- fixtures/rest-element.js.sem.uast | 18 +- fixtures/return-statement.js.sem.uast | 12 +- fixtures/sequence-expression.js.sem.uast | 16 +- fixtures/spread-element.js.sem.uast | 24 +- fixtures/string-literal.js.sem.uast | 8 +- fixtures/super.js.sem.uast | 36 +-- fixtures/tagged-template-element.js.sem.uast | 16 +- fixtures/template-literal.js.sem.uast | 10 +- fixtures/this-expression.js.sem.uast | 38 +-- fixtures/throw-statement.js.sem.uast | 6 +- fixtures/try-statement.js.sem.uast | 14 +- fixtures/typealias.js.sem.uast | 36 +-- fixtures/u2_class_accessors.js.sem.uast | 26 +-- fixtures/u2_class_anonymous.js.sem.uast | 18 +- fixtures/u2_class_constructor.js.sem.uast | 20 +- fixtures/u2_class_empty.js.sem.uast | 38 +-- fixtures/u2_class_extend.js.sem.uast | 12 +- fixtures/u2_class_field.js.sem.uast | 64 ++--- fixtures/u2_class_field_binding.js.sem.uast | 14 +- fixtures/u2_class_inherit.js.sem.uast | 8 +- fixtures/u2_class_method.js.sem.uast | 116 ++++----- fixtures/u2_class_method_binding.js.sem.uast | 10 +- fixtures/u2_class_method_tag.js.sem.uast | 12 +- fixtures/u2_class_tag.js.sem.uast | 10 +- fixtures/u2_class_this.js.sem.uast | 36 +-- fixtures/u2_func_anonymous.js.sem.uast | 12 +- fixtures/u2_func_async.js.sem.uast | 4 +- fixtures/u2_func_empty.js.sem.uast | 4 +- fixtures/u2_func_inner.js.sem.uast | 4 +- fixtures/u2_func_params_default.js.sem.uast | 6 +- fixtures/u2_func_qualifiers.js.sem.uast | 6 +- fixtures/u2_func_simple.js.sem.uast | 8 +- fixtures/u2_func_variadic_list.js.sem.uast | 10 +- fixtures/u2_func_variadic_list_2.js.sem.uast | 6 +- fixtures/u2_import_path.js.sem.uast | 4 +- fixtures/u2_import_simple.js.sem.uast | 4 +- .../u2_import_specific_default.js.sem.uast | 4 +- fixtures/u2_import_subsymbol.js.sem.uast | 4 +- .../u2_import_subsymbol_alias.js.sem.uast | 4 +- ...2_import_subsymbols_namespaced.js.sem.uast | 4 +- fixtures/unary-expression.js.sem.uast | 52 ++--- fixtures/update-expression.js.sem.uast | 20 +- fixtures/variable-declaration.js.sem.uast | 10 +- fixtures/variable-declarator.js.sem.uast | 10 +- fixtures/with-statement.js.sem.uast | 12 +- fixtures/yield-expression.js.sem.uast | 20 +- 108 files changed, 1230 insertions(+), 1229 deletions(-) diff --git a/Gopkg.lock b/Gopkg.lock index 35c0af2..c40abe7 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -305,8 +305,8 @@ "uast/viewer", "uast/yaml" ] - revision = "25b3f8adb4ba7ff703973b3aefb0f6b8a90dae30" - version = "v2.5.0" + revision = "c40738ca4cc89a0a04a08b9e46ae42a1e7663fe9" + version = "v2.6.0" [[projects]] name = "gopkg.in/src-d/go-errors.v1" @@ -323,6 +323,6 @@ [solve-meta] analyzer-name = "dep" analyzer-version = 1 - inputs-digest = "1c8fe61e271ffb1f2ac48cadbc6fc5dc5d89b481ca4f60bfa244b392c8f3b1e6" + inputs-digest = "cb151865e0f49dcbb7f825705b0b043f4275dd0265f12fe84ccf280e6e40ddeb" solver-name = "gps-cdcl" solver-version = 1 diff --git a/Gopkg.toml b/Gopkg.toml index c23d89b..ac006c8 100644 --- a/Gopkg.toml +++ b/Gopkg.toml @@ -3,7 +3,7 @@ [[constraint]] name = "gopkg.in/bblfsh/sdk.v2" - version = "v2.5.x" + version = "v2.6.x" [prune] go-tests = true diff --git a/driver/normalizer/transforms.go b/driver/normalizer/transforms.go index 3df3155..768b15b 100644 --- a/driver/normalizer/transforms.go +++ b/driver/normalizer/transforms.go @@ -3,6 +3,7 @@ package normalizer import "gopkg.in/bblfsh/sdk.v2/driver" var Transforms = driver.Transforms{ + Namespace: "javascript", Preprocess: Preprocess, Normalize: Normalize, Annotations: Native, diff --git a/fixtures/_integration.js.sem.uast b/fixtures/_integration.js.sem.uast index f1ae691..1fe9a01 100644 --- a/fixtures/_integration.js.sem.uast +++ b/fixtures/_integration.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -43,7 +43,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -72,7 +72,7 @@ }, Name: "x", }, - init: { '@type': "ObjectExpression", + init: { '@type': "javascript:ObjectExpression", '@role': [Expression, Initialization, Literal, Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -87,7 +87,7 @@ }, }, properties: [ - { '@type': "ObjectProperty", + { '@type': "javascript:ObjectProperty", '@role': [Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -120,7 +120,7 @@ }, method: false, shorthand: false, - value: { '@type': "NumericLiteral", + value: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Expression, Literal, Map, Number, Value], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/array-expression.js.sem.uast b/fixtures/array-expression.js.sem.uast index d2cde6a..0782e8d 100644 --- a/fixtures/array-expression.js.sem.uast +++ b/fixtures/array-expression.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 7, }, }, - expression: { '@type': "ArrayExpression", + expression: { '@type': "javascript:ArrayExpression", '@role': [Expression, Initialization, List, Literal], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -57,7 +57,7 @@ }, }, elements: [ - { '@type': "NumericLiteral", + { '@type': "javascript:NumericLiteral", '@token': 1, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -73,7 +73,7 @@ }, }, }, - { '@type': "NumericLiteral", + { '@type': "javascript:NumericLiteral", '@token': 2, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/array-pattern.js.sem.uast b/fixtures/array-pattern.js.sem.uast index 966fee8..ea33b6e 100644 --- a/fixtures/array-pattern.js.sem.uast +++ b/fixtures/array-pattern.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 16, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -56,7 +56,7 @@ col: 16, }, }, - left: { '@type': "ArrayPattern", + left: { '@type': "javascript:ArrayPattern", '@role': [Assignment, Binary, Incomplete, Left, List], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -107,7 +107,7 @@ '@token': "=", '@role': [Assignment, Binary, Expression, Operator], }, - right: { '@type': "ArrayExpression", + right: { '@type': "javascript:ArrayExpression", '@role': [Assignment, Binary, Expression, Initialization, List, Literal, Right], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -122,7 +122,7 @@ }, }, elements: [ - { '@type': "NumericLiteral", + { '@type': "javascript:NumericLiteral", '@token': 3, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -138,7 +138,7 @@ }, }, }, - { '@type': "NumericLiteral", + { '@type': "javascript:NumericLiteral", '@token': 4, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/arrow-function-expression.js.sem.uast b/fixtures/arrow-function-expression.js.sem.uast index bf4051f..c40f4d6 100644 --- a/fixtures/arrow-function-expression.js.sem.uast +++ b/fixtures/arrow-function-expression.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 59, }, }, - expression: { '@type': "ArrowFunctionExpression", + expression: { '@type': "javascript:ArrowFunctionExpression", '@role': [Anonymous, Declaration, Expression, Function], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -72,7 +72,7 @@ }, }, Statements: [ - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -87,7 +87,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -116,7 +116,7 @@ }, Name: "x", }, - init: { '@type': "BinaryExpression", + init: { '@type': "javascript:BinaryExpression", '@role': [Add, Arithmetic, Binary, Expression, Initialization, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -171,7 +171,7 @@ ], kind: "let", }, - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -186,7 +186,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -215,7 +215,7 @@ }, Name: "y", }, - init: { '@type': "BinaryExpression", + init: { '@type': "javascript:BinaryExpression", '@role': [Arithmetic, Binary, Expression, Initialization, Operator, Substract], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -270,7 +270,7 @@ ], kind: "let", }, - { '@type': "ReturnStatement", + { '@type': "javascript:ReturnStatement", '@role': [Return, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -284,7 +284,7 @@ col: 56, }, }, - argument: { '@type': "BinaryExpression", + argument: { '@type': "javascript:BinaryExpression", '@role': [Add, Arithmetic, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -376,7 +376,7 @@ ], }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -390,7 +390,7 @@ col: 17, }, }, - expression: { '@type': "ArrowFunctionExpression", + expression: { '@type': "javascript:ArrowFunctionExpression", '@role': [Anonymous, Declaration, Expression, Function], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -405,7 +405,7 @@ }, }, async: false, - body: { '@type': "BinaryExpression", + body: { '@type': "javascript:BinaryExpression", '@role': [Add, Arithmetic, Binary, Body, Expression, Function, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -494,7 +494,7 @@ ], }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -508,7 +508,7 @@ col: 22, }, }, - expression: { '@type': "ArrowFunctionExpression", + expression: { '@type': "javascript:ArrowFunctionExpression", '@role': [Anonymous, Declaration, Expression, Function], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -538,7 +538,7 @@ }, }, Statements: [ - { '@type': "ReturnStatement", + { '@type': "javascript:ReturnStatement", '@role': [Return, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -592,7 +592,7 @@ ], }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -606,7 +606,7 @@ col: 20, }, }, - expression: { '@type': "ArrowFunctionExpression", + expression: { '@type': "javascript:ArrowFunctionExpression", '@role': [Anonymous, Declaration, Expression, Function], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -636,7 +636,7 @@ }, }, Statements: [ - { '@type': "ReturnStatement", + { '@type': "javascript:ReturnStatement", '@role': [Return, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -690,7 +690,7 @@ ], }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -704,7 +704,7 @@ col: 8, }, }, - expression: { '@type': "ArrowFunctionExpression", + expression: { '@type': "javascript:ArrowFunctionExpression", '@role': [Anonymous, Declaration, Expression, Function], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -757,7 +757,7 @@ ], }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -771,7 +771,7 @@ col: 20, }, }, - expression: { '@type': "ArrowFunctionExpression", + expression: { '@type': "javascript:ArrowFunctionExpression", '@role': [Anonymous, Declaration, Expression, Function], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -801,7 +801,7 @@ }, }, Statements: [ - { '@type': "ReturnStatement", + { '@type': "javascript:ReturnStatement", '@role': [Return, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -815,7 +815,7 @@ col: 18, }, }, - argument: { '@type': "NumericLiteral", + argument: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -839,7 +839,7 @@ params: [], }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -853,7 +853,7 @@ col: 16, }, }, - expression: { '@type': "ArrowFunctionExpression", + expression: { '@type': "javascript:ArrowFunctionExpression", '@role': [Anonymous, Declaration, Expression, Function], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -868,7 +868,7 @@ }, }, async: false, - body: { '@type': "ObjectExpression", + body: { '@type': "javascript:ObjectExpression", '@role': [Body, Expression, Function, Initialization, Literal, Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -883,7 +883,7 @@ }, }, properties: [ - { '@type': "ObjectProperty", + { '@type': "javascript:ObjectProperty", '@role': [Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -916,7 +916,7 @@ }, method: false, shorthand: false, - value: { '@type': "NumericLiteral", + value: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Expression, Literal, Map, Number, Value], '@pos': { '@type': "uast:Positions", @@ -940,7 +940,7 @@ params: [], }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -954,7 +954,7 @@ col: 37, }, }, - expression: { '@type': "ArrowFunctionExpression", + expression: { '@type': "javascript:ArrowFunctionExpression", '@role': [Anonymous, Declaration, Expression, Function], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -984,7 +984,7 @@ }, }, Statements: [ - { '@type': "ReturnStatement", + { '@type': "javascript:ReturnStatement", '@role': [Return, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1051,7 +1051,7 @@ }, Name: "b", }, - { '@type': "RestElement", + { '@type': "javascript:RestElement", '@role': [ArgsList, Argument, Function, Incomplete], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1084,7 +1084,7 @@ ], }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1098,7 +1098,7 @@ col: 21, }, }, - expression: { '@type': "ArrowFunctionExpression", + expression: { '@type': "javascript:ArrowFunctionExpression", '@role': [Anonymous, Declaration, Expression, Function], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1113,7 +1113,7 @@ }, }, async: false, - body: { '@type': "BinaryExpression", + body: { '@type': "javascript:BinaryExpression", '@role': [Add, Arithmetic, Binary, Body, Expression, Function, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1183,7 +1183,7 @@ }, Name: "a", }, - { '@type': "AssignmentPattern", + { '@type': "javascript:AssignmentPattern", '@role': [Argument, Assignment, Function, Incomplete], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1212,7 +1212,7 @@ }, Name: "b", }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 2, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -1232,7 +1232,7 @@ ], }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1246,7 +1246,7 @@ col: 53, }, }, - expression: { '@type': "ArrowFunctionExpression", + expression: { '@type': "javascript:ArrowFunctionExpression", '@role': [Anonymous, Declaration, Expression, Function], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1261,7 +1261,7 @@ }, }, async: false, - body: { '@type': "BinaryExpression", + body: { '@type': "javascript:BinaryExpression", '@role': [Add, Arithmetic, Binary, Body, Expression, Function, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1275,7 +1275,7 @@ col: 52, }, }, - left: { '@type': "BinaryExpression", + left: { '@type': "javascript:BinaryExpression", '@role': [Add, Arithmetic, Binary, Expression, Left, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1350,7 +1350,7 @@ generator: false, id: ~, params: [ - { '@type': "AssignmentPattern", + { '@type': "javascript:AssignmentPattern", '@role': [Argument, Assignment, Function, Incomplete], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1364,7 +1364,7 @@ col: 17, }, }, - left: { '@type': "ArrayPattern", + left: { '@type': "javascript:ArrayPattern", '@role': [Incomplete, List], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1411,7 +1411,7 @@ }, ], }, - right: { '@type': "ArrayExpression", + right: { '@type': "javascript:ArrayExpression", '@role': [Expression, Initialization, List, Literal], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1426,7 +1426,7 @@ }, }, elements: [ - { '@type': "NumericLiteral", + { '@type': "javascript:NumericLiteral", '@token': 1, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -1442,7 +1442,7 @@ }, }, }, - { '@type': "NumericLiteral", + { '@type': "javascript:NumericLiteral", '@token': 2, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -1461,7 +1461,7 @@ ], }, }, - { '@type': "AssignmentPattern", + { '@type': "javascript:AssignmentPattern", '@role': [Argument, Assignment, Function, Incomplete], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1475,7 +1475,7 @@ col: 38, }, }, - left: { '@type': "ObjectPattern", + left: { '@type': "javascript:ObjectPattern", '@role': [Incomplete, Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1490,7 +1490,7 @@ }, }, properties: [ - { '@type': "ObjectProperty", + { '@type': "javascript:ObjectProperty", '@role': [Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1542,7 +1542,7 @@ }, ], }, - right: { '@type': "ObjectExpression", + right: { '@type': "javascript:ObjectExpression", '@role': [Expression, Initialization, Literal, Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1557,7 +1557,7 @@ }, }, properties: [ - { '@type': "ObjectProperty", + { '@type': "javascript:ObjectProperty", '@role': [Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1590,7 +1590,7 @@ }, method: false, shorthand: false, - value: { '@type': "BinaryExpression", + value: { '@type': "javascript:BinaryExpression", '@role': [Add, Arithmetic, Binary, Expression, Map, Operator, Value], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/assignment-expression.js.sem.uast b/fixtures/assignment-expression.js.sem.uast index 0b06b30..b927b39 100644 --- a/fixtures/assignment-expression.js.sem.uast +++ b/fixtures/assignment-expression.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 8, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Add, Arithmetic, Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -76,7 +76,7 @@ '@token': "+=", '@role': [Add, Arithmetic, Assignment, Binary, Expression, Operator], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Assignment, Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -94,7 +94,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -108,7 +108,7 @@ col: 8, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Arithmetic, Assignment, Binary, Expression, Operator, Substract], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -142,7 +142,7 @@ '@token': "-=", '@role': [Arithmetic, Assignment, Binary, Expression, Operator, Substract], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Assignment, Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -160,7 +160,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -174,7 +174,7 @@ col: 8, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Arithmetic, Assignment, Binary, Expression, Multiply, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -208,7 +208,7 @@ '@token': "*=", '@role': [Arithmetic, Assignment, Binary, Expression, Multiply, Operator], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Assignment, Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -226,7 +226,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -240,7 +240,7 @@ col: 8, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Arithmetic, Assignment, Binary, Divide, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -274,7 +274,7 @@ '@token': "/=", '@role': [Arithmetic, Assignment, Binary, Divide, Expression, Operator], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Assignment, Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -292,7 +292,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -306,7 +306,7 @@ col: 8, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Arithmetic, Assignment, Binary, Expression, Modulo, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -340,7 +340,7 @@ '@token': "%=", '@role': [Arithmetic, Assignment, Binary, Expression, Modulo, Operator], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Assignment, Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -358,7 +358,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -372,7 +372,7 @@ col: 9, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Bitwise, Expression, LeftShift, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -406,7 +406,7 @@ '@token': "<<=", '@role': [Assignment, Binary, Bitwise, Expression, LeftShift, Operator], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Assignment, Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -424,7 +424,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -438,7 +438,7 @@ col: 9, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Bitwise, Expression, Operator, RightShift], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -472,7 +472,7 @@ '@token': ">>=", '@role': [Assignment, Binary, Bitwise, Expression, Operator, RightShift], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Assignment, Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -490,7 +490,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -504,7 +504,7 @@ col: 10, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Bitwise, Expression, Operator, RightShift, Unsigned], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -538,7 +538,7 @@ '@token': ">>>=", '@role': [Assignment, Binary, Bitwise, Expression, Operator, RightShift, Unsigned], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Assignment, Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -556,7 +556,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -570,7 +570,7 @@ col: 8, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Bitwise, Expression, Operator, Or], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -604,7 +604,7 @@ '@token': "|=", '@role': [Assignment, Binary, Bitwise, Expression, Operator, Or], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Assignment, Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -622,7 +622,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -636,7 +636,7 @@ col: 8, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Bitwise, Expression, Operator, Xor], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -670,7 +670,7 @@ '@token': "^=", '@role': [Assignment, Binary, Bitwise, Expression, Operator, Xor], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Assignment, Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -688,7 +688,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -702,7 +702,7 @@ col: 8, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [And, Assignment, Binary, Bitwise, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -736,7 +736,7 @@ '@token': "&=", '@role': [And, Assignment, Binary, Bitwise, Expression, Operator], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Assignment, Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/assignment-pattern.js.sem.uast b/fixtures/assignment-pattern.js.sem.uast index c14678b..629b39c 100644 --- a/fixtures/assignment-pattern.js.sem.uast +++ b/fixtures/assignment-pattern.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -43,7 +43,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -57,7 +57,7 @@ col: 29, }, }, - id: { '@type': "ObjectPattern", + id: { '@type': "javascript:ObjectPattern", '@role': [Incomplete, Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -72,7 +72,7 @@ }, }, properties: [ - { '@type': "ObjectProperty", + { '@type': "javascript:ObjectProperty", '@role': [Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -105,7 +105,7 @@ }, method: false, shorthand: true, - value: { '@type': "AssignmentPattern", + value: { '@type': "javascript:AssignmentPattern", '@role': [Assignment, Incomplete, Map, Value], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -134,7 +134,7 @@ }, Name: "a", }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 10, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -152,7 +152,7 @@ }, }, }, - { '@type': "ObjectProperty", + { '@type': "javascript:ObjectProperty", '@role': [Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -185,7 +185,7 @@ }, method: false, shorthand: true, - value: { '@type': "AssignmentPattern", + value: { '@type': "javascript:AssignmentPattern", '@role': [Assignment, Incomplete, Map, Value], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -214,7 +214,7 @@ }, Name: "b", }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 5, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -234,7 +234,7 @@ }, ], }, - init: { '@type': "ObjectExpression", + init: { '@type': "javascript:ObjectExpression", '@role': [Expression, Initialization, Literal, Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -249,7 +249,7 @@ }, }, properties: [ - { '@type': "ObjectProperty", + { '@type': "javascript:ObjectProperty", '@role': [Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -282,7 +282,7 @@ }, method: false, shorthand: false, - value: { '@type': "NumericLiteral", + value: { '@type': "javascript:NumericLiteral", '@token': 3, '@role': [Expression, Literal, Map, Number, Value], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/await-expression.js.sem.uast b/fixtures/await-expression.js.sem.uast index 0f8038e..d77d8ac 100644 --- a/fixtures/await-expression.js.sem.uast +++ b/fixtures/await-expression.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 20, }, }, - expression: { '@type': "ArrowFunctionExpression", + expression: { '@type': "javascript:ArrowFunctionExpression", '@role': [Anonymous, Declaration, Expression, Function], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -57,7 +57,7 @@ }, }, async: true, - body: { '@type': "AwaitExpression", + body: { '@type': "javascript:AwaitExpression", '@role': [Body, Expression, Function, Incomplete], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -71,7 +71,7 @@ col: 20, }, }, - argument: { '@type': "NumericLiteral", + argument: { '@type': "javascript:NumericLiteral", '@token': 3, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/binary-expression.js.sem.uast b/fixtures/binary-expression.js.sem.uast index 7651736..59ee484 100644 --- a/fixtures/binary-expression.js.sem.uast +++ b/fixtures/binary-expression.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 8, }, }, - expression: { '@type': "BinaryExpression", + expression: { '@type': "javascript:BinaryExpression", '@role': [Binary, Equal, Expression, Operator, Relational], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -56,7 +56,7 @@ col: 7, }, }, - left: { '@type': "NumericLiteral", + left: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Left, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -76,7 +76,7 @@ '@token': "==", '@role': [Binary, Equal, Expression, Operator, Relational], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -94,7 +94,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -108,7 +108,7 @@ col: 8, }, }, - expression: { '@type': "BinaryExpression", + expression: { '@type': "javascript:BinaryExpression", '@role': [Binary, Equal, Expression, Not, Operator, Relational], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -122,7 +122,7 @@ col: 7, }, }, - left: { '@type': "NumericLiteral", + left: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Left, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -142,7 +142,7 @@ '@token': "!=", '@role': [Binary, Equal, Expression, Not, Operator, Relational], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -160,7 +160,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -174,7 +174,7 @@ col: 9, }, }, - expression: { '@type': "BinaryExpression", + expression: { '@type': "javascript:BinaryExpression", '@role': [Binary, Expression, Identical, Operator, Relational], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -188,7 +188,7 @@ col: 8, }, }, - left: { '@type': "NumericLiteral", + left: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Left, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -208,7 +208,7 @@ '@token': "===", '@role': [Binary, Expression, Identical, Operator, Relational], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -226,7 +226,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -240,7 +240,7 @@ col: 9, }, }, - expression: { '@type': "BinaryExpression", + expression: { '@type': "javascript:BinaryExpression", '@role': [Binary, Expression, Identical, Not, Operator, Relational], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -254,7 +254,7 @@ col: 8, }, }, - left: { '@type': "NumericLiteral", + left: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Left, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -274,7 +274,7 @@ '@token': "!==", '@role': [Binary, Expression, Identical, Not, Operator, Relational], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -292,7 +292,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -306,7 +306,7 @@ col: 7, }, }, - expression: { '@type': "BinaryExpression", + expression: { '@type': "javascript:BinaryExpression", '@role': [Binary, Expression, LessThan, Operator, Relational], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -320,7 +320,7 @@ col: 6, }, }, - left: { '@type': "NumericLiteral", + left: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Left, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -340,7 +340,7 @@ '@token': "<", '@role': [Binary, Expression, LessThan, Operator, Relational], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -358,7 +358,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -372,7 +372,7 @@ col: 8, }, }, - expression: { '@type': "BinaryExpression", + expression: { '@type': "javascript:BinaryExpression", '@role': [Binary, Expression, LessThanOrEqual, Operator, Relational], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -386,7 +386,7 @@ col: 7, }, }, - left: { '@type': "NumericLiteral", + left: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Left, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -406,7 +406,7 @@ '@token': "<=", '@role': [Binary, Expression, LessThanOrEqual, Operator, Relational], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -424,7 +424,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -438,7 +438,7 @@ col: 7, }, }, - expression: { '@type': "BinaryExpression", + expression: { '@type': "javascript:BinaryExpression", '@role': [Binary, Expression, GreaterThan, Operator, Relational], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -452,7 +452,7 @@ col: 6, }, }, - left: { '@type': "NumericLiteral", + left: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Left, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -472,7 +472,7 @@ '@token': ">", '@role': [Binary, Expression, GreaterThan, Operator, Relational], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -490,7 +490,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -504,7 +504,7 @@ col: 8, }, }, - expression: { '@type': "BinaryExpression", + expression: { '@type': "javascript:BinaryExpression", '@role': [Binary, Expression, GreaterThanOrEqual, Operator, Relational], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -518,7 +518,7 @@ col: 7, }, }, - left: { '@type': "NumericLiteral", + left: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Left, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -538,7 +538,7 @@ '@token': ">=", '@role': [Binary, Expression, GreaterThanOrEqual, Operator, Relational], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -556,7 +556,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -570,7 +570,7 @@ col: 8, }, }, - expression: { '@type': "BinaryExpression", + expression: { '@type': "javascript:BinaryExpression", '@role': [Binary, Bitwise, Expression, LeftShift, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -584,7 +584,7 @@ col: 7, }, }, - left: { '@type': "NumericLiteral", + left: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Left, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -604,7 +604,7 @@ '@token': "<<", '@role': [Binary, Bitwise, Expression, LeftShift, Operator], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -622,7 +622,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -636,7 +636,7 @@ col: 8, }, }, - expression: { '@type': "BinaryExpression", + expression: { '@type': "javascript:BinaryExpression", '@role': [Binary, Bitwise, Expression, Operator, RightShift], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -650,7 +650,7 @@ col: 7, }, }, - left: { '@type': "NumericLiteral", + left: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Left, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -670,7 +670,7 @@ '@token': ">>", '@role': [Binary, Bitwise, Expression, Operator, RightShift], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -688,7 +688,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -702,7 +702,7 @@ col: 9, }, }, - expression: { '@type': "BinaryExpression", + expression: { '@type': "javascript:BinaryExpression", '@role': [Binary, Bitwise, Expression, Operator, RightShift, Unsigned], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -716,7 +716,7 @@ col: 8, }, }, - left: { '@type': "NumericLiteral", + left: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Left, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -736,7 +736,7 @@ '@token': ">>>", '@role': [Binary, Bitwise, Expression, Operator, RightShift, Unsigned], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -754,7 +754,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -768,7 +768,7 @@ col: 7, }, }, - expression: { '@type': "BinaryExpression", + expression: { '@type': "javascript:BinaryExpression", '@role': [Add, Arithmetic, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -782,7 +782,7 @@ col: 6, }, }, - left: { '@type': "NumericLiteral", + left: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Left, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -802,7 +802,7 @@ '@token': "+", '@role': [Add, Arithmetic, Binary, Expression, Operator], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -820,7 +820,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -834,7 +834,7 @@ col: 7, }, }, - expression: { '@type': "BinaryExpression", + expression: { '@type': "javascript:BinaryExpression", '@role': [Arithmetic, Binary, Expression, Operator, Substract], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -848,7 +848,7 @@ col: 6, }, }, - left: { '@type': "NumericLiteral", + left: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Left, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -868,7 +868,7 @@ '@token': "-", '@role': [Arithmetic, Binary, Expression, Operator, Substract], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -886,7 +886,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -900,7 +900,7 @@ col: 7, }, }, - expression: { '@type': "BinaryExpression", + expression: { '@type': "javascript:BinaryExpression", '@role': [Arithmetic, Binary, Expression, Multiply, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -914,7 +914,7 @@ col: 6, }, }, - left: { '@type': "NumericLiteral", + left: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Left, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -934,7 +934,7 @@ '@token': "*", '@role': [Arithmetic, Binary, Expression, Multiply, Operator], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -952,7 +952,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -966,7 +966,7 @@ col: 7, }, }, - expression: { '@type': "BinaryExpression", + expression: { '@type': "javascript:BinaryExpression", '@role': [Arithmetic, Binary, Divide, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -980,7 +980,7 @@ col: 6, }, }, - left: { '@type': "NumericLiteral", + left: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Left, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -1000,7 +1000,7 @@ '@token': "/", '@role': [Arithmetic, Binary, Divide, Expression, Operator], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -1018,7 +1018,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1032,7 +1032,7 @@ col: 7, }, }, - expression: { '@type': "BinaryExpression", + expression: { '@type': "javascript:BinaryExpression", '@role': [Arithmetic, Binary, Expression, Modulo, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1046,7 +1046,7 @@ col: 6, }, }, - left: { '@type': "NumericLiteral", + left: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Left, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -1066,7 +1066,7 @@ '@token': "%", '@role': [Arithmetic, Binary, Expression, Modulo, Operator], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -1084,7 +1084,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1098,7 +1098,7 @@ col: 7, }, }, - expression: { '@type': "BinaryExpression", + expression: { '@type': "javascript:BinaryExpression", '@role': [Binary, Bitwise, Expression, Operator, Or], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1112,7 +1112,7 @@ col: 6, }, }, - left: { '@type': "NumericLiteral", + left: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Left, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -1132,7 +1132,7 @@ '@token': "|", '@role': [Binary, Bitwise, Expression, Operator, Or], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -1150,7 +1150,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1164,7 +1164,7 @@ col: 7, }, }, - expression: { '@type': "BinaryExpression", + expression: { '@type': "javascript:BinaryExpression", '@role': [Binary, Bitwise, Expression, Operator, Xor], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1178,7 +1178,7 @@ col: 6, }, }, - left: { '@type': "NumericLiteral", + left: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Left, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -1198,7 +1198,7 @@ '@token': "^", '@role': [Binary, Bitwise, Expression, Operator, Xor], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -1216,7 +1216,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1230,7 +1230,7 @@ col: 7, }, }, - expression: { '@type': "BinaryExpression", + expression: { '@type': "javascript:BinaryExpression", '@role': [And, Binary, Bitwise, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1244,7 +1244,7 @@ col: 6, }, }, - left: { '@type': "NumericLiteral", + left: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Left, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -1264,7 +1264,7 @@ '@token': "&", '@role': [And, Binary, Bitwise, Expression, Operator], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -1282,7 +1282,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1296,7 +1296,7 @@ col: 8, }, }, - expression: { '@type': "BinaryExpression", + expression: { '@type': "javascript:BinaryExpression", '@role': [Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1310,7 +1310,7 @@ col: 7, }, }, - left: { '@type': "NumericLiteral", + left: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Left, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -1330,7 +1330,7 @@ '@token': "in", '@role': [Binary, Expression, Operator], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -1348,7 +1348,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1362,7 +1362,7 @@ col: 16, }, }, - expression: { '@type': "BinaryExpression", + expression: { '@type': "javascript:BinaryExpression", '@role': [Binary, Expression, Operator, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1376,7 +1376,7 @@ col: 15, }, }, - left: { '@type': "NumericLiteral", + left: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Left, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -1396,7 +1396,7 @@ '@token': "instanceof", '@role': [Binary, Expression, Operator, Type], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -1414,7 +1414,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1428,7 +1428,7 @@ col: 8, }, }, - expression: { '@type': "BinaryExpression", + expression: { '@type': "javascript:BinaryExpression", '@role': [Binary, Expression, Incomplete, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/bind-expression.js.sem.uast b/fixtures/bind-expression.js.sem.uast index 9cfd7cb..a46a9dc 100644 --- a/fixtures/bind-expression.js.sem.uast +++ b/fixtures/bind-expression.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -43,7 +43,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -72,7 +72,7 @@ }, Name: "x", }, - init: { '@type': "BindExpression", + init: { '@type': "javascript:BindExpression", '@role': [Expression, Incomplete, Initialization], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -86,7 +86,7 @@ col: 14, }, }, - callee: { '@type': "MemberExpression", + callee: { '@type': "javascript:MemberExpression", '@role': [Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/block-statement.js.sem.uast b/fixtures/block-statement.js.sem.uast index b21a9ca..88be62f 100644 --- a/fixtures/block-statement.js.sem.uast +++ b/fixtures/block-statement.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/boolean-literal.js.sem.uast b/fixtures/boolean-literal.js.sem.uast index 7046bb9..bcf0873 100644 --- a/fixtures/boolean-literal.js.sem.uast +++ b/fixtures/boolean-literal.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 6, }, }, - expression: { '@type': "BooleanLiteral", + expression: { '@type': "javascript:BooleanLiteral", '@token': true, '@role': [Boolean, Expression, Literal], '@pos': { '@type': "uast:Positions", @@ -59,7 +59,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -73,7 +73,7 @@ col: 6, }, }, - expression: { '@type': "BooleanLiteral", + expression: { '@type': "javascript:BooleanLiteral", '@token': false, '@role': [Boolean, Expression, Literal], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/break-statement.js.sem.uast b/fixtures/break-statement.js.sem.uast index 93d709d..304f159 100644 --- a/fixtures/break-statement.js.sem.uast +++ b/fixtures/break-statement.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "WhileStatement", + { '@type': "javascript:WhileStatement", '@role': [Statement, While], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -57,7 +57,7 @@ }, }, Statements: [ - { '@type': "BreakStatement", + { '@type': "javascript:BreakStatement", '@role': [Break, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -75,7 +75,7 @@ }, ], }, - test: { '@type': "BooleanLiteral", + test: { '@type': "javascript:BooleanLiteral", '@token': true, '@role': [Boolean, Condition, Expression, Literal, While], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/call-expression.js.sem.uast b/fixtures/call-expression.js.sem.uast index a92074e..6120801 100644 --- a/fixtures/call-expression.js.sem.uast +++ b/fixtures/call-expression.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 5, }, }, - expression: { '@type': "CallExpression", + expression: { '@type': "javascript:CallExpression", '@role': [Call, Expression], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -75,7 +75,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -89,7 +89,7 @@ col: 6, }, }, - expression: { '@type': "CallExpression", + expression: { '@type': "javascript:CallExpression", '@role': [Call, Expression], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -139,7 +139,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -153,7 +153,7 @@ col: 9, }, }, - expression: { '@type': "CallExpression", + expression: { '@type': "javascript:CallExpression", '@role': [Call, Expression], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -168,7 +168,7 @@ }, }, arguments: [ - { '@type': "SpreadElement", + { '@type': "javascript:SpreadElement", '@role': [ArgsList, Argument, Call, Incomplete, List, Value], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -217,7 +217,7 @@ }, }, }, - { '@type': "ClassDeclaration", + { '@type': "javascript:ClassDeclaration", '@role': [Declaration, Statement, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -231,7 +231,7 @@ col: 49, }, }, - body: { '@type': "ClassBody", + body: { '@type': "javascript:ClassBody", '@role': [Body, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -246,7 +246,7 @@ }, }, body: [ - { '@type': "ClassMethod", + { '@type': "javascript:ClassMethod", '@role': [Declaration, Function, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -276,7 +276,7 @@ }, }, Statements: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -290,7 +290,7 @@ col: 45, }, }, - expression: { '@type': "CallExpression", + expression: { '@type': "javascript:CallExpression", '@role': [Call, Expression], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -305,7 +305,7 @@ }, }, arguments: [], - callee: { '@type': "Super", + callee: { '@type': "javascript:Super", '@role': [Base, Call, Callee, Expression, Identifier], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -382,7 +382,7 @@ Name: "B", }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -396,7 +396,7 @@ col: 12, }, }, - expression: { '@type': "CallExpression", + expression: { '@type': "javascript:CallExpression", '@role': [Call, Expression], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -429,7 +429,7 @@ Value: "", }, ], - callee: { '@type': "Import", + callee: { '@type': "javascript:Import", '@role': [Call, Callee, Expression, Import], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/case-statement.js.sem.uast b/fixtures/case-statement.js.sem.uast index ea23ef9..6c82abd 100644 --- a/fixtures/case-statement.js.sem.uast +++ b/fixtures/case-statement.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "SwitchStatement", + { '@type': "javascript:SwitchStatement", '@role': [Statement, Switch], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -43,7 +43,7 @@ }, }, cases: [ - { '@type': "SwitchCase", + { '@type': "javascript:SwitchCase", '@role': [Case, Switch], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -58,7 +58,7 @@ }, }, consequent: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -72,7 +72,7 @@ col: 9, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -106,7 +106,7 @@ '@token': "=", '@role': [Assignment, Binary, Expression, Operator], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Assignment, Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -124,7 +124,7 @@ }, }, }, - { '@type': "BreakStatement", + { '@type': "javascript:BreakStatement", '@role': [Break, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -141,7 +141,7 @@ label: ~, }, ], - test: { '@type': "BooleanLiteral", + test: { '@type': "javascript:BooleanLiteral", '@token': true, '@role': [Boolean, Case, Condition, Expression, Literal], '@pos': { '@type': "uast:Positions", @@ -158,7 +158,7 @@ }, }, }, - { '@type': "SwitchCase", + { '@type': "javascript:SwitchCase", '@role': [Case, Switch], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -173,7 +173,7 @@ }, }, consequent: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -187,7 +187,7 @@ col: 9, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -221,7 +221,7 @@ '@token': "=", '@role': [Assignment, Binary, Expression, Operator], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 1, '@role': [Assignment, Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -240,7 +240,7 @@ }, }, ], - test: { '@type': "BooleanLiteral", + test: { '@type': "javascript:BooleanLiteral", '@token': false, '@role': [Boolean, Case, Condition, Expression, Literal], '@pos': { '@type': "uast:Positions", @@ -257,7 +257,7 @@ }, }, }, - { '@type': "SwitchCase", + { '@type': "javascript:SwitchCase", '@role': [Case, Switch], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -272,7 +272,7 @@ }, }, consequent: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -286,7 +286,7 @@ col: 9, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -320,7 +320,7 @@ '@token': "=", '@role': [Assignment, Binary, Expression, Operator], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 2, '@role': [Assignment, Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -338,7 +338,7 @@ }, }, }, - { '@type': "BreakStatement", + { '@type': "javascript:BreakStatement", '@role': [Break, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -358,7 +358,7 @@ test: ~, }, ], - discriminant: { '@type': "BooleanLiteral", + discriminant: { '@type': "javascript:BooleanLiteral", '@token': true, '@role': [Boolean, Condition, Expression, Literal, Switch], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/class-body.js.sem.uast b/fixtures/class-body.js.sem.uast index bd8935e..8514aae 100644 --- a/fixtures/class-body.js.sem.uast +++ b/fixtures/class-body.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ClassDeclaration", + { '@type': "javascript:ClassDeclaration", '@role': [Declaration, Statement, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 11, }, }, - body: { '@type': "ClassBody", + body: { '@type': "javascript:ClassBody", '@role': [Body, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/class-declaration.js.sem.uast b/fixtures/class-declaration.js.sem.uast index bd8935e..8514aae 100644 --- a/fixtures/class-declaration.js.sem.uast +++ b/fixtures/class-declaration.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ClassDeclaration", + { '@type': "javascript:ClassDeclaration", '@role': [Declaration, Statement, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 11, }, }, - body: { '@type': "ClassBody", + body: { '@type': "javascript:ClassBody", '@role': [Body, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/class-expression.js.sem.uast b/fixtures/class-expression.js.sem.uast index 5507a4c..fa010ec 100644 --- a/fixtures/class-expression.js.sem.uast +++ b/fixtures/class-expression.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -43,7 +43,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -72,7 +72,7 @@ }, Name: "x", }, - init: { '@type': "ClassExpression", + init: { '@type': "javascript:ClassExpression", '@role': [Declaration, Expression, Initialization, Literal, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -86,7 +86,7 @@ col: 17, }, }, - body: { '@type': "ClassBody", + body: { '@type': "javascript:ClassBody", '@role': [Body, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/class-method.js.sem.uast b/fixtures/class-method.js.sem.uast index 1ab7e34..85d3521 100644 --- a/fixtures/class-method.js.sem.uast +++ b/fixtures/class-method.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ClassDeclaration", + { '@type': "javascript:ClassDeclaration", '@role': [Declaration, Statement, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 20, }, }, - body: { '@type': "ClassBody", + body: { '@type': "javascript:ClassBody", '@role': [Body, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -57,7 +57,7 @@ }, }, body: [ - { '@type': "ClassMethod", + { '@type': "javascript:ClassMethod", '@role': [Declaration, Function, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/class-private-method.js.sem.uast b/fixtures/class-private-method.js.sem.uast index 9e76e4d..dec7ca0 100644 --- a/fixtures/class-private-method.js.sem.uast +++ b/fixtures/class-private-method.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ClassDeclaration", + { '@type': "javascript:ClassDeclaration", '@role': [Declaration, Statement, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 21, }, }, - body: { '@type': "ClassBody", + body: { '@type': "javascript:ClassBody", '@role': [Body, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -57,7 +57,7 @@ }, }, body: [ - { '@type': "ClassPrivateMethod", + { '@type': "javascript:ClassPrivateMethod", '@role': [Declaration, Function, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -90,7 +90,7 @@ }, generator: false, id: ~, - key: { '@type': "PrivateName", + key: { '@type': "javascript:PrivateName", '@role': [Expression, Identifier, Instance, Key, Name, Qualified, Visibility], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/class-private-property.js.sem.uast b/fixtures/class-private-property.js.sem.uast index 86a08b6..a0517f3 100644 --- a/fixtures/class-private-property.js.sem.uast +++ b/fixtures/class-private-property.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ClassDeclaration", + { '@type': "javascript:ClassDeclaration", '@role': [Declaration, Statement, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 19, }, }, - body: { '@type': "ClassBody", + body: { '@type': "javascript:ClassBody", '@role': [Body, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -57,7 +57,7 @@ }, }, body: [ - { '@type': "ClassPrivateProperty", + { '@type': "javascript:ClassPrivateProperty", '@role': [Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -71,7 +71,7 @@ col: 17, }, }, - key: { '@type': "PrivateName", + key: { '@type': "javascript:PrivateName", '@role': [Expression, Identifier, Instance, Key, Name, Qualified, Visibility], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -102,7 +102,7 @@ }, }, static: false, - value: { '@type': "NumericLiteral", + value: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Expression, Initialization, Literal, Number, Value], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/class-property.js.sem.uast b/fixtures/class-property.js.sem.uast index bf4a8a1..202dd91 100644 --- a/fixtures/class-property.js.sem.uast +++ b/fixtures/class-property.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ClassDeclaration", + { '@type': "javascript:ClassDeclaration", '@role': [Declaration, Statement, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 19, }, }, - body: { '@type': "ClassBody", + body: { '@type': "javascript:ClassBody", '@role': [Body, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -57,7 +57,7 @@ }, }, body: [ - { '@type': "ClassProperty", + { '@type': "javascript:ClassProperty", '@role': [Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -89,7 +89,7 @@ Name: "a", }, static: false, - value: { '@type': "NumericLiteral", + value: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Expression, Initialization, Literal, Number, Value], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/comment.js.sem.uast b/fixtures/comment.js.sem.uast index 9f6ea3a..6d4910c 100644 --- a/fixtures/comment.js.sem.uast +++ b/fixtures/comment.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -71,7 +71,7 @@ Text: "Yet another comment", }, ], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/conditional-expression.js.sem.uast b/fixtures/conditional-expression.js.sem.uast index f1b09c1..24a8bfc 100644 --- a/fixtures/conditional-expression.js.sem.uast +++ b/fixtures/conditional-expression.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 10, }, }, - expression: { '@type': "ConditionalExpression", + expression: { '@type': "javascript:ConditionalExpression", '@role': [Condition, Expression, If], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -56,7 +56,7 @@ col: 10, }, }, - alternate: { '@type': "NumericLiteral", + alternate: { '@type': "javascript:NumericLiteral", '@token': 1, '@role': [Body, Else, Expression, If, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -72,7 +72,7 @@ }, }, }, - consequent: { '@type': "NumericLiteral", + consequent: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Body, Expression, If, Literal, Number, Then], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/continue-statement.js.sem.uast b/fixtures/continue-statement.js.sem.uast index 3d36837..2545d51 100644 --- a/fixtures/continue-statement.js.sem.uast +++ b/fixtures/continue-statement.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ForStatement", + { '@type': "javascript:ForStatement", '@role': [For, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -56,7 +56,7 @@ }, }, Statements: [ - { '@type': "ContinueStatement", + { '@type': "javascript:ContinueStatement", '@role': [Continue, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -74,7 +74,7 @@ }, ], }, - init: { '@type': "VariableDeclaration", + init: { '@type': "javascript:VariableDeclaration", '@role': [Declaration, For, Initialization, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -89,7 +89,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -118,7 +118,7 @@ }, Name: "i", }, - init: { '@type': "NumericLiteral", + init: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Expression, Initialization, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -138,7 +138,7 @@ ], kind: "var", }, - test: { '@type': "BinaryExpression", + test: { '@type': "javascript:BinaryExpression", '@role': [Binary, Condition, Expression, For, LessThan, Operator, Relational], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -172,7 +172,7 @@ '@token': "<", '@role': [Binary, Expression, LessThan, Operator, Relational], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 10, '@role': [Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -189,7 +189,7 @@ }, }, }, - update: { '@type': "UpdateExpression", + update: { '@type': "javascript:UpdateExpression", '@role': [Arithmetic, Expression, For, Increment, Operator, Postfix, Unary, Update], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/debugger-statement.js.sem.uast b/fixtures/debugger-statement.js.sem.uast index 91f7631..081d2cb 100644 --- a/fixtures/debugger-statement.js.sem.uast +++ b/fixtures/debugger-statement.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "DebuggerStatement", + { '@type': "javascript:DebuggerStatement", '@role': [Incomplete, Noop, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/decorator.js.sem.uast b/fixtures/decorator.js.sem.uast index 0e99c93..2b9296f 100644 --- a/fixtures/decorator.js.sem.uast +++ b/fixtures/decorator.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ClassDeclaration", + { '@type': "javascript:ClassDeclaration", '@role': [Declaration, Statement, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 14, }, }, - body: { '@type': "ClassBody", + body: { '@type': "javascript:ClassBody", '@role': [Body, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -59,7 +59,7 @@ body: [], }, decorators: [ - { '@type': "Decorator", + { '@type': "javascript:Decorator", '@role': [Annotation, Incomplete], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/directive-literal.js.sem.uast b/fixtures/directive-literal.js.sem.uast index 460922a..52c59bf 100644 --- a/fixtures/directive-literal.js.sem.uast +++ b/fixtures/directive-literal.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -29,7 +29,7 @@ }, body: [], directives: [ - { '@type': "Directive", + { '@type': "javascript:Directive", '@role': [Incomplete], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -43,7 +43,7 @@ col: 14, }, }, - value: { '@type': "DirectiveLiteral", + value: { '@type': "javascript:DirectiveLiteral", '@token': "use strict", '@role': [Expression, Incomplete, Literal], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/directive.js.sem.uast b/fixtures/directive.js.sem.uast index 460922a..52c59bf 100644 --- a/fixtures/directive.js.sem.uast +++ b/fixtures/directive.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -29,7 +29,7 @@ }, body: [], directives: [ - { '@type': "Directive", + { '@type': "javascript:Directive", '@role': [Incomplete], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -43,7 +43,7 @@ col: 14, }, }, - value: { '@type': "DirectiveLiteral", + value: { '@type': "javascript:DirectiveLiteral", '@token': "use strict", '@role': [Expression, Incomplete, Literal], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/do-expression.js.sem.uast b/fixtures/do-expression.js.sem.uast index d6227c2..972e21c 100644 --- a/fixtures/do-expression.js.sem.uast +++ b/fixtures/do-expression.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -43,7 +43,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -72,7 +72,7 @@ }, Name: "_", }, - init: { '@type': "DoExpression", + init: { '@type': "javascript:DoExpression", '@role': [Expression, Incomplete, Initialization], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -101,7 +101,7 @@ }, }, Statements: [ - { '@type': "IfStatement", + { '@type': "javascript:IfStatement", '@role': [If, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -130,7 +130,7 @@ }, }, Statements: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -144,7 +144,7 @@ col: 35, }, }, - expression: { '@type': "NumericLiteral", + expression: { '@type': "javascript:NumericLiteral", '@token': 1, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -178,7 +178,7 @@ }, }, Statements: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -192,7 +192,7 @@ col: 24, }, }, - expression: { '@type': "NumericLiteral", + expression: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/empty-statement.js.sem.uast b/fixtures/empty-statement.js.sem.uast index 3deb2e9..597d87c 100644 --- a/fixtures/empty-statement.js.sem.uast +++ b/fixtures/empty-statement.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "EmptyStatement", + { '@type': "javascript:EmptyStatement", '@role': [Noop, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/export-declaration.js.sem.uast b/fixtures/export-declaration.js.sem.uast index 07c2cac..55a6597 100644 --- a/fixtures/export-declaration.js.sem.uast +++ b/fixtures/export-declaration.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ExportNamedDeclaration", + { '@type': "javascript:ExportNamedDeclaration", '@role': [Declaration, Incomplete, Module, Statement, Visibility], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -118,7 +118,7 @@ source: ~, specifiers: [], }, - { '@type': "ExportDefaultDeclaration", + { '@type': "javascript:ExportDefaultDeclaration", '@role': [Declaration, Incomplete, Module, Statement, Visibility], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -132,7 +132,7 @@ col: 18, }, }, - declaration: { '@type': "NumericLiteral", + declaration: { '@type': "javascript:NumericLiteral", '@token': 1, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -149,7 +149,7 @@ }, }, }, - { '@type': "ExportAllDeclaration", + { '@type': "javascript:ExportAllDeclaration", '@role': [Declaration, Incomplete, Module, Statement, Visibility], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -181,7 +181,7 @@ Value: "mod", }, }, - { '@type': "ExportNamedDeclaration", + { '@type': "javascript:ExportNamedDeclaration", '@role': [Declaration, Incomplete, Module, Statement, Visibility], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -199,7 +199,7 @@ exportKind: "value", source: ~, specifiers: [ - { '@type': "ExportSpecifier", + { '@type': "javascript:ExportSpecifier", '@role': [Incomplete], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -246,7 +246,7 @@ Name: "foo", }, }, - { '@type': "ExportSpecifier", + { '@type': "javascript:ExportSpecifier", '@role': [Incomplete], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/expression-statement.js.sem.uast b/fixtures/expression-statement.js.sem.uast index 7682f74..60849ae 100644 --- a/fixtures/expression-statement.js.sem.uast +++ b/fixtures/expression-statement.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 2, }, }, - expression: { '@type': "NumericLiteral", + expression: { '@type': "javascript:NumericLiteral", '@token': 3, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/ext_typedecl.js.sem.uast b/fixtures/ext_typedecl.js.sem.uast index 253f03a..975b027 100644 --- a/fixtures/ext_typedecl.js.sem.uast +++ b/fixtures/ext_typedecl.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "TypeAlias", + { '@type': "javascript:TypeAlias", '@role': [Alias, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -57,7 +57,7 @@ }, Name: "EnvFunction", }, - right: { '@type': "ObjectTypeAnnotation", + right: { '@type': "javascript:ObjectTypeAnnotation", '@role': [Declaration, Incomplete, Literal, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -72,7 +72,7 @@ }, }, callProperties: [ - { '@type': "ObjectTypeCallProperty", + { '@type': "javascript:ObjectTypeCallProperty", '@role': [Declaration, Function, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -87,7 +87,7 @@ }, }, static: false, - value: { '@type': "FunctionTypeAnnotation", + value: { '@type': "javascript:FunctionTypeAnnotation", '@role': [Declaration, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -103,7 +103,7 @@ }, params: [], rest: ~, - returnType: { '@type': "StringTypeAnnotation", + returnType: { '@type': "javascript:StringTypeAnnotation", '@role': [Declaration, String, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -121,7 +121,7 @@ typeParameters: ~, }, }, - { '@type': "ObjectTypeCallProperty", + { '@type': "javascript:ObjectTypeCallProperty", '@role': [Declaration, Function, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -136,7 +136,7 @@ }, }, static: false, - value: { '@type': "FunctionTypeAnnotation", + value: { '@type': "javascript:FunctionTypeAnnotation", '@role': [Declaration, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -151,7 +151,7 @@ }, }, params: [ - { '@type': "FunctionTypeParam", + { '@type': "javascript:FunctionTypeParam", '@role': [Argument, Declaration, Function, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -167,7 +167,7 @@ }, name: ~, optional: false, - typeAnnotation: { '@type': "FunctionTypeAnnotation", + typeAnnotation: { '@type': "javascript:FunctionTypeAnnotation", '@role': [Declaration, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -182,7 +182,7 @@ }, }, params: [ - { '@type': "FunctionTypeParam", + { '@type': "javascript:FunctionTypeParam", '@role': [Argument, Declaration, Function, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -198,7 +198,7 @@ }, name: ~, optional: false, - typeAnnotation: { '@type': "StringTypeAnnotation", + typeAnnotation: { '@type': "javascript:StringTypeAnnotation", '@role': [Declaration, String, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -216,7 +216,7 @@ }, ], rest: ~, - returnType: { '@type': "GenericTypeAnnotation", + returnType: { '@type': "javascript:GenericTypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -252,7 +252,7 @@ }, ], rest: ~, - returnType: { '@type': "GenericTypeAnnotation", + returnType: { '@type': "javascript:GenericTypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -283,7 +283,7 @@ }, typeParameters: ~, }, - typeParameters: { '@type': "TypeParameterDeclaration", + typeParameters: { '@type': "javascript:TypeParameterDeclaration", '@role': [Argument, Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -298,7 +298,7 @@ }, }, params: [ - { '@type': "TypeParameter", + { '@type': "javascript:TypeParameter", '@role': [Argument, Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -319,7 +319,7 @@ }, }, }, - { '@type': "ObjectTypeCallProperty", + { '@type': "javascript:ObjectTypeCallProperty", '@role': [Declaration, Function, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -334,7 +334,7 @@ }, }, static: false, - value: { '@type': "FunctionTypeAnnotation", + value: { '@type': "javascript:FunctionTypeAnnotation", '@role': [Declaration, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -349,7 +349,7 @@ }, }, params: [ - { '@type': "FunctionTypeParam", + { '@type': "javascript:FunctionTypeParam", '@role': [Argument, Declaration, Function, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -365,7 +365,7 @@ }, name: ~, optional: false, - typeAnnotation: { '@type': "StringTypeAnnotation", + typeAnnotation: { '@type': "javascript:StringTypeAnnotation", '@role': [Declaration, String, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -383,7 +383,7 @@ }, ], rest: ~, - returnType: { '@type': "BooleanTypeAnnotation", + returnType: { '@type': "javascript:BooleanTypeAnnotation", '@role': [Boolean, Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -401,7 +401,7 @@ typeParameters: ~, }, }, - { '@type': "ObjectTypeCallProperty", + { '@type': "javascript:ObjectTypeCallProperty", '@role': [Declaration, Function, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -416,7 +416,7 @@ }, }, static: false, - value: { '@type': "FunctionTypeAnnotation", + value: { '@type': "javascript:FunctionTypeAnnotation", '@role': [Declaration, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -431,7 +431,7 @@ }, }, params: [ - { '@type': "FunctionTypeParam", + { '@type': "javascript:FunctionTypeParam", '@role': [Argument, Declaration, Function, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -447,7 +447,7 @@ }, name: ~, optional: false, - typeAnnotation: { '@type': "GenericTypeAnnotation", + typeAnnotation: { '@type': "javascript:GenericTypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -476,7 +476,7 @@ }, Name: "Array", }, - typeParameters: { '@type': "TypeParameterInstantiation", + typeParameters: { '@type': "javascript:TypeParameterInstantiation", '@role': [Declaration, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -491,7 +491,7 @@ }, }, params: [ - { '@type': "StringTypeAnnotation", + { '@type': "javascript:StringTypeAnnotation", '@role': [Declaration, String, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -512,7 +512,7 @@ }, ], rest: ~, - returnType: { '@type': "BooleanTypeAnnotation", + returnType: { '@type': "javascript:BooleanTypeAnnotation", '@role': [Boolean, Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -537,7 +537,7 @@ }, typeParameters: ~, }, - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -552,7 +552,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -581,7 +581,7 @@ }, Name: "packageToBabelConfig", }, - init: { '@type': "CallExpression", + init: { '@type': "javascript:CallExpression", '@role': [Call, Expression, Initialization], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -596,7 +596,7 @@ }, }, arguments: [ - { '@type': "ArrowFunctionExpression", + { '@type': "javascript:ArrowFunctionExpression", '@role': [Anonymous, Argument, Call, Declaration, Expression, Function], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -626,7 +626,7 @@ }, }, Statements: [ - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -641,7 +641,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -670,7 +670,7 @@ }, Name: "babel", }, - init: { '@type': "MemberExpression", + init: { '@type': "javascript:MemberExpression", '@role': [Expression, Identifier, Initialization, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -685,7 +685,7 @@ }, }, computed: true, - object: { '@type': "MemberExpression", + object: { '@type': "javascript:MemberExpression", '@role': [Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -731,7 +731,7 @@ Name: "options", }, }, - property: { '@type': "TypeCastExpression", + property: { '@type': "javascript:TypeCastExpression", '@role': [Alias, Argument, Declaration, Function, Incomplete], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -761,7 +761,7 @@ Format: "", Value: "babel", }, - typeAnnotation: { '@type': "TypeAnnotation", + typeAnnotation: { '@type': "javascript:TypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -775,7 +775,7 @@ col: 48, }, }, - typeAnnotation: { '@type': "StringTypeAnnotation", + typeAnnotation: { '@type': "javascript:StringTypeAnnotation", '@role': [Declaration, String, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -797,7 +797,7 @@ ], kind: "const", }, - { '@type': "IfStatement", + { '@type': "javascript:IfStatement", '@role': [If, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -812,7 +812,7 @@ }, }, alternate: ~, - consequent: { '@type': "ReturnStatement", + consequent: { '@type': "javascript:ReturnStatement", '@role': [Body, If, Return, Statement, Then], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -826,7 +826,7 @@ col: 51, }, }, - argument: { '@type': "NullLiteral", + argument: { '@type': "javascript:NullLiteral", '@role': [Expression, Literal, 'Null'], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -842,7 +842,7 @@ }, }, }, - test: { '@type': "BinaryExpression", + test: { '@type': "javascript:BinaryExpression", '@role': [Binary, Condition, Expression, Identical, If, Operator, Relational], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -856,7 +856,7 @@ col: 37, }, }, - left: { '@type': "UnaryExpression", + left: { '@type': "javascript:UnaryExpression", '@role': [Binary, Expression, Left, Operator, Type, Unary], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -914,7 +914,7 @@ }, }, }, - { '@type': "IfStatement", + { '@type': "javascript:IfStatement", '@role': [If, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -944,7 +944,7 @@ }, }, Statements: [ - { '@type': "ThrowStatement", + { '@type': "javascript:ThrowStatement", '@role': [Statement, Throw], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -958,7 +958,7 @@ col: 78, }, }, - argument: { '@type': "NewExpression", + argument: { '@type': "javascript:NewExpression", '@role': [Call, Expression, Instance], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -973,7 +973,7 @@ }, }, arguments: [ - { '@type': "TemplateLiteral", + { '@type': "javascript:TemplateLiteral", '@role': [Expression, Incomplete, Literal, String], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -988,7 +988,7 @@ }, }, expressions: [ - { '@type': "MemberExpression", + { '@type': "javascript:MemberExpression", '@role': [Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1036,7 +1036,7 @@ }, ], quasis: [ - { '@type': "TemplateElement", + { '@type': "javascript:TemplateElement", '@role': [Expression, Incomplete, String, Value], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1052,7 +1052,7 @@ }, tail: false, }, - { '@type': "TemplateElement", + { '@type': "javascript:TemplateElement", '@role': [Expression, Incomplete, String, Value], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1090,7 +1090,7 @@ }, ], }, - test: { '@type': "LogicalExpression", + test: { '@type': "javascript:LogicalExpression", '@role': [Binary, Boolean, Condition, Expression, If, Operator, Or], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1104,7 +1104,7 @@ col: 76, }, }, - left: { '@type': "LogicalExpression", + left: { '@type': "javascript:LogicalExpression", '@role': [Binary, Boolean, Expression, Left, Operator, Or], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1118,7 +1118,7 @@ col: 58, }, }, - left: { '@type': "BinaryExpression", + left: { '@type': "javascript:BinaryExpression", '@role': [Binary, Boolean, Expression, Identical, Left, Not, Operator, Relational], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1132,7 +1132,7 @@ col: 34, }, }, - left: { '@type': "UnaryExpression", + left: { '@type': "javascript:UnaryExpression", '@role': [Binary, Expression, Left, Operator, Type, Unary], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1193,7 +1193,7 @@ '@token': "||", '@role': [Binary, Boolean, Expression, Operator, Or], }, - right: { '@type': "CallExpression", + right: { '@type': "javascript:CallExpression", '@role': [Binary, Boolean, Call, Expression, Right], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1225,7 +1225,7 @@ Name: "babel", }, ], - callee: { '@type': "MemberExpression", + callee: { '@type': "javascript:MemberExpression", '@role': [Call, Callee, Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1277,7 +1277,7 @@ '@token': "||", '@role': [Binary, Boolean, Expression, Operator, Or], }, - right: { '@type': "BinaryExpression", + right: { '@type': "javascript:BinaryExpression", '@role': [Binary, Boolean, Expression, Identical, Operator, Relational, Right], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1311,7 +1311,7 @@ '@token': "===", '@role': [Binary, Expression, Identical, Operator, Relational], }, - right: { '@type': "NullLiteral", + right: { '@type': "javascript:NullLiteral", '@role': [Binary, Expression, Literal, 'Null', Right], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1329,7 +1329,7 @@ }, }, }, - { '@type': "ReturnStatement", + { '@type': "javascript:ReturnStatement", '@role': [Return, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1343,7 +1343,7 @@ col: 7, }, }, - argument: { '@type': "ObjectExpression", + argument: { '@type': "javascript:ObjectExpression", '@role': [Expression, Initialization, Literal, Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1358,7 +1358,7 @@ }, }, properties: [ - { '@type': "ObjectProperty", + { '@type': "javascript:ObjectProperty", '@role': [Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1391,7 +1391,7 @@ }, method: false, shorthand: false, - value: { '@type': "MemberExpression", + value: { '@type': "javascript:MemberExpression", '@role': [Expression, Identifier, Map, Qualified, Value], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1438,7 +1438,7 @@ }, }, }, - { '@type': "ObjectProperty", + { '@type': "javascript:ObjectProperty", '@role': [Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1471,7 +1471,7 @@ }, method: false, shorthand: false, - value: { '@type': "MemberExpression", + value: { '@type': "javascript:MemberExpression", '@role': [Expression, Identifier, Map, Qualified, Value], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1518,7 +1518,7 @@ }, }, }, - { '@type': "ObjectProperty", + { '@type': "javascript:ObjectProperty", '@role': [Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1594,7 +1594,7 @@ }, ], predicate: ~, - returnType: { '@type': "TypeAnnotation", + returnType: { '@type': "javascript:TypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1608,7 +1608,7 @@ col: 40, }, }, - typeAnnotation: { '@type': "UnionTypeAnnotation", + typeAnnotation: { '@type': "javascript:UnionTypeAnnotation", '@role': [Declaration, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1623,7 +1623,7 @@ }, }, types: [ - { '@type': "GenericTypeAnnotation", + { '@type': "javascript:GenericTypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1654,7 +1654,7 @@ }, typeParameters: ~, }, - { '@type': "NullLiteralTypeAnnotation", + { '@type': "javascript:NullLiteralTypeAnnotation", '@role': [Declaration, 'Null', Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1695,7 +1695,7 @@ ], kind: "const", }, - { '@type': "TypeAlias", + { '@type': "javascript:TypeAlias", '@role': [Alias, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1724,7 +1724,7 @@ }, Name: "VisitorHandler", }, - right: { '@type': "UnionTypeAnnotation", + right: { '@type': "javascript:UnionTypeAnnotation", '@role': [Declaration, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1739,7 +1739,7 @@ }, }, types: [ - { '@type': "GenericTypeAnnotation", + { '@type': "javascript:GenericTypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1770,7 +1770,7 @@ }, typeParameters: ~, }, - { '@type': "ObjectTypeAnnotation", + { '@type': "javascript:ObjectTypeAnnotation", '@role': [Declaration, Incomplete, Literal, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1788,7 +1788,7 @@ exact: false, indexers: [], properties: [ - { '@type': "ObjectTypeProperty", + { '@type': "javascript:ObjectTypeProperty", '@role': [Declaration, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1820,7 +1820,7 @@ kind: "init", optional: true, static: false, - value: { '@type': "GenericTypeAnnotation", + value: { '@type': "javascript:GenericTypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1853,7 +1853,7 @@ }, variance: ~, }, - { '@type': "ObjectTypeProperty", + { '@type': "javascript:ObjectTypeProperty", '@role': [Declaration, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1885,7 +1885,7 @@ kind: "init", optional: true, static: false, - value: { '@type': "GenericTypeAnnotation", + value: { '@type': "javascript:GenericTypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1924,7 +1924,7 @@ }, typeParameters: ~, }, - { '@type': "ExportNamedDeclaration", + { '@type': "javascript:ExportNamedDeclaration", '@role': [Declaration, Incomplete, Module, Statement, Visibility], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1938,7 +1938,7 @@ col: 3, }, }, - declaration: { '@type': "TypeAlias", + declaration: { '@type': "javascript:TypeAlias", '@role': [Alias, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1967,7 +1967,7 @@ }, Name: "VisitorMap", }, - right: { '@type': "ObjectTypeAnnotation", + right: { '@type': "javascript:ObjectTypeAnnotation", '@role': [Declaration, Incomplete, Literal, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1984,7 +1984,7 @@ callProperties: [], exact: false, indexers: [ - { '@type': "ObjectTypeIndexer", + { '@type': "javascript:ObjectTypeIndexer", '@role': [Declaration, Incomplete], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1999,7 +1999,7 @@ }, }, id: ~, - key: { '@type': "StringTypeAnnotation", + key: { '@type': "javascript:StringTypeAnnotation", '@role': [Declaration, String, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2015,7 +2015,7 @@ }, }, static: false, - value: { '@type': "GenericTypeAnnotation", + value: { '@type': "javascript:GenericTypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2057,7 +2057,7 @@ source: ~, specifiers: [], }, - { '@type': "ExportNamedDeclaration", + { '@type': "javascript:ExportNamedDeclaration", '@role': [Declaration, Incomplete, Module, Statement, Visibility], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2071,7 +2071,7 @@ col: 30, }, }, - declaration: { '@type': "TypeAlias", + declaration: { '@type': "javascript:TypeAlias", '@role': [Alias, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2100,7 +2100,7 @@ }, Name: "SimpleCacheConfigurator", }, - right: { '@type': "IntersectionTypeAnnotation", + right: { '@type': "javascript:IntersectionTypeAnnotation", '@role': [Declaration, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2115,7 +2115,7 @@ }, }, types: [ - { '@type': "GenericTypeAnnotation", + { '@type': "javascript:GenericTypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2146,7 +2146,7 @@ }, typeParameters: ~, }, - { '@type': "GenericTypeAnnotation", + { '@type': "javascript:GenericTypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2185,7 +2185,7 @@ source: ~, specifiers: [], }, - { '@type': "ExportNamedDeclaration", + { '@type': "javascript:ExportNamedDeclaration", '@role': [Declaration, Incomplete, Module, Statement, Visibility], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2249,7 +2249,7 @@ }, }, Statements: [ - { '@type': "ReturnStatement", + { '@type': "javascript:ReturnStatement", '@role': [Return, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2263,7 +2263,7 @@ col: 53, }, }, - argument: { '@type': "CallExpression", + argument: { '@type': "javascript:CallExpression", '@role': [Call, Expression], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2278,7 +2278,7 @@ }, }, arguments: [ - { '@type': "NewExpression", + { '@type': "javascript:NewExpression", '@role': [Argument, Call, Expression, Instance], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2394,7 +2394,7 @@ source: ~, specifiers: [], }, - { '@type': "ClassDeclaration", + { '@type': "javascript:ClassDeclaration", '@role': [Declaration, Statement, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2408,7 +2408,7 @@ col: 2, }, }, - body: { '@type': "ClassBody", + body: { '@type': "javascript:ClassBody", '@role': [Body, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2423,7 +2423,7 @@ }, }, body: [ - { '@type': "ClassProperty", + { '@type': "javascript:ClassProperty", '@role': [Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2455,7 +2455,7 @@ Name: "_pairs", }, static: false, - typeAnnotation: { '@type': "TypeAnnotation", + typeAnnotation: { '@type': "javascript:TypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2469,7 +2469,7 @@ col: 49, }, }, - typeAnnotation: { '@type': "GenericTypeAnnotation", + typeAnnotation: { '@type': "javascript:GenericTypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2498,7 +2498,7 @@ }, Name: "Array", }, - typeParameters: { '@type': "TypeParameterInstantiation", + typeParameters: { '@type': "javascript:TypeParameterInstantiation", '@role': [Declaration, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2513,7 +2513,7 @@ }, }, params: [ - { '@type': "TupleTypeAnnotation", + { '@type': "javascript:TupleTypeAnnotation", '@role': [Declaration, Incomplete, Tuple, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2528,7 +2528,7 @@ }, }, types: [ - { '@type': "MixedTypeAnnotation", + { '@type': "javascript:MixedTypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2543,7 +2543,7 @@ }, }, }, - { '@type': "FunctionTypeAnnotation", + { '@type': "javascript:FunctionTypeAnnotation", '@role': [Declaration, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2558,7 +2558,7 @@ }, }, params: [ - { '@type': "FunctionTypeParam", + { '@type': "javascript:FunctionTypeParam", '@role': [Argument, Declaration, Function, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2574,7 +2574,7 @@ }, name: ~, optional: false, - typeAnnotation: { '@type': "GenericTypeAnnotation", + typeAnnotation: { '@type': "javascript:GenericTypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2608,7 +2608,7 @@ }, ], rest: ~, - returnType: { '@type': "MixedTypeAnnotation", + returnType: { '@type': "javascript:MixedTypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2631,7 +2631,7 @@ }, }, }, - value: { '@type': "ArrayExpression", + value: { '@type': "javascript:ArrayExpression", '@role': [Expression, Initialization, List, Literal, Value], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2668,7 +2668,7 @@ Name: "CacheConfigurator", }, superClass: ~, - typeParameters: { '@type': "TypeParameterDeclaration", + typeParameters: { '@type': "javascript:TypeParameterDeclaration", '@role': [Argument, Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2683,7 +2683,7 @@ }, }, params: [ - { '@type': "TypeParameter", + { '@type': "javascript:TypeParameter", '@role': [Argument, Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2697,7 +2697,7 @@ col: 43, }, }, - default: { '@type': "VoidTypeAnnotation", + default: { '@type': "javascript:VoidTypeAnnotation", '@role': [Declaration, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/flow-annotations.js.sem.uast b/fixtures/flow-annotations.js.sem.uast index cbc78c9..2ef393d 100644 --- a/fixtures/flow-annotations.js.sem.uast +++ b/fixtures/flow-annotations.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -33,7 +33,7 @@ Text: "flow", }, ], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -48,7 +48,7 @@ }, }, body: [ - { '@type': "ExportDefaultDeclaration", + { '@type': "javascript:ExportDefaultDeclaration", '@role': [Declaration, Incomplete, Module, Statement, Visibility], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -62,7 +62,7 @@ col: 2, }, }, - declaration: { '@type': "ClassDeclaration", + declaration: { '@type': "javascript:ClassDeclaration", '@role': [Declaration, Statement, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -76,7 +76,7 @@ col: 2, }, }, - body: { '@type': "ClassBody", + body: { '@type': "javascript:ClassBody", '@role': [Body, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -91,7 +91,7 @@ }, }, body: [ - { '@type': "ClassMethod", + { '@type': "javascript:ClassMethod", '@role': [Declaration, Function, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -226,7 +226,7 @@ ], static: false, }, - { '@type': "ClassMethod", + { '@type': "javascript:ClassMethod", '@role': [Declaration, Function, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -345,7 +345,7 @@ ], static: false, }, - { '@type': "ClassMethod", + { '@type': "javascript:ClassMethod", '@role': [Declaration, Function, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -416,7 +416,7 @@ ], static: false, }, - { '@type': "ClassMethod", + { '@type': "javascript:ClassMethod", '@role': [Declaration, Function, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -487,7 +487,7 @@ ], static: false, }, - { '@type': "ClassMethod", + { '@type': "javascript:ClassMethod", '@role': [Declaration, Function, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -558,7 +558,7 @@ ], static: false, }, - { '@type': "ClassProperty", + { '@type': "javascript:ClassProperty", '@role': [Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -590,7 +590,7 @@ Name: "num", }, static: false, - typeAnnotation: { '@type': "TypeAnnotation", + typeAnnotation: { '@type': "javascript:TypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -604,7 +604,7 @@ col: 16, }, }, - typeAnnotation: { '@type': "NumberTypeAnnotation", + typeAnnotation: { '@type': "javascript:NumberTypeAnnotation", '@role': [Declaration, Number, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -620,7 +620,7 @@ }, }, }, - value: { '@type': "NumericLiteral", + value: { '@type': "javascript:NumericLiteral", '@token': 1, '@role': [Expression, Initialization, Literal, Number, Value], '@pos': { '@type': "uast:Positions", @@ -638,7 +638,7 @@ }, variance: ~, }, - { '@type': "ClassProperty", + { '@type': "javascript:ClassProperty", '@role': [Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -670,7 +670,7 @@ Name: "s", }, static: false, - typeAnnotation: { '@type': "TypeAnnotation", + typeAnnotation: { '@type': "javascript:TypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -684,7 +684,7 @@ col: 14, }, }, - typeAnnotation: { '@type': "StringTypeAnnotation", + typeAnnotation: { '@type': "javascript:StringTypeAnnotation", '@role': [Declaration, String, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -719,7 +719,7 @@ }, variance: ~, }, - { '@type': "ClassProperty", + { '@type': "javascript:ClassProperty", '@role': [Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -751,7 +751,7 @@ Name: "pok", }, static: false, - typeAnnotation: { '@type': "TypeAnnotation", + typeAnnotation: { '@type': "javascript:TypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -765,7 +765,7 @@ col: 14, }, }, - typeAnnotation: { '@type': "GenericTypeAnnotation", + typeAnnotation: { '@type': "javascript:GenericTypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -800,7 +800,7 @@ value: ~, variance: ~, }, - { '@type': "ClassProperty", + { '@type': "javascript:ClassProperty", '@role': [Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -832,7 +832,7 @@ Name: "_map", }, static: false, - typeAnnotation: { '@type': "TypeAnnotation", + typeAnnotation: { '@type': "javascript:TypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -846,7 +846,7 @@ col: 28, }, }, - typeAnnotation: { '@type': "GenericTypeAnnotation", + typeAnnotation: { '@type': "javascript:GenericTypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -875,7 +875,7 @@ }, Name: "Map", }, - typeParameters: { '@type': "TypeParameterInstantiation", + typeParameters: { '@type': "javascript:TypeParameterInstantiation", '@role': [Declaration, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -890,7 +890,7 @@ }, }, params: [ - { '@type': "MixedTypeAnnotation", + { '@type': "javascript:MixedTypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -905,7 +905,7 @@ }, }, }, - { '@type': "MixedTypeAnnotation", + { '@type': "javascript:MixedTypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -924,7 +924,7 @@ }, }, }, - value: { '@type': "CallExpression", + value: { '@type': "javascript:CallExpression", '@role': [Call, Expression, Initialization, Value], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1001,7 +1001,7 @@ }, ], }, - { '@type': "DeclareClass", + { '@type': "javascript:DeclareClass", '@role': [Declaration, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1015,7 +1015,7 @@ col: 34, }, }, - body: { '@type': "ObjectTypeAnnotation", + body: { '@type': "javascript:ObjectTypeAnnotation", '@role': [Declaration, Incomplete, Literal, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1051,7 +1051,7 @@ Name: "A", }, mixins: [ - { '@type': "InterfaceExtends", + { '@type': "javascript:InterfaceExtends", '@role': [Declaration, Incomplete, Subtype, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1080,7 +1080,7 @@ }, Name: "B", }, - typeParameters: { '@type': "TypeParameterInstantiation", + typeParameters: { '@type': "javascript:TypeParameterInstantiation", '@role': [Declaration, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1095,7 +1095,7 @@ }, }, params: [ - { '@type': "GenericTypeAnnotation", + { '@type': "javascript:GenericTypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1129,7 +1129,7 @@ ], }, }, - { '@type': "InterfaceExtends", + { '@type': "javascript:InterfaceExtends", '@role': [Declaration, Incomplete, Subtype, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/for-in-statement.js.sem.uast b/fixtures/for-in-statement.js.sem.uast index 7962830..070dc29 100644 --- a/fixtures/for-in-statement.js.sem.uast +++ b/fixtures/for-in-statement.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ForInStatement", + { '@type': "javascript:ForInStatement", '@role': [For, Iterator, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -58,7 +58,7 @@ }, Statements: [], }, - left: { '@type': "VariableDeclaration", + left: { '@type': "javascript:VariableDeclaration", '@role': [Declaration, For, Iterator, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -73,7 +73,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/for-of-statement.js.sem.uast b/fixtures/for-of-statement.js.sem.uast index 1098d61..ea45f2d 100644 --- a/fixtures/for-of-statement.js.sem.uast +++ b/fixtures/for-of-statement.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ForInStatement", + { '@type': "javascript:ForInStatement", '@role': [For, Iterator, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -58,7 +58,7 @@ }, Statements: [], }, - left: { '@type': "VariableDeclaration", + left: { '@type': "javascript:VariableDeclaration", '@role': [Declaration, For, Iterator, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -73,7 +73,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/for-statement.js.sem.uast b/fixtures/for-statement.js.sem.uast index 263174f..4151d6c 100644 --- a/fixtures/for-statement.js.sem.uast +++ b/fixtures/for-statement.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ForStatement", + { '@type': "javascript:ForStatement", '@role': [For, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 10, }, }, - body: { '@type': "EmptyStatement", + body: { '@type': "javascript:EmptyStatement", '@role': [Noop, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -61,7 +61,7 @@ test: ~, update: ~, }, - { '@type': "ForStatement", + { '@type': "javascript:ForStatement", '@role': [For, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -89,7 +89,7 @@ }, }, Statements: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -103,7 +103,7 @@ col: 38, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -157,7 +157,7 @@ }, ], }, - init: { '@type': "VariableDeclaration", + init: { '@type': "javascript:VariableDeclaration", '@role': [Declaration, For, Initialization, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -172,7 +172,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -201,7 +201,7 @@ }, Name: "i", }, - init: { '@type': "NumericLiteral", + init: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Expression, Initialization, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -221,7 +221,7 @@ ], kind: "let", }, - test: { '@type': "BinaryExpression", + test: { '@type': "javascript:BinaryExpression", '@role': [Binary, Condition, Expression, For, LessThan, Operator, Relational], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -255,7 +255,7 @@ '@token': "<", '@role': [Binary, Expression, LessThan, Operator, Relational], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 10, '@role': [Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -272,7 +272,7 @@ }, }, }, - update: { '@type': "UpdateExpression", + update: { '@type': "javascript:UpdateExpression", '@role': [Arithmetic, Expression, For, Increment, Operator, Postfix, Unary, Update], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/function-declaration.js.sem.uast b/fixtures/function-declaration.js.sem.uast index fbc17d3..255a52f 100644 --- a/fixtures/function-declaration.js.sem.uast +++ b/fixtures/function-declaration.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -77,7 +77,7 @@ }, }, Statements: [ - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -92,7 +92,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -180,7 +180,7 @@ col: 20, }, }, - Init: { '@type': "NumericLiteral", + Init: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/function-expression.js.sem.uast b/fixtures/function-expression.js.sem.uast index 06c3eac..5ba21ba 100644 --- a/fixtures/function-expression.js.sem.uast +++ b/fixtures/function-expression.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -43,7 +43,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -72,7 +72,7 @@ }, Name: "f", }, - init: { '@type': "FunctionExpression", + init: { '@type': "javascript:FunctionExpression", '@role': [Declaration, Expression, Function, Initialization], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -102,7 +102,7 @@ }, }, Statements: [ - { '@type': "ReturnStatement", + { '@type': "javascript:ReturnStatement", '@role': [Return, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -116,7 +116,7 @@ col: 33, }, }, - argument: { '@type': "NumericLiteral", + argument: { '@type': "javascript:NumericLiteral", '@token': 3, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/hello.js.sem.uast b/fixtures/hello.js.sem.uast index 60db537..7f450d0 100644 --- a/fixtures/hello.js.sem.uast +++ b/fixtures/hello.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 28, }, }, - expression: { '@type': "CallExpression", + expression: { '@type': "javascript:CallExpression", '@role': [Call, Expression], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -75,7 +75,7 @@ Value: "Hello World", }, ], - callee: { '@type': "MemberExpression", + callee: { '@type': "javascript:MemberExpression", '@role': [Call, Callee, Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/identifier.js.sem.uast b/fixtures/identifier.js.sem.uast index 6925ce0..c34bb26 100644 --- a/fixtures/identifier.js.sem.uast +++ b/fixtures/identifier.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/if-statement.js.sem.uast b/fixtures/if-statement.js.sem.uast index e8a3c44..458eca3 100644 --- a/fixtures/if-statement.js.sem.uast +++ b/fixtures/if-statement.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "IfStatement", + { '@type': "javascript:IfStatement", '@role': [If, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -43,7 +43,7 @@ }, }, alternate: ~, - consequent: { '@type': "ExpressionStatement", + consequent: { '@type': "javascript:ExpressionStatement", '@role': [Body, If, Statement, Then], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -57,7 +57,7 @@ col: 17, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -91,7 +91,7 @@ '@token': "=", '@role': [Assignment, Binary, Expression, Operator], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 1, '@role': [Assignment, Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -109,7 +109,7 @@ }, }, }, - test: { '@type': "BooleanLiteral", + test: { '@type': "javascript:BooleanLiteral", '@token': true, '@role': [Boolean, Condition, Expression, If, Literal], '@pos': { '@type': "uast:Positions", @@ -126,7 +126,7 @@ }, }, }, - { '@type': "IfStatement", + { '@type': "javascript:IfStatement", '@role': [If, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -140,7 +140,7 @@ col: 12, }, }, - alternate: { '@type': "ExpressionStatement", + alternate: { '@type': "javascript:ExpressionStatement", '@role': [Body, Else, If, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -154,7 +154,7 @@ col: 12, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -188,7 +188,7 @@ '@token': "=", '@role': [Assignment, Binary, Expression, Operator], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 1, '@role': [Assignment, Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -206,7 +206,7 @@ }, }, }, - consequent: { '@type': "ExpressionStatement", + consequent: { '@type': "javascript:ExpressionStatement", '@role': [Body, If, Statement, Then], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -220,7 +220,7 @@ col: 17, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -254,7 +254,7 @@ '@token': "=", '@role': [Assignment, Binary, Expression, Operator], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Assignment, Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -272,7 +272,7 @@ }, }, }, - test: { '@type': "BooleanLiteral", + test: { '@type': "javascript:BooleanLiteral", '@token': true, '@role': [Boolean, Condition, Expression, If, Literal], '@pos': { '@type': "uast:Positions", @@ -289,7 +289,7 @@ }, }, }, - { '@type': "IfStatement", + { '@type': "javascript:IfStatement", '@role': [If, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -303,7 +303,7 @@ col: 12, }, }, - alternate: { '@type': "IfStatement", + alternate: { '@type': "javascript:IfStatement", '@role': [Body, Else, If, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -317,7 +317,7 @@ col: 12, }, }, - alternate: { '@type': "ExpressionStatement", + alternate: { '@type': "javascript:ExpressionStatement", '@role': [Body, Else, If, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -331,7 +331,7 @@ col: 12, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -365,7 +365,7 @@ '@token': "=", '@role': [Assignment, Binary, Expression, Operator], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 2, '@role': [Assignment, Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -383,7 +383,7 @@ }, }, }, - consequent: { '@type': "ExpressionStatement", + consequent: { '@type': "javascript:ExpressionStatement", '@role': [Body, If, Statement, Then], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -397,7 +397,7 @@ col: 22, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -431,7 +431,7 @@ '@token': "=", '@role': [Assignment, Binary, Expression, Operator], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 1, '@role': [Assignment, Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -449,7 +449,7 @@ }, }, }, - test: { '@type': "BooleanLiteral", + test: { '@type': "javascript:BooleanLiteral", '@token': true, '@role': [Boolean, Condition, Expression, If, Literal], '@pos': { '@type': "uast:Positions", @@ -466,7 +466,7 @@ }, }, }, - consequent: { '@type': "ExpressionStatement", + consequent: { '@type': "javascript:ExpressionStatement", '@role': [Body, If, Statement, Then], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -480,7 +480,7 @@ col: 17, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -514,7 +514,7 @@ '@token': "=", '@role': [Assignment, Binary, Expression, Operator], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Assignment, Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -532,7 +532,7 @@ }, }, }, - test: { '@type': "BooleanLiteral", + test: { '@type': "javascript:BooleanLiteral", '@token': true, '@role': [Boolean, Condition, Expression, If, Literal], '@pos': { '@type': "uast:Positions", @@ -549,7 +549,7 @@ }, }, }, - { '@type': "IfStatement", + { '@type': "javascript:IfStatement", '@role': [If, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -579,7 +579,7 @@ }, }, Statements: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -593,7 +593,7 @@ col: 19, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -627,7 +627,7 @@ '@token': "=", '@role': [Assignment, Binary, Expression, Operator], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 1, '@role': [Assignment, Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -647,7 +647,7 @@ }, ], }, - test: { '@type': "BooleanLiteral", + test: { '@type': "javascript:BooleanLiteral", '@token': true, '@role': [Boolean, Condition, Expression, If, Literal], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/import-declaration.js.sem.uast b/fixtures/import-declaration.js.sem.uast index dc47cac..7e0694e 100644 --- a/fixtures/import-declaration.js.sem.uast +++ b/fixtures/import-declaration.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/import.js.sem.uast b/fixtures/import.js.sem.uast index d6c9083..b479264 100644 --- a/fixtures/import.js.sem.uast +++ b/fixtures/import.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 10, }, }, - expression: { '@type': "CallExpression", + expression: { '@type': "javascript:CallExpression", '@role': [Call, Expression], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -74,7 +74,7 @@ Name: "x", }, ], - callee: { '@type': "Import", + callee: { '@type': "javascript:Import", '@role': [Call, Callee, Expression, Import], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/issue24.js.sem.uast b/fixtures/issue24.js.sem.uast index 3e23b5c..7c138a0 100644 --- a/fixtures/issue24.js.sem.uast +++ b/fixtures/issue24.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -90,7 +90,7 @@ Text: "The absolute path of the file being compiled.", }, ], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -167,7 +167,7 @@ }, Target: ~, }, - { '@type': "ExportDefaultDeclaration", + { '@type': "javascript:ExportDefaultDeclaration", '@role': [Declaration, Incomplete, Module, Statement, Visibility], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -181,7 +181,7 @@ col: 2, }, }, - declaration: { '@type': "ClassDeclaration", + declaration: { '@type': "javascript:ClassDeclaration", '@role': [Declaration, Statement, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -195,7 +195,7 @@ col: 2, }, }, - body: { '@type': "ClassBody", + body: { '@type': "javascript:ClassBody", '@role': [Body, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -210,7 +210,7 @@ }, }, body: [ - { '@type': "ClassProperty", + { '@type': "javascript:ClassProperty", '@role': [Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -242,7 +242,7 @@ Name: "_map", }, static: false, - typeAnnotation: { '@type': "TypeAnnotation", + typeAnnotation: { '@type': "javascript:TypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -256,7 +256,7 @@ col: 26, }, }, - typeAnnotation: { '@type': "GenericTypeAnnotation", + typeAnnotation: { '@type': "javascript:GenericTypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -285,7 +285,7 @@ }, Name: "Map", }, - typeParameters: { '@type': "TypeParameterInstantiation", + typeParameters: { '@type': "javascript:TypeParameterInstantiation", '@role': [Declaration, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -300,7 +300,7 @@ }, }, params: [ - { '@type': "MixedTypeAnnotation", + { '@type': "javascript:MixedTypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -315,7 +315,7 @@ }, }, }, - { '@type': "MixedTypeAnnotation", + { '@type': "javascript:MixedTypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -334,7 +334,7 @@ }, }, }, - value: { '@type': "NewExpression", + value: { '@type': "javascript:NewExpression", '@role': [Call, Expression, Initialization, Instance, Value], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -367,7 +367,7 @@ }, variance: ~, }, - { '@type': "ClassProperty", + { '@type': "javascript:ClassProperty", '@role': [Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -399,7 +399,7 @@ Name: "key", }, static: false, - typeAnnotation: { '@type': "TypeAnnotation", + typeAnnotation: { '@type': "javascript:TypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -413,7 +413,7 @@ col: 15, }, }, - typeAnnotation: { '@type': "NullableTypeAnnotation", + typeAnnotation: { '@type': "javascript:NullableTypeAnnotation", '@role': [Declaration, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -427,7 +427,7 @@ col: 15, }, }, - typeAnnotation: { '@type': "StringTypeAnnotation", + typeAnnotation: { '@type': "javascript:StringTypeAnnotation", '@role': [Declaration, String, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -447,7 +447,7 @@ value: ~, variance: ~, }, - { '@type': "ClassProperty", + { '@type': "javascript:ClassProperty", '@role': [Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -479,7 +479,7 @@ Name: "file", }, static: false, - typeAnnotation: { '@type': "TypeAnnotation", + typeAnnotation: { '@type': "javascript:TypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -493,7 +493,7 @@ col: 13, }, }, - typeAnnotation: { '@type': "GenericTypeAnnotation", + typeAnnotation: { '@type': "javascript:GenericTypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -528,7 +528,7 @@ value: ~, variance: ~, }, - { '@type': "ClassProperty", + { '@type': "javascript:ClassProperty", '@role': [Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -600,7 +600,7 @@ Text: "relative to.", }, ], - typeAnnotation: { '@type': "TypeAnnotation", + typeAnnotation: { '@type': "javascript:TypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -614,7 +614,7 @@ col: 15, }, }, - typeAnnotation: { '@type': "GenericTypeAnnotation", + typeAnnotation: { '@type': "javascript:GenericTypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -649,7 +649,7 @@ value: ~, variance: ~, }, - { '@type': "ClassProperty", + { '@type': "javascript:ClassProperty", '@role': [Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -742,7 +742,7 @@ Text: "The absolute path of the file being compiled.", }, ], - typeAnnotation: { '@type': "TypeAnnotation", + typeAnnotation: { '@type': "javascript:TypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -756,7 +756,7 @@ col: 14, }, }, - typeAnnotation: { '@type': "StringTypeAnnotation", + typeAnnotation: { '@type': "javascript:StringTypeAnnotation", '@role': [Declaration, String, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -775,7 +775,7 @@ value: ~, variance: ~, }, - { '@type': "ClassProperty", + { '@type': "javascript:ClassProperty", '@role': [Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -828,7 +828,7 @@ }, ], static: false, - typeAnnotation: { '@type': "TypeAnnotation", + typeAnnotation: { '@type': "javascript:TypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -842,7 +842,7 @@ col: 26, }, }, - typeAnnotation: { '@type': "UnionTypeAnnotation", + typeAnnotation: { '@type': "javascript:UnionTypeAnnotation", '@role': [Declaration, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -857,7 +857,7 @@ }, }, types: [ - { '@type': "StringTypeAnnotation", + { '@type': "javascript:StringTypeAnnotation", '@role': [Declaration, String, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -872,7 +872,7 @@ }, }, }, - { '@type': "VoidTypeAnnotation", + { '@type': "javascript:VoidTypeAnnotation", '@role': [Declaration, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -893,7 +893,7 @@ value: ~, variance: ~, }, - { '@type': "ClassMethod", + { '@type': "javascript:ClassMethod", '@role': [Declaration, Function, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -923,7 +923,7 @@ }, }, Statements: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -937,7 +937,7 @@ col: 20, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -951,7 +951,7 @@ col: 19, }, }, - left: { '@type': "MemberExpression", + left: { '@type': "javascript:MemberExpression", '@role': [Assignment, Binary, Expression, Identifier, Left, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -966,7 +966,7 @@ }, }, computed: false, - object: { '@type': "ThisExpression", + object: { '@type': "javascript:ThisExpression", '@role': [Expression, This], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1019,7 +1019,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1033,7 +1033,7 @@ col: 22, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1047,7 +1047,7 @@ col: 21, }, }, - left: { '@type': "MemberExpression", + left: { '@type': "javascript:MemberExpression", '@role': [Assignment, Binary, Expression, Identifier, Left, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1062,7 +1062,7 @@ }, }, computed: false, - object: { '@type': "ThisExpression", + object: { '@type': "javascript:ThisExpression", '@role': [Expression, This], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1115,7 +1115,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1129,7 +1129,7 @@ col: 31, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1143,7 +1143,7 @@ col: 30, }, }, - left: { '@type': "MemberExpression", + left: { '@type': "javascript:MemberExpression", '@role': [Assignment, Binary, Expression, Identifier, Left, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1158,7 +1158,7 @@ }, }, computed: false, - object: { '@type': "ThisExpression", + object: { '@type': "javascript:ThisExpression", '@role': [Expression, This], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1193,7 +1193,7 @@ '@token': "=", '@role': [Assignment, Binary, Expression, Operator], }, - right: { '@type': "LogicalExpression", + right: { '@type': "javascript:LogicalExpression", '@role': [Assignment, Binary, Boolean, Expression, Operator, Or, Right], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1227,7 +1227,7 @@ '@token': "||", '@role': [Binary, Boolean, Expression, Operator, Or], }, - right: { '@type': "ObjectExpression", + right: { '@type': "javascript:ObjectExpression", '@role': [Binary, Boolean, Expression, Initialization, Literal, Map, Right], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1246,7 +1246,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1260,7 +1260,7 @@ col: 30, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1274,7 +1274,7 @@ col: 29, }, }, - left: { '@type': "MemberExpression", + left: { '@type': "javascript:MemberExpression", '@role': [Assignment, Binary, Expression, Identifier, Left, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1289,7 +1289,7 @@ }, }, computed: false, - object: { '@type': "ThisExpression", + object: { '@type': "javascript:ThisExpression", '@role': [Expression, This], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1324,7 +1324,7 @@ '@token': "=", '@role': [Assignment, Binary, Expression, Operator], }, - right: { '@type': "MemberExpression", + right: { '@type': "javascript:MemberExpression", '@role': [Assignment, Binary, Expression, Identifier, Qualified, Right], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1339,7 +1339,7 @@ }, }, computed: false, - object: { '@type': "MemberExpression", + object: { '@type': "javascript:MemberExpression", '@role': [Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1403,7 +1403,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1417,7 +1417,7 @@ col: 40, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1431,7 +1431,7 @@ col: 39, }, }, - left: { '@type': "MemberExpression", + left: { '@type': "javascript:MemberExpression", '@role': [Assignment, Binary, Expression, Identifier, Left, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1446,7 +1446,7 @@ }, }, computed: false, - object: { '@type': "ThisExpression", + object: { '@type': "javascript:ThisExpression", '@role': [Expression, This], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1481,7 +1481,7 @@ '@token': "=", '@role': [Assignment, Binary, Expression, Operator], }, - right: { '@type': "MemberExpression", + right: { '@type': "javascript:MemberExpression", '@role': [Assignment, Binary, Expression, Identifier, Qualified, Right], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1496,7 +1496,7 @@ }, }, computed: false, - object: { '@type': "MemberExpression", + object: { '@type': "javascript:MemberExpression", '@role': [Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1634,7 +1634,7 @@ ], static: false, }, - { '@type': "ClassMethod", + { '@type': "javascript:ClassMethod", '@role': [Declaration, Function, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1664,7 +1664,7 @@ }, }, Statements: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1678,7 +1678,7 @@ col: 29, }, }, - expression: { '@type': "CallExpression", + expression: { '@type': "javascript:CallExpression", '@role': [Call, Expression], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1726,7 +1726,7 @@ Name: "val", }, ], - callee: { '@type': "MemberExpression", + callee: { '@type': "javascript:MemberExpression", '@role': [Call, Callee, Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1741,7 +1741,7 @@ }, }, computed: false, - object: { '@type': "MemberExpression", + object: { '@type': "javascript:MemberExpression", '@role': [Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1756,7 +1756,7 @@ }, }, computed: false, - object: { '@type': "ThisExpression", + object: { '@type': "javascript:ThisExpression", '@role': [Expression, This], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1863,7 +1863,7 @@ ], static: false, }, - { '@type': "ClassMethod", + { '@type': "javascript:ClassMethod", '@role': [Declaration, Function, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1893,7 +1893,7 @@ }, }, Statements: [ - { '@type': "ReturnStatement", + { '@type': "javascript:ReturnStatement", '@role': [Return, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1907,7 +1907,7 @@ col: 31, }, }, - argument: { '@type': "CallExpression", + argument: { '@type': "javascript:CallExpression", '@role': [Call, Expression], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1939,7 +1939,7 @@ Name: "key", }, ], - callee: { '@type': "MemberExpression", + callee: { '@type': "javascript:MemberExpression", '@role': [Call, Callee, Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1954,7 +1954,7 @@ }, }, computed: false, - object: { '@type': "MemberExpression", + object: { '@type': "javascript:MemberExpression", '@role': [Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1969,7 +1969,7 @@ }, }, computed: false, - object: { '@type': "ThisExpression", + object: { '@type': "javascript:ThisExpression", '@role': [Expression, This], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2059,7 +2059,7 @@ }, ], predicate: ~, - returnType: { '@type': "TypeAnnotation", + returnType: { '@type': "javascript:TypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2073,7 +2073,7 @@ col: 23, }, }, - typeAnnotation: { '@type': "AnyTypeAnnotation", + typeAnnotation: { '@type': "javascript:AnyTypeAnnotation", '@role': [Declaration, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2091,7 +2091,7 @@ }, static: false, }, - { '@type': "ClassMethod", + { '@type': "javascript:ClassMethod", '@role': [Declaration, Function, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2121,7 +2121,7 @@ }, }, Statements: [ - { '@type': "ReturnStatement", + { '@type': "javascript:ReturnStatement", '@role': [Return, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2135,7 +2135,7 @@ col: 58, }, }, - argument: { '@type': "CallExpression", + argument: { '@type': "javascript:CallExpression", '@role': [Call, Expression], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2183,7 +2183,7 @@ Name: "versionRange", }, ], - callee: { '@type': "MemberExpression", + callee: { '@type': "javascript:MemberExpression", '@role': [Call, Callee, Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2198,7 +2198,7 @@ }, }, computed: false, - object: { '@type': "MemberExpression", + object: { '@type': "javascript:MemberExpression", '@role': [Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2213,7 +2213,7 @@ }, }, computed: false, - object: { '@type': "ThisExpression", + object: { '@type': "javascript:ThisExpression", '@role': [Expression, This], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2320,7 +2320,7 @@ ], static: false, }, - { '@type': "ClassMethod", + { '@type': "javascript:ClassMethod", '@role': [Declaration, Function, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2350,7 +2350,7 @@ }, }, Statements: [ - { '@type': "ReturnStatement", + { '@type': "javascript:ReturnStatement", '@role': [Return, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2364,7 +2364,7 @@ col: 38, }, }, - argument: { '@type': "CallExpression", + argument: { '@type': "javascript:CallExpression", '@role': [Call, Expression], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2396,7 +2396,7 @@ Name: "name", }, ], - callee: { '@type': "MemberExpression", + callee: { '@type': "javascript:MemberExpression", '@role': [Call, Callee, Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2411,7 +2411,7 @@ }, }, computed: false, - object: { '@type': "MemberExpression", + object: { '@type': "javascript:MemberExpression", '@role': [Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2426,7 +2426,7 @@ }, }, computed: false, - object: { '@type': "ThisExpression", + object: { '@type': "javascript:ThisExpression", '@role': [Expression, This], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2517,7 +2517,7 @@ ], static: false, }, - { '@type': "ClassMethod", + { '@type': "javascript:ClassMethod", '@role': [Declaration, Function, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2547,7 +2547,7 @@ }, }, Statements: [ - { '@type': "ReturnStatement", + { '@type': "javascript:ReturnStatement", '@role': [Return, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2561,7 +2561,7 @@ col: 34, }, }, - argument: { '@type': "CallExpression", + argument: { '@type': "javascript:CallExpression", '@role': [Call, Expression], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2576,7 +2576,7 @@ }, }, arguments: [], - callee: { '@type': "MemberExpression", + callee: { '@type': "javascript:MemberExpression", '@role': [Call, Callee, Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2591,7 +2591,7 @@ }, }, computed: false, - object: { '@type': "MemberExpression", + object: { '@type': "javascript:MemberExpression", '@role': [Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2606,7 +2606,7 @@ }, }, computed: false, - object: { '@type': "ThisExpression", + object: { '@type': "javascript:ThisExpression", '@role': [Expression, This], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2680,7 +2680,7 @@ params: [], static: false, }, - { '@type': "ClassMethod", + { '@type': "javascript:ClassMethod", '@role': [Declaration, Function, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2710,7 +2710,7 @@ }, }, Statements: [ - { '@type': "ReturnStatement", + { '@type': "javascript:ReturnStatement", '@role': [Return, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2724,7 +2724,7 @@ col: 38, }, }, - argument: { '@type': "CallExpression", + argument: { '@type': "javascript:CallExpression", '@role': [Call, Expression], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2739,7 +2739,7 @@ }, }, arguments: [], - callee: { '@type': "MemberExpression", + callee: { '@type': "javascript:MemberExpression", '@role': [Call, Callee, Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2754,7 +2754,7 @@ }, }, computed: false, - object: { '@type': "MemberExpression", + object: { '@type': "javascript:MemberExpression", '@role': [Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2769,7 +2769,7 @@ }, }, computed: false, - object: { '@type': "ThisExpression", + object: { '@type': "javascript:ThisExpression", '@role': [Expression, This], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2842,7 +2842,7 @@ kind: "method", params: [], predicate: ~, - returnType: { '@type': "TypeAnnotation", + returnType: { '@type': "javascript:TypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2856,7 +2856,7 @@ col: 27, }, }, - typeAnnotation: { '@type': "NullableTypeAnnotation", + typeAnnotation: { '@type': "javascript:NullableTypeAnnotation", '@role': [Declaration, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2870,7 +2870,7 @@ col: 27, }, }, - typeAnnotation: { '@type': "StringTypeAnnotation", + typeAnnotation: { '@type': "javascript:StringTypeAnnotation", '@role': [Declaration, String, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2889,7 +2889,7 @@ }, static: false, }, - { '@type': "ClassMethod", + { '@type': "javascript:ClassMethod", '@role': [Declaration, Function, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2919,7 +2919,7 @@ }, }, Statements: [ - { '@type': "ReturnStatement", + { '@type': "javascript:ReturnStatement", '@role': [Return, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2933,7 +2933,7 @@ col: 60, }, }, - argument: { '@type': "CallExpression", + argument: { '@type': "javascript:CallExpression", '@role': [Call, Expression], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -2997,7 +2997,7 @@ Name: "Error", }, ], - callee: { '@type': "MemberExpression", + callee: { '@type': "javascript:MemberExpression", '@role': [Call, Callee, Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -3012,7 +3012,7 @@ }, }, computed: false, - object: { '@type': "MemberExpression", + object: { '@type': "javascript:MemberExpression", '@role': [Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -3027,7 +3027,7 @@ }, }, computed: false, - object: { '@type': "ThisExpression", + object: { '@type': "javascript:ThisExpression", '@role': [Expression, This], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/jsxelems.js.sem.uast b/fixtures/jsxelems.js.sem.uast index a17cb53..a0f7731 100644 --- a/fixtures/jsxelems.js.sem.uast +++ b/fixtures/jsxelems.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -43,7 +43,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -93,7 +93,7 @@ ], kind: "var", }, - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -108,7 +108,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -158,7 +158,7 @@ ], kind: "var", }, - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -173,7 +173,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -223,7 +223,7 @@ ], kind: "var", }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -237,7 +237,7 @@ col: 4, }, }, - expression: { '@type': "CallExpression", + expression: { '@type': "javascript:CallExpression", '@role': [Call, Expression], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -252,7 +252,7 @@ }, }, arguments: [ - { '@type': "ObjectExpression", + { '@type': "javascript:ObjectExpression", '@role': [Argument, Call, Expression, Initialization, Literal, Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -267,7 +267,7 @@ }, }, properties: [ - { '@type': "ObjectMethod", + { '@type': "javascript:ObjectMethod", '@role': [Declaration, Function, Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -297,7 +297,7 @@ }, }, Statements: [ - { '@type': "ReturnStatement", + { '@type': "javascript:ReturnStatement", '@role': [Return, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -311,7 +311,7 @@ col: 90, }, }, - argument: { '@type': "JSXElement", + argument: { '@type': "javascript:JSXElement", '@role': [Incomplete], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -327,7 +327,7 @@ }, children: [], closingElement: ~, - openingElement: { '@type': "JSXOpeningElement", + openingElement: { '@type': "javascript:JSXOpeningElement", '@role': [Block, Incomplete], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -342,7 +342,7 @@ }, }, attributes: [ - { '@type': "JSXAttribute", + { '@type': "javascript:JSXAttribute", '@role': [Incomplete], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -356,7 +356,7 @@ col: 39, }, }, - name: { '@type': "JSXIdentifier", + name: { '@type': "javascript:JSXIdentifier", '@role': [Identifier, Incomplete], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -389,7 +389,7 @@ Value: "attributes", }, }, - { '@type': "JSXAttribute", + { '@type': "javascript:JSXAttribute", '@role': [Incomplete], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -403,7 +403,7 @@ col: 86, }, }, - name: { '@type': "JSXIdentifier", + name: { '@type': "javascript:JSXIdentifier", '@role': [Identifier, Incomplete], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -437,7 +437,7 @@ }, }, ], - name: { '@type': "JSXIdentifier", + name: { '@type': "javascript:JSXIdentifier", '@role': [Identifier, Incomplete], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -485,7 +485,7 @@ ], }, ], - callee: { '@type': "MemberExpression", + callee: { '@type': "javascript:MemberExpression", '@role': [Call, Callee, Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/labeled-statement.js.sem.uast b/fixtures/labeled-statement.js.sem.uast index 238a766..4ba8a2d 100644 --- a/fixtures/labeled-statement.js.sem.uast +++ b/fixtures/labeled-statement.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "LabeledStatement", + { '@type': "javascript:LabeledStatement", '@role': [Annotation, Incomplete, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 30, }, }, - body: { '@type': "WhileStatement", + body: { '@type': "javascript:WhileStatement", '@role': [Statement, While], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -71,7 +71,7 @@ }, }, Statements: [ - { '@type': "BreakStatement", + { '@type': "javascript:BreakStatement", '@role': [Break, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -103,7 +103,7 @@ }, ], }, - test: { '@type': "BooleanLiteral", + test: { '@type': "javascript:BooleanLiteral", '@token': true, '@role': [Boolean, Condition, Expression, Literal, While], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/logical-expression.js.sem.uast b/fixtures/logical-expression.js.sem.uast index fdf95d6..1e155f3 100644 --- a/fixtures/logical-expression.js.sem.uast +++ b/fixtures/logical-expression.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 8, }, }, - expression: { '@type': "LogicalExpression", + expression: { '@type': "javascript:LogicalExpression", '@role': [Binary, Boolean, Expression, Operator, Or], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -94,7 +94,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -108,7 +108,7 @@ col: 8, }, }, - expression: { '@type': "LogicalExpression", + expression: { '@type': "javascript:LogicalExpression", '@role': [And, Binary, Boolean, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -160,7 +160,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -174,7 +174,7 @@ col: 8, }, }, - expression: { '@type': "LogicalExpression", + expression: { '@type': "javascript:LogicalExpression", '@role': [Binary, Boolean, Expression, Incomplete, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/member-expression.js.sem.uast b/fixtures/member-expression.js.sem.uast index 01ab479..f04d015 100644 --- a/fixtures/member-expression.js.sem.uast +++ b/fixtures/member-expression.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -43,7 +43,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -72,7 +72,7 @@ }, Name: "x", }, - init: { '@type': "MemberExpression", + init: { '@type': "javascript:MemberExpression", '@role': [Expression, Identifier, Initialization, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -122,7 +122,7 @@ ], kind: "let", }, - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -137,7 +137,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -166,7 +166,7 @@ }, Name: "y", }, - init: { '@type': "MemberExpression", + init: { '@type': "javascript:MemberExpression", '@role': [Expression, Identifier, Initialization, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/meta-property.js.sem.uast b/fixtures/meta-property.js.sem.uast index 9b4f443..c71633e 100644 --- a/fixtures/meta-property.js.sem.uast +++ b/fixtures/meta-property.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -77,7 +77,7 @@ }, }, Statements: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -91,7 +91,7 @@ col: 13, }, }, - expression: { '@type': "MetaProperty", + expression: { '@type': "javascript:MetaProperty", '@role': [Expression, Incomplete], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/new-expression.js.sem.uast b/fixtures/new-expression.js.sem.uast index 9021210..7e6a32d 100644 --- a/fixtures/new-expression.js.sem.uast +++ b/fixtures/new-expression.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 9, }, }, - expression: { '@type': "NewExpression", + expression: { '@type': "javascript:NewExpression", '@role': [Call, Expression, Instance], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/null-literal.js.sem.uast b/fixtures/null-literal.js.sem.uast index 5d3d8fd..142129d 100644 --- a/fixtures/null-literal.js.sem.uast +++ b/fixtures/null-literal.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 5, }, }, - expression: { '@type': "NullLiteral", + expression: { '@type': "javascript:NullLiteral", '@role': [Expression, Literal, 'Null'], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/numeric-literal.js.sem.uast b/fixtures/numeric-literal.js.sem.uast index f8093cd..6540214 100644 --- a/fixtures/numeric-literal.js.sem.uast +++ b/fixtures/numeric-literal.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 3, }, }, - expression: { '@type': "NumericLiteral", + expression: { '@type': "javascript:NumericLiteral", '@token': 3, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -59,7 +59,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -73,7 +73,7 @@ col: 5, }, }, - expression: { '@type': "NumericLiteral", + expression: { '@type': "javascript:NumericLiteral", '@token': 4.2, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -90,7 +90,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -104,7 +104,7 @@ col: 5, }, }, - expression: { '@type': "NumericLiteral", + expression: { '@type': "javascript:NumericLiteral", '@token': 20000, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/object-expression.js.sem.uast b/fixtures/object-expression.js.sem.uast index f1ae691..1fe9a01 100644 --- a/fixtures/object-expression.js.sem.uast +++ b/fixtures/object-expression.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -43,7 +43,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -72,7 +72,7 @@ }, Name: "x", }, - init: { '@type': "ObjectExpression", + init: { '@type': "javascript:ObjectExpression", '@role': [Expression, Initialization, Literal, Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -87,7 +87,7 @@ }, }, properties: [ - { '@type': "ObjectProperty", + { '@type': "javascript:ObjectProperty", '@role': [Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -120,7 +120,7 @@ }, method: false, shorthand: false, - value: { '@type': "NumericLiteral", + value: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Expression, Literal, Map, Number, Value], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/object-method.js.sem.uast b/fixtures/object-method.js.sem.uast index 0debd1e..cbe2c0d 100644 --- a/fixtures/object-method.js.sem.uast +++ b/fixtures/object-method.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -43,7 +43,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -72,7 +72,7 @@ }, Name: "a", }, - init: { '@type': "ObjectExpression", + init: { '@type': "javascript:ObjectExpression", '@role': [Expression, Initialization, Literal, Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -87,7 +87,7 @@ }, }, properties: [ - { '@type': "ObjectMethod", + { '@type': "javascript:ObjectMethod", '@role': [Declaration, Function, Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -117,7 +117,7 @@ }, }, Statements: [ - { '@type': "ReturnStatement", + { '@type': "javascript:ReturnStatement", '@role': [Return, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -131,7 +131,7 @@ col: 27, }, }, - argument: { '@type': "NumericLiteral", + argument: { '@type': "javascript:NumericLiteral", '@token': 3, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/object-pattern.js.sem.uast b/fixtures/object-pattern.js.sem.uast index 85473bd..b3b26fa 100644 --- a/fixtures/object-pattern.js.sem.uast +++ b/fixtures/object-pattern.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -43,7 +43,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -57,7 +57,7 @@ col: 16, }, }, - id: { '@type': "ObjectPattern", + id: { '@type': "javascript:ObjectPattern", '@role': [Incomplete, Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -72,7 +72,7 @@ }, }, properties: [ - { '@type': "ObjectProperty", + { '@type': "javascript:ObjectProperty", '@role': [Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -124,7 +124,7 @@ }, ], }, - init: { '@type': "MemberExpression", + init: { '@type': "javascript:MemberExpression", '@role': [Expression, Identifier, Initialization, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/object-property.js.sem.uast b/fixtures/object-property.js.sem.uast index f1ae691..1fe9a01 100644 --- a/fixtures/object-property.js.sem.uast +++ b/fixtures/object-property.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -43,7 +43,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -72,7 +72,7 @@ }, Name: "x", }, - init: { '@type': "ObjectExpression", + init: { '@type': "javascript:ObjectExpression", '@role': [Expression, Initialization, Literal, Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -87,7 +87,7 @@ }, }, properties: [ - { '@type': "ObjectProperty", + { '@type': "javascript:ObjectProperty", '@role': [Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -120,7 +120,7 @@ }, method: false, shorthand: false, - value: { '@type': "NumericLiteral", + value: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Expression, Literal, Map, Number, Value], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/private-name.js.sem.uast b/fixtures/private-name.js.sem.uast index 0085c11..d3eb42d 100644 --- a/fixtures/private-name.js.sem.uast +++ b/fixtures/private-name.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ClassDeclaration", + { '@type': "javascript:ClassDeclaration", '@role': [Declaration, Statement, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 2, }, }, - body: { '@type': "ClassBody", + body: { '@type': "javascript:ClassBody", '@role': [Body, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -57,7 +57,7 @@ }, }, body: [ - { '@type': "ClassPrivateProperty", + { '@type': "javascript:ClassPrivateProperty", '@role': [Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -71,7 +71,7 @@ col: 10, }, }, - key: { '@type': "PrivateName", + key: { '@type': "javascript:PrivateName", '@role': [Expression, Identifier, Instance, Key, Name, Qualified, Visibility], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -102,7 +102,7 @@ }, }, static: false, - value: { '@type': "NumericLiteral", + value: { '@type': "javascript:NumericLiteral", '@token': 3, '@role': [Expression, Initialization, Literal, Number, Value], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/regexp-literal.js.sem.uast b/fixtures/regexp-literal.js.sem.uast index c8181c4..069c331 100644 --- a/fixtures/regexp-literal.js.sem.uast +++ b/fixtures/regexp-literal.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 4, }, }, - expression: { '@type': "RegExpLiteral", + expression: { '@type': "javascript:RegExpLiteral", '@token': "a", '@role': [Expression, Literal, Regexp], '@pos': { '@type': "uast:Positions", @@ -60,7 +60,7 @@ flags: "", }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -74,7 +74,7 @@ col: 23, }, }, - expression: { '@type': "CallExpression", + expression: { '@type': "javascript:CallExpression", '@role': [Call, Expression], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -89,7 +89,7 @@ }, }, arguments: [ - { '@type': "RegExpLiteral", + { '@type': "javascript:RegExpLiteral", '@token': "a", '@role': [Argument, Call, Expression, Literal, Regexp], '@pos': { '@type': "uast:Positions", @@ -124,7 +124,7 @@ Value: "x", }, ], - callee: { '@type': "MemberExpression", + callee: { '@type': "javascript:MemberExpression", '@role': [Call, Callee, Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/rest-element.js.sem.uast b/fixtures/rest-element.js.sem.uast index 952d1a5..8aece38 100644 --- a/fixtures/rest-element.js.sem.uast +++ b/fixtures/rest-element.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 16, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -56,7 +56,7 @@ col: 16, }, }, - left: { '@type': "ArrayPattern", + left: { '@type': "javascript:ArrayPattern", '@role': [Assignment, Binary, Incomplete, Left, List], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -71,7 +71,7 @@ }, }, elements: [ - { '@type': "RestElement", + { '@type': "javascript:RestElement", '@role': [Incomplete], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -107,7 +107,7 @@ '@token': "=", '@role': [Assignment, Binary, Expression, Operator], }, - right: { '@type': "ArrayExpression", + right: { '@type': "javascript:ArrayExpression", '@role': [Assignment, Binary, Expression, Initialization, List, Literal, Right], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -122,7 +122,7 @@ }, }, elements: [ - { '@type': "NumericLiteral", + { '@type': "javascript:NumericLiteral", '@token': 3, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -138,7 +138,7 @@ }, }, }, - { '@type': "NumericLiteral", + { '@type': "javascript:NumericLiteral", '@token': 4, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/return-statement.js.sem.uast b/fixtures/return-statement.js.sem.uast index 619abe1..d1d86bc 100644 --- a/fixtures/return-statement.js.sem.uast +++ b/fixtures/return-statement.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 20, }, }, - expression: { '@type': "ArrowFunctionExpression", + expression: { '@type': "javascript:ArrowFunctionExpression", '@role': [Anonymous, Declaration, Expression, Function], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -72,7 +72,7 @@ }, }, Statements: [ - { '@type': "ReturnStatement", + { '@type': "javascript:ReturnStatement", '@role': [Return, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -86,7 +86,7 @@ col: 18, }, }, - argument: { '@type': "NumericLiteral", + argument: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/sequence-expression.js.sem.uast b/fixtures/sequence-expression.js.sem.uast index 79bcc5e..c8dab32 100644 --- a/fixtures/sequence-expression.js.sem.uast +++ b/fixtures/sequence-expression.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 18, }, }, - expression: { '@type': "SequenceExpression", + expression: { '@type': "javascript:SequenceExpression", '@role': [Expression, List], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -87,7 +87,7 @@ }, Name: "b", }, - { '@type': "AssignmentExpression", + { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -121,7 +121,7 @@ '@token': "=", '@role': [Assignment, Binary, Expression, Operator], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 1, '@role': [Assignment, Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -138,7 +138,7 @@ }, }, }, - { '@type': "NumericLiteral", + { '@type': "javascript:NumericLiteral", '@token': 2, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -154,7 +154,7 @@ }, }, }, - { '@type': "NumericLiteral", + { '@type': "javascript:NumericLiteral", '@token': 3, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/spread-element.js.sem.uast b/fixtures/spread-element.js.sem.uast index dd9300a..a0b3bbf 100644 --- a/fixtures/spread-element.js.sem.uast +++ b/fixtures/spread-element.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 9, }, }, - expression: { '@type': "CallExpression", + expression: { '@type': "javascript:CallExpression", '@role': [Call, Expression], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -57,7 +57,7 @@ }, }, arguments: [ - { '@type': "SpreadElement", + { '@type': "javascript:SpreadElement", '@role': [ArgsList, Argument, Call, Incomplete, List, Value], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -106,7 +106,7 @@ }, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -120,7 +120,7 @@ col: 8, }, }, - expression: { '@type': "ArrayExpression", + expression: { '@type': "javascript:ArrayExpression", '@role': [Expression, Initialization, List, Literal], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -135,7 +135,7 @@ }, }, elements: [ - { '@type': "SpreadElement", + { '@type': "javascript:SpreadElement", '@role': [Incomplete, List, Value], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -168,7 +168,7 @@ ], }, }, - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -183,7 +183,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -212,7 +212,7 @@ }, Name: "_", }, - init: { '@type': "ObjectExpression", + init: { '@type': "javascript:ObjectExpression", '@role': [Expression, Initialization, Literal, Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -227,7 +227,7 @@ }, }, properties: [ - { '@type': "SpreadElement", + { '@type': "javascript:SpreadElement", '@role': [Incomplete, List, Value], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/string-literal.js.sem.uast b/fixtures/string-literal.js.sem.uast index 8d0d02c..96d2515 100644 --- a/fixtures/string-literal.js.sem.uast +++ b/fixtures/string-literal.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 8, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/super.js.sem.uast b/fixtures/super.js.sem.uast index 941bc17..f13184b 100644 --- a/fixtures/super.js.sem.uast +++ b/fixtures/super.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ClassDeclaration", + { '@type': "javascript:ClassDeclaration", '@role': [Declaration, Statement, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 19, }, }, - body: { '@type': "ClassBody", + body: { '@type': "javascript:ClassBody", '@role': [Body, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -57,7 +57,7 @@ }, }, body: [ - { '@type': "ClassMethod", + { '@type': "javascript:ClassMethod", '@role': [Declaration, Function, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -131,7 +131,7 @@ }, superClass: ~, }, - { '@type': "ClassDeclaration", + { '@type': "javascript:ClassDeclaration", '@role': [Declaration, Statement, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -145,7 +145,7 @@ col: 49, }, }, - body: { '@type': "ClassBody", + body: { '@type': "javascript:ClassBody", '@role': [Body, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -160,7 +160,7 @@ }, }, body: [ - { '@type': "ClassMethod", + { '@type': "javascript:ClassMethod", '@role': [Declaration, Function, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -190,7 +190,7 @@ }, }, Statements: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -204,7 +204,7 @@ col: 45, }, }, - expression: { '@type': "CallExpression", + expression: { '@type': "javascript:CallExpression", '@role': [Call, Expression], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -219,7 +219,7 @@ }, }, arguments: [], - callee: { '@type': "Super", + callee: { '@type': "javascript:Super", '@role': [Base, Call, Callee, Expression, Identifier], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -296,7 +296,7 @@ Name: "A", }, }, - { '@type': "ClassDeclaration", + { '@type': "javascript:ClassDeclaration", '@role': [Declaration, Statement, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -310,7 +310,7 @@ col: 41, }, }, - body: { '@type': "ClassBody", + body: { '@type': "javascript:ClassBody", '@role': [Body, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -325,7 +325,7 @@ }, }, body: [ - { '@type': "ClassMethod", + { '@type': "javascript:ClassMethod", '@role': [Declaration, Function, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -355,7 +355,7 @@ }, }, Statements: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -369,7 +369,7 @@ col: 37, }, }, - expression: { '@type': "CallExpression", + expression: { '@type': "javascript:CallExpression", '@role': [Call, Expression], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -384,7 +384,7 @@ }, }, arguments: [], - callee: { '@type': "MemberExpression", + callee: { '@type': "javascript:MemberExpression", '@role': [Call, Callee, Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -399,7 +399,7 @@ }, }, computed: false, - object: { '@type': "Super", + object: { '@type': "javascript:Super", '@role': [Base, Expression, Identifier], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/tagged-template-element.js.sem.uast b/fixtures/tagged-template-element.js.sem.uast index 5e12512..e927b39 100644 --- a/fixtures/tagged-template-element.js.sem.uast +++ b/fixtures/tagged-template-element.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 22, }, }, - expression: { '@type': "TaggedTemplateExpression", + expression: { '@type': "javascript:TaggedTemplateExpression", '@role': [Call, Expression, Incomplete, Literal, String], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -56,7 +56,7 @@ col: 21, }, }, - quasi: { '@type': "TemplateLiteral", + quasi: { '@type': "javascript:TemplateLiteral", '@role': [Expression, Incomplete, Literal, String], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -103,7 +103,7 @@ }, ], quasis: [ - { '@type': "TemplateElement", + { '@type': "javascript:TemplateElement", '@role': [Expression, Incomplete, String, Value], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -119,7 +119,7 @@ }, tail: false, }, - { '@type': "TemplateElement", + { '@type': "javascript:TemplateElement", '@role': [Expression, Incomplete, String, Value], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -135,7 +135,7 @@ }, tail: false, }, - { '@type': "TemplateElement", + { '@type': "javascript:TemplateElement", '@role': [Expression, Incomplete, String, Value], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/template-literal.js.sem.uast b/fixtures/template-literal.js.sem.uast index 96ba0cb..0c641c1 100644 --- a/fixtures/template-literal.js.sem.uast +++ b/fixtures/template-literal.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 14, }, }, - expression: { '@type': "TemplateLiteral", + expression: { '@type': "javascript:TemplateLiteral", '@role': [Expression, Incomplete, Literal, String], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -58,7 +58,7 @@ }, expressions: [], quasis: [ - { '@type': "TemplateElement", + { '@type': "javascript:TemplateElement", '@role': [Expression, Incomplete, String, Value], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/this-expression.js.sem.uast b/fixtures/this-expression.js.sem.uast index 17d2ea7..658a0a8 100644 --- a/fixtures/this-expression.js.sem.uast +++ b/fixtures/this-expression.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 12, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -56,7 +56,7 @@ col: 11, }, }, - left: { '@type': "MemberExpression", + left: { '@type': "javascript:MemberExpression", '@role': [Assignment, Binary, Expression, Identifier, Left, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -71,7 +71,7 @@ }, }, computed: false, - object: { '@type': "ThisExpression", + object: { '@type': "javascript:ThisExpression", '@role': [Expression, This], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -106,7 +106,7 @@ '@token': "=", '@role': [Assignment, Binary, Expression, Operator], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 3, '@role': [Assignment, Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -173,7 +173,7 @@ }, }, Statements: [ - { '@type': "ReturnStatement", + { '@type': "javascript:ReturnStatement", '@role': [Return, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -187,7 +187,7 @@ col: 28, }, }, - argument: { '@type': "ThisExpression", + argument: { '@type': "javascript:ThisExpression", '@role': [Expression, This], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -226,7 +226,7 @@ }, ], }, - { '@type': "EmptyStatement", + { '@type': "javascript:EmptyStatement", '@role': [Noop, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -255,7 +255,7 @@ }, }, Statements: [ - { '@type': "LabeledStatement", + { '@type': "javascript:LabeledStatement", '@role': [Annotation, Incomplete, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -269,7 +269,7 @@ col: 38, }, }, - body: { '@type': "ExpressionStatement", + body: { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -283,7 +283,7 @@ col: 38, }, }, - expression: { '@type': "SequenceExpression", + expression: { '@type': "javascript:SequenceExpression", '@role': [Expression, List], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -298,7 +298,7 @@ }, }, expressions: [ - { '@type': "NumericLiteral", + { '@type': "javascript:NumericLiteral", '@token': 3, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -314,7 +314,7 @@ }, }, }, - { '@type': "FunctionExpression", + { '@type': "javascript:FunctionExpression", '@role': [Declaration, Expression, Function], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -344,7 +344,7 @@ }, }, Statements: [ - { '@type': "ReturnStatement", + { '@type': "javascript:ReturnStatement", '@role': [Return, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -358,7 +358,7 @@ col: 36, }, }, - argument: { '@type': "MemberExpression", + argument: { '@type': "javascript:MemberExpression", '@role': [Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -373,7 +373,7 @@ }, }, computed: false, - object: { '@type': "ThisExpression", + object: { '@type': "javascript:ThisExpression", '@role': [Expression, This], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -432,7 +432,7 @@ }, ], }, - { '@type': "EmptyStatement", + { '@type': "javascript:EmptyStatement", '@role': [Noop, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/throw-statement.js.sem.uast b/fixtures/throw-statement.js.sem.uast index 078f7a5..6e2a0fa 100644 --- a/fixtures/throw-statement.js.sem.uast +++ b/fixtures/throw-statement.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ThrowStatement", + { '@type': "javascript:ThrowStatement", '@role': [Statement, Throw], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/try-statement.js.sem.uast b/fixtures/try-statement.js.sem.uast index 5c4a801..98f05b9 100644 --- a/fixtures/try-statement.js.sem.uast +++ b/fixtures/try-statement.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "TryStatement", + { '@type': "javascript:TryStatement", '@role': [Statement, Try], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -59,7 +59,7 @@ }, finalizer: ~, guardedHandlers: [], - handler: { '@type': "CatchClause", + handler: { '@type': "javascript:CatchClause", '@role': [Catch, Statement, Try], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -105,7 +105,7 @@ }, }, }, - { '@type': "TryStatement", + { '@type': "javascript:TryStatement", '@role': [Statement, Try], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -153,7 +153,7 @@ guardedHandlers: [], handler: ~, }, - { '@type': "TryStatement", + { '@type': "javascript:TryStatement", '@role': [Statement, Try], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -199,7 +199,7 @@ Statements: [], }, guardedHandlers: [], - handler: { '@type': "CatchClause", + handler: { '@type': "javascript:CatchClause", '@role': [Catch, Statement, Try], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/typealias.js.sem.uast b/fixtures/typealias.js.sem.uast index b634b7a..b089e89 100644 --- a/fixtures/typealias.js.sem.uast +++ b/fixtures/typealias.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "TypeAlias", + { '@type': "javascript:TypeAlias", '@role': [Alias, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -57,7 +57,7 @@ }, Name: "BabelFileModulesMetadata", }, - right: { '@type': "ObjectTypeAnnotation", + right: { '@type': "javascript:ObjectTypeAnnotation", '@role': [Declaration, Incomplete, Literal, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -75,7 +75,7 @@ exact: false, indexers: [], properties: [ - { '@type': "ObjectTypeProperty", + { '@type': "javascript:ObjectTypeProperty", '@role': [Declaration, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -107,7 +107,7 @@ kind: "init", optional: false, static: false, - value: { '@type': "GenericTypeAnnotation", + value: { '@type': "javascript:GenericTypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -136,7 +136,7 @@ }, Name: "Array", }, - typeParameters: { '@type': "TypeParameterInstantiation", + typeParameters: { '@type': "javascript:TypeParameterInstantiation", '@role': [Declaration, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -151,7 +151,7 @@ }, }, params: [ - { '@type': "GenericTypeAnnotation", + { '@type': "javascript:GenericTypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -187,7 +187,7 @@ }, variance: ~, }, - { '@type': "ObjectTypeProperty", + { '@type': "javascript:ObjectTypeProperty", '@role': [Declaration, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -219,7 +219,7 @@ kind: "init", optional: false, static: false, - value: { '@type': "ObjectTypeAnnotation", + value: { '@type': "javascript:ObjectTypeAnnotation", '@role': [Declaration, Incomplete, Literal, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -237,7 +237,7 @@ exact: false, indexers: [], properties: [ - { '@type': "ObjectTypeProperty", + { '@type': "javascript:ObjectTypeProperty", '@role': [Declaration, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -269,7 +269,7 @@ kind: "init", optional: false, static: false, - value: { '@type': "GenericTypeAnnotation", + value: { '@type': "javascript:GenericTypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -298,7 +298,7 @@ }, Name: "Array", }, - typeParameters: { '@type': "TypeParameterInstantiation", + typeParameters: { '@type': "javascript:TypeParameterInstantiation", '@role': [Declaration, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -313,7 +313,7 @@ }, }, params: [ - { '@type': "GenericTypeAnnotation", + { '@type': "javascript:GenericTypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -349,7 +349,7 @@ }, variance: ~, }, - { '@type': "ObjectTypeProperty", + { '@type': "javascript:ObjectTypeProperty", '@role': [Declaration, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -381,7 +381,7 @@ kind: "init", optional: false, static: false, - value: { '@type': "GenericTypeAnnotation", + value: { '@type': "javascript:GenericTypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -410,7 +410,7 @@ }, Name: "Array", }, - typeParameters: { '@type': "TypeParameterInstantiation", + typeParameters: { '@type': "javascript:TypeParameterInstantiation", '@role': [Declaration, Incomplete, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -425,7 +425,7 @@ }, }, params: [ - { '@type': "GenericTypeAnnotation", + { '@type': "javascript:GenericTypeAnnotation", '@role': [Declaration, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/u2_class_accessors.js.sem.uast b/fixtures/u2_class_accessors.js.sem.uast index a125566..09297e3 100644 --- a/fixtures/u2_class_accessors.js.sem.uast +++ b/fixtures/u2_class_accessors.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ClassDeclaration", + { '@type': "javascript:ClassDeclaration", '@role': [Declaration, Statement, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 2, }, }, - body: { '@type': "ClassBody", + body: { '@type': "javascript:ClassBody", '@role': [Body, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -57,7 +57,7 @@ }, }, body: [ - { '@type': "ClassMethod", + { '@type': "javascript:ClassMethod", '@role': [Declaration, Function, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -87,7 +87,7 @@ }, }, Statements: [ - { '@type': "ReturnStatement", + { '@type': "javascript:ReturnStatement", '@role': [Return, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -101,7 +101,7 @@ col: 18, }, }, - argument: { '@type': "NumericLiteral", + argument: { '@type': "javascript:NumericLiteral", '@token': 1, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -143,7 +143,7 @@ params: [], static: false, }, - { '@type': "ClassMethod", + { '@type': "javascript:ClassMethod", '@role': [Declaration, Function, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -173,7 +173,7 @@ }, }, Statements: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -187,7 +187,7 @@ col: 22, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -201,7 +201,7 @@ col: 21, }, }, - left: { '@type': "MemberExpression", + left: { '@type': "javascript:MemberExpression", '@role': [Assignment, Binary, Expression, Identifier, Left, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -216,7 +216,7 @@ }, }, computed: false, - object: { '@type': "ThisExpression", + object: { '@type': "javascript:ThisExpression", '@role': [Expression, This], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -251,7 +251,7 @@ '@token': "=", '@role': [Assignment, Binary, Expression, Operator], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 1, '@role': [Assignment, Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/u2_class_anonymous.js.sem.uast b/fixtures/u2_class_anonymous.js.sem.uast index a8d8487..4492605 100644 --- a/fixtures/u2_class_anonymous.js.sem.uast +++ b/fixtures/u2_class_anonymous.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -43,7 +43,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -72,7 +72,7 @@ }, Name: "a", }, - init: { '@type': "ClassExpression", + init: { '@type': "javascript:ClassExpression", '@role': [Declaration, Expression, Initialization, Literal, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -86,7 +86,7 @@ col: 17, }, }, - body: { '@type': "ClassBody", + body: { '@type': "javascript:ClassBody", '@role': [Body, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -109,7 +109,7 @@ ], kind: "var", }, - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -124,7 +124,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -153,7 +153,7 @@ }, Name: "b", }, - init: { '@type': "ObjectExpression", + init: { '@type': "javascript:ObjectExpression", '@role': [Expression, Initialization, Literal, Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/u2_class_constructor.js.sem.uast b/fixtures/u2_class_constructor.js.sem.uast index 096403c..060b5a7 100644 --- a/fixtures/u2_class_constructor.js.sem.uast +++ b/fixtures/u2_class_constructor.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -77,7 +77,7 @@ }, }, Statements: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -91,7 +91,7 @@ col: 18, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -105,7 +105,7 @@ col: 17, }, }, - left: { '@type': "MemberExpression", + left: { '@type': "javascript:MemberExpression", '@role': [Assignment, Binary, Expression, Identifier, Left, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -120,7 +120,7 @@ }, }, computed: false, - object: { '@type': "ThisExpression", + object: { '@type': "javascript:ThisExpression", '@role': [Expression, This], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -155,7 +155,7 @@ '@token': "=", '@role': [Assignment, Binary, Expression, Operator], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 1, '@role': [Assignment, Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -196,7 +196,7 @@ }, ], }, - { '@type': "ClassDeclaration", + { '@type': "javascript:ClassDeclaration", '@role': [Declaration, Statement, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -210,7 +210,7 @@ col: 2, }, }, - body: { '@type': "ClassBody", + body: { '@type': "javascript:ClassBody", '@role': [Body, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -225,7 +225,7 @@ }, }, body: [ - { '@type': "ClassMethod", + { '@type': "javascript:ClassMethod", '@role': [Declaration, Function, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/u2_class_empty.js.sem.uast b/fixtures/u2_class_empty.js.sem.uast index d1c19a4..b6cdfe9 100644 --- a/fixtures/u2_class_empty.js.sem.uast +++ b/fixtures/u2_class_empty.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -43,7 +43,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -72,7 +72,7 @@ }, Name: "testcls1", }, - init: { '@type': "NewExpression", + init: { '@type': "javascript:NewExpression", '@role': [Call, Expression, Initialization, Instance], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -107,7 +107,7 @@ ], kind: "var", }, - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -122,7 +122,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -151,7 +151,7 @@ }, Name: "testcls2", }, - init: { '@type': "CallExpression", + init: { '@type': "javascript:CallExpression", '@role': [Call, Expression, Initialization], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -166,7 +166,7 @@ }, }, arguments: [ - { '@type': "NullLiteral", + { '@type': "javascript:NullLiteral", '@role': [Argument, Call, Expression, Literal, 'Null'], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -182,7 +182,7 @@ }, }, ], - callee: { '@type': "MemberExpression", + callee: { '@type': "javascript:MemberExpression", '@role': [Call, Callee, Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -233,7 +233,7 @@ ], kind: "var", }, - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -248,7 +248,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -277,7 +277,7 @@ }, Name: "testcls3", }, - init: { '@type': "ObjectExpression", + init: { '@type': "javascript:ObjectExpression", '@role': [Expression, Initialization, Literal, Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -297,7 +297,7 @@ ], kind: "var", }, - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -312,7 +312,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -341,7 +341,7 @@ }, Name: "testcls4", }, - init: { '@type': "FunctionExpression", + init: { '@type': "javascript:FunctionExpression", '@role': [Declaration, Expression, Function, Initialization], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -380,7 +380,7 @@ ], kind: "var", }, - { '@type': "ClassDeclaration", + { '@type': "javascript:ClassDeclaration", '@role': [Declaration, Statement, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -394,7 +394,7 @@ col: 18, }, }, - body: { '@type': "ClassBody", + body: { '@type': "javascript:ClassBody", '@role': [Body, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -428,7 +428,7 @@ }, superClass: ~, }, - { '@type': "EmptyStatement", + { '@type': "javascript:EmptyStatement", '@role': [Noop, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/u2_class_extend.js.sem.uast b/fixtures/u2_class_extend.js.sem.uast index 84acbf2..55a4c87 100644 --- a/fixtures/u2_class_extend.js.sem.uast +++ b/fixtures/u2_class_extend.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -43,7 +43,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -72,7 +72,7 @@ }, Name: "testcls1", }, - init: { '@type': "CallExpression", + init: { '@type': "javascript:CallExpression", '@role': [Call, Expression, Initialization], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -104,7 +104,7 @@ Name: "testcls2", }, ], - callee: { '@type': "MemberExpression", + callee: { '@type': "javascript:MemberExpression", '@role': [Call, Callee, Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/u2_class_field.js.sem.uast b/fixtures/u2_class_field.js.sem.uast index 8ed8db0..77b2533 100644 --- a/fixtures/u2_class_field.js.sem.uast +++ b/fixtures/u2_class_field.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -43,7 +43,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -72,7 +72,7 @@ }, Name: "testcls1", }, - init: { '@type': "NewExpression", + init: { '@type': "javascript:NewExpression", '@role': [Call, Expression, Initialization, Instance], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -107,7 +107,7 @@ ], kind: "var", }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -121,7 +121,7 @@ col: 48, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -135,7 +135,7 @@ col: 48, }, }, - left: { '@type': "MemberExpression", + left: { '@type': "javascript:MemberExpression", '@role': [Assignment, Binary, Expression, Identifier, Left, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -204,7 +204,7 @@ }, }, }, - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -219,7 +219,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -248,7 +248,7 @@ }, Name: "testcls2", }, - init: { '@type': "CallExpression", + init: { '@type': "javascript:CallExpression", '@role': [Call, Expression, Initialization], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -263,7 +263,7 @@ }, }, arguments: [ - { '@type': "ObjectExpression", + { '@type': "javascript:ObjectExpression", '@role': [Argument, Call, Expression, Initialization, Literal, Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -278,7 +278,7 @@ }, }, properties: [ - { '@type': "ObjectProperty", + { '@type': "javascript:ObjectProperty", '@role': [Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -333,7 +333,7 @@ ], }, ], - callee: { '@type': "MemberExpression", + callee: { '@type': "javascript:MemberExpression", '@role': [Call, Callee, Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -384,7 +384,7 @@ ], kind: "var", }, - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -399,7 +399,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -428,7 +428,7 @@ }, Name: "testcls3", }, - init: { '@type': "ObjectExpression", + init: { '@type': "javascript:ObjectExpression", '@role': [Expression, Initialization, Literal, Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -443,7 +443,7 @@ }, }, properties: [ - { '@type': "ObjectProperty", + { '@type': "javascript:ObjectProperty", '@role': [Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -501,7 +501,7 @@ ], kind: "var", }, - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -516,7 +516,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -545,7 +545,7 @@ }, Name: "testcls4", }, - init: { '@type': "FunctionExpression", + init: { '@type': "javascript:FunctionExpression", '@role': [Declaration, Expression, Function, Initialization], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -575,7 +575,7 @@ }, }, Statements: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -589,7 +589,7 @@ col: 20, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -603,7 +603,7 @@ col: 19, }, }, - left: { '@type': "MemberExpression", + left: { '@type': "javascript:MemberExpression", '@role': [Assignment, Binary, Expression, Identifier, Left, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -618,7 +618,7 @@ }, }, computed: false, - object: { '@type': "ThisExpression", + object: { '@type': "javascript:ThisExpression", '@role': [Expression, This], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -682,7 +682,7 @@ ], kind: "var", }, - { '@type': "ClassDeclaration", + { '@type': "javascript:ClassDeclaration", '@role': [Declaration, Statement, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -696,7 +696,7 @@ col: 2, }, }, - body: { '@type': "ClassBody", + body: { '@type': "javascript:ClassBody", '@role': [Body, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -711,7 +711,7 @@ }, }, body: [ - { '@type': "ClassMethod", + { '@type': "javascript:ClassMethod", '@role': [Declaration, Function, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -741,7 +741,7 @@ }, }, Statements: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -755,7 +755,7 @@ col: 24, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -769,7 +769,7 @@ col: 23, }, }, - left: { '@type': "MemberExpression", + left: { '@type': "javascript:MemberExpression", '@role': [Assignment, Binary, Expression, Identifier, Left, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -784,7 +784,7 @@ }, }, computed: false, - object: { '@type': "ThisExpression", + object: { '@type': "javascript:ThisExpression", '@role': [Expression, This], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/u2_class_field_binding.js.sem.uast b/fixtures/u2_class_field_binding.js.sem.uast index b17b8f0..6e500cb 100644 --- a/fixtures/u2_class_field_binding.js.sem.uast +++ b/fixtures/u2_class_field_binding.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ClassDeclaration", + { '@type': "javascript:ClassDeclaration", '@role': [Declaration, Statement, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 2, }, }, - body: { '@type': "ClassBody", + body: { '@type': "javascript:ClassBody", '@role': [Body, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -57,7 +57,7 @@ }, }, body: [ - { '@type': "ClassMethod", + { '@type': "javascript:ClassMethod", '@role': [Declaration, Function, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -87,7 +87,7 @@ }, }, Statements: [ - { '@type': "ReturnStatement", + { '@type': "javascript:ReturnStatement", '@role': [Return, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -101,7 +101,7 @@ col: 18, }, }, - argument: { '@type': "NumericLiteral", + argument: { '@type': "javascript:NumericLiteral", '@token': 1, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/u2_class_inherit.js.sem.uast b/fixtures/u2_class_inherit.js.sem.uast index ad43eb8..75a0bee 100644 --- a/fixtures/u2_class_inherit.js.sem.uast +++ b/fixtures/u2_class_inherit.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ClassDeclaration", + { '@type': "javascript:ClassDeclaration", '@role': [Declaration, Statement, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 35, }, }, - body: { '@type': "ClassBody", + body: { '@type': "javascript:ClassBody", '@role': [Body, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/u2_class_method.js.sem.uast b/fixtures/u2_class_method.js.sem.uast index 6edbb8c..79b78c3 100644 --- a/fixtures/u2_class_method.js.sem.uast +++ b/fixtures/u2_class_method.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -43,7 +43,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -72,7 +72,7 @@ }, Name: "testcls1", }, - init: { '@type': "NewExpression", + init: { '@type': "javascript:NewExpression", '@role': [Call, Expression, Initialization, Instance], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -107,7 +107,7 @@ ], kind: "var", }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -121,7 +121,7 @@ col: 35, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -135,7 +135,7 @@ col: 34, }, }, - left: { '@type': "MemberExpression", + left: { '@type': "javascript:MemberExpression", '@role': [Assignment, Binary, Expression, Identifier, Left, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -185,7 +185,7 @@ '@token': "=", '@role': [Assignment, Binary, Expression, Operator], }, - right: { '@type': "FunctionExpression", + right: { '@type': "javascript:FunctionExpression", '@role': [Assignment, Binary, Declaration, Expression, Function, Right], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -222,7 +222,7 @@ }, }, }, - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -237,7 +237,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -266,7 +266,7 @@ }, Name: "testcls2", }, - init: { '@type': "CallExpression", + init: { '@type': "javascript:CallExpression", '@role': [Call, Expression, Initialization], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -281,7 +281,7 @@ }, }, arguments: [ - { '@type': "NullLiteral", + { '@type': "javascript:NullLiteral", '@role': [Argument, Call, Expression, Literal, 'Null'], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -297,7 +297,7 @@ }, }, ], - callee: { '@type': "MemberExpression", + callee: { '@type': "javascript:MemberExpression", '@role': [Call, Callee, Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -348,7 +348,7 @@ ], kind: "var", }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -362,7 +362,7 @@ col: 35, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -376,7 +376,7 @@ col: 34, }, }, - left: { '@type': "MemberExpression", + left: { '@type': "javascript:MemberExpression", '@role': [Assignment, Binary, Expression, Identifier, Left, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -426,7 +426,7 @@ '@token': "=", '@role': [Assignment, Binary, Expression, Operator], }, - right: { '@type': "FunctionExpression", + right: { '@type': "javascript:FunctionExpression", '@role': [Assignment, Binary, Declaration, Expression, Function, Right], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -512,7 +512,7 @@ }, }, Statements: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -526,7 +526,7 @@ col: 35, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -540,7 +540,7 @@ col: 34, }, }, - left: { '@type': "MemberExpression", + left: { '@type': "javascript:MemberExpression", '@role': [Assignment, Binary, Expression, Identifier, Left, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -555,7 +555,7 @@ }, }, computed: false, - object: { '@type': "ThisExpression", + object: { '@type': "javascript:ThisExpression", '@role': [Expression, This], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -590,7 +590,7 @@ '@token': "=", '@role': [Assignment, Binary, Expression, Operator], }, - right: { '@type': "FunctionExpression", + right: { '@type': "javascript:FunctionExpression", '@role': [Assignment, Binary, Declaration, Expression, Function, Right], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -721,7 +721,7 @@ }, ], }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -735,7 +735,7 @@ col: 45, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -749,7 +749,7 @@ col: 44, }, }, - left: { '@type': "MemberExpression", + left: { '@type': "javascript:MemberExpression", '@role': [Assignment, Binary, Expression, Identifier, Left, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -764,7 +764,7 @@ }, }, computed: false, - object: { '@type': "MemberExpression", + object: { '@type': "javascript:MemberExpression", '@role': [Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -830,7 +830,7 @@ '@token': "=", '@role': [Assignment, Binary, Expression, Operator], }, - right: { '@type': "FunctionExpression", + right: { '@type': "javascript:FunctionExpression", '@role': [Assignment, Binary, Declaration, Expression, Function, Right], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -867,7 +867,7 @@ }, }, }, - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -882,7 +882,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -911,7 +911,7 @@ }, Name: "testcls1", }, - init: { '@type': "NewExpression", + init: { '@type': "javascript:NewExpression", '@role': [Call, Expression, Initialization, Instance], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -946,7 +946,7 @@ ], kind: "var", }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -960,7 +960,7 @@ col: 59, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -974,7 +974,7 @@ col: 58, }, }, - left: { '@type': "MemberExpression", + left: { '@type': "javascript:MemberExpression", '@role': [Assignment, Binary, Expression, Identifier, Left, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1024,7 +1024,7 @@ '@token': "=", '@role': [Assignment, Binary, Expression, Operator], }, - right: { '@type': "FunctionExpression", + right: { '@type': "javascript:FunctionExpression", '@role': [Assignment, Binary, Declaration, Expression, Function, Right], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1061,7 +1061,7 @@ }, }, }, - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1076,7 +1076,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1105,7 +1105,7 @@ }, Name: "testcls2", }, - init: { '@type': "CallExpression", + init: { '@type': "javascript:CallExpression", '@role': [Call, Expression, Initialization], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1120,7 +1120,7 @@ }, }, arguments: [ - { '@type': "ObjectExpression", + { '@type': "javascript:ObjectExpression", '@role': [Argument, Call, Expression, Initialization, Literal, Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1135,7 +1135,7 @@ }, }, properties: [ - { '@type': "ObjectProperty", + { '@type': "javascript:ObjectProperty", '@role': [Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1169,7 +1169,7 @@ }, method: false, shorthand: false, - value: { '@type': "FunctionExpression", + value: { '@type': "javascript:FunctionExpression", '@role': [Declaration, Expression, Function, Map, Value], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1208,7 +1208,7 @@ ], }, ], - callee: { '@type': "MemberExpression", + callee: { '@type': "javascript:MemberExpression", '@role': [Call, Callee, Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1259,7 +1259,7 @@ ], kind: "var", }, - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1274,7 +1274,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1303,7 +1303,7 @@ }, Name: "testcls3", }, - init: { '@type': "ObjectExpression", + init: { '@type': "javascript:ObjectExpression", '@role': [Expression, Initialization, Literal, Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1318,7 +1318,7 @@ }, }, properties: [ - { '@type': "ObjectProperty", + { '@type': "javascript:ObjectProperty", '@role': [Map], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1352,7 +1352,7 @@ }, method: false, shorthand: false, - value: { '@type': "FunctionExpression", + value: { '@type': "javascript:FunctionExpression", '@role': [Declaration, Expression, Function, Map, Value], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1394,7 +1394,7 @@ ], kind: "var", }, - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1409,7 +1409,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1438,7 +1438,7 @@ }, Name: "testcls4", }, - init: { '@type': "FunctionExpression", + init: { '@type': "javascript:FunctionExpression", '@role': [Declaration, Expression, Function, Initialization], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1468,7 +1468,7 @@ }, }, Statements: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1482,7 +1482,7 @@ col: 35, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1496,7 +1496,7 @@ col: 34, }, }, - left: { '@type': "MemberExpression", + left: { '@type': "javascript:MemberExpression", '@role': [Assignment, Binary, Expression, Identifier, Left, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1511,7 +1511,7 @@ }, }, computed: false, - object: { '@type': "ThisExpression", + object: { '@type': "javascript:ThisExpression", '@role': [Expression, This], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1546,7 +1546,7 @@ '@token': "=", '@role': [Assignment, Binary, Expression, Operator], }, - right: { '@type': "FunctionExpression", + right: { '@type': "javascript:FunctionExpression", '@role': [Assignment, Binary, Declaration, Expression, Function, Right], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1593,7 +1593,7 @@ ], kind: "var", }, - { '@type': "ClassDeclaration", + { '@type': "javascript:ClassDeclaration", '@role': [Declaration, Statement, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1607,7 +1607,7 @@ col: 2, }, }, - body: { '@type': "ClassBody", + body: { '@type': "javascript:ClassBody", '@role': [Body, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -1622,7 +1622,7 @@ }, }, body: [ - { '@type': "ClassMethod", + { '@type': "javascript:ClassMethod", '@role': [Declaration, Function, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/u2_class_method_binding.js.sem.uast b/fixtures/u2_class_method_binding.js.sem.uast index 43fc405..1ecd119 100644 --- a/fixtures/u2_class_method_binding.js.sem.uast +++ b/fixtures/u2_class_method_binding.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ClassDeclaration", + { '@type': "javascript:ClassDeclaration", '@role': [Declaration, Statement, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 2, }, }, - body: { '@type': "ClassBody", + body: { '@type': "javascript:ClassBody", '@role': [Body, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -57,7 +57,7 @@ }, }, body: [ - { '@type': "ClassMethod", + { '@type': "javascript:ClassMethod", '@role': [Declaration, Function, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/u2_class_method_tag.js.sem.uast b/fixtures/u2_class_method_tag.js.sem.uast index db938d0..9629950 100644 --- a/fixtures/u2_class_method_tag.js.sem.uast +++ b/fixtures/u2_class_method_tag.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ClassDeclaration", + { '@type': "javascript:ClassDeclaration", '@role': [Declaration, Statement, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 2, }, }, - body: { '@type': "ClassBody", + body: { '@type': "javascript:ClassBody", '@role': [Body, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -57,7 +57,7 @@ }, }, body: [ - { '@type': "ClassMethod", + { '@type': "javascript:ClassMethod", '@role': [Declaration, Function, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -90,7 +90,7 @@ }, computed: false, decorators: [ - { '@type': "Decorator", + { '@type': "javascript:Decorator", '@role': [Annotation, Incomplete], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/u2_class_tag.js.sem.uast b/fixtures/u2_class_tag.js.sem.uast index e822198..08f0617 100644 --- a/fixtures/u2_class_tag.js.sem.uast +++ b/fixtures/u2_class_tag.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ClassDeclaration", + { '@type': "javascript:ClassDeclaration", '@role': [Declaration, Statement, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 18, }, }, - body: { '@type': "ClassBody", + body: { '@type': "javascript:ClassBody", '@role': [Body, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -59,7 +59,7 @@ body: [], }, decorators: [ - { '@type': "Decorator", + { '@type': "javascript:Decorator", '@role': [Annotation, Incomplete], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/u2_class_this.js.sem.uast b/fixtures/u2_class_this.js.sem.uast index de62977..ed9328c 100644 --- a/fixtures/u2_class_this.js.sem.uast +++ b/fixtures/u2_class_this.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -43,7 +43,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -72,7 +72,7 @@ }, Name: "testcls1", }, - init: { '@type': "FunctionExpression", + init: { '@type': "javascript:FunctionExpression", '@role': [Declaration, Expression, Function, Initialization], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -102,7 +102,7 @@ }, }, Statements: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -116,7 +116,7 @@ col: 18, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -130,7 +130,7 @@ col: 17, }, }, - left: { '@type': "MemberExpression", + left: { '@type': "javascript:MemberExpression", '@role': [Assignment, Binary, Expression, Identifier, Left, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -145,7 +145,7 @@ }, }, computed: false, - object: { '@type': "ThisExpression", + object: { '@type': "javascript:ThisExpression", '@role': [Expression, This], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -180,7 +180,7 @@ '@token': "=", '@role': [Assignment, Binary, Expression, Operator], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 1, '@role': [Assignment, Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", @@ -208,7 +208,7 @@ ], kind: "var", }, - { '@type': "ClassDeclaration", + { '@type': "javascript:ClassDeclaration", '@role': [Declaration, Statement, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -222,7 +222,7 @@ col: 2, }, }, - body: { '@type': "ClassBody", + body: { '@type': "javascript:ClassBody", '@role': [Body, Type], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -237,7 +237,7 @@ }, }, body: [ - { '@type': "ClassMethod", + { '@type': "javascript:ClassMethod", '@role': [Declaration, Function, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -267,7 +267,7 @@ }, }, Statements: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -281,7 +281,7 @@ col: 22, }, }, - expression: { '@type': "AssignmentExpression", + expression: { '@type': "javascript:AssignmentExpression", '@role': [Assignment, Binary, Expression, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -295,7 +295,7 @@ col: 21, }, }, - left: { '@type': "MemberExpression", + left: { '@type': "javascript:MemberExpression", '@role': [Assignment, Binary, Expression, Identifier, Left, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -310,7 +310,7 @@ }, }, computed: false, - object: { '@type': "ThisExpression", + object: { '@type': "javascript:ThisExpression", '@role': [Expression, This], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -345,7 +345,7 @@ '@token': "=", '@role': [Assignment, Binary, Expression, Operator], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 2, '@role': [Assignment, Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/u2_func_anonymous.js.sem.uast b/fixtures/u2_func_anonymous.js.sem.uast index f3c7adf..e7ffdb4 100644 --- a/fixtures/u2_func_anonymous.js.sem.uast +++ b/fixtures/u2_func_anonymous.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 11, }, }, - expression: { '@type': "ArrowFunctionExpression", + expression: { '@type': "javascript:ArrowFunctionExpression", '@role': [Anonymous, Declaration, Expression, Function], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -57,7 +57,7 @@ }, }, async: false, - body: { '@type': "BinaryExpression", + body: { '@type': "javascript:BinaryExpression", '@role': [Arithmetic, Binary, Body, Expression, Function, Multiply, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -91,7 +91,7 @@ '@token': "*", '@role': [Arithmetic, Binary, Expression, Multiply, Operator], }, - right: { '@type': "NumericLiteral", + right: { '@type': "javascript:NumericLiteral", '@token': 2, '@role': [Binary, Expression, Literal, Number, Right], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/u2_func_async.js.sem.uast b/fixtures/u2_func_async.js.sem.uast index b735eee..e37492a 100644 --- a/fixtures/u2_func_async.js.sem.uast +++ b/fixtures/u2_func_async.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/u2_func_empty.js.sem.uast b/fixtures/u2_func_empty.js.sem.uast index 770d02a..42f7643 100644 --- a/fixtures/u2_func_empty.js.sem.uast +++ b/fixtures/u2_func_empty.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/u2_func_inner.js.sem.uast b/fixtures/u2_func_inner.js.sem.uast index 866acd4..bea08d9 100644 --- a/fixtures/u2_func_inner.js.sem.uast +++ b/fixtures/u2_func_inner.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/u2_func_params_default.js.sem.uast b/fixtures/u2_func_params_default.js.sem.uast index d39e34d..7bd8b43 100644 --- a/fixtures/u2_func_params_default.js.sem.uast +++ b/fixtures/u2_func_params_default.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -115,7 +115,7 @@ col: 25, }, }, - Init: { '@type': "NumericLiteral", + Init: { '@type': "javascript:NumericLiteral", '@token': 1, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/u2_func_qualifiers.js.sem.uast b/fixtures/u2_func_qualifiers.js.sem.uast index ea5c724..d50f97e 100644 --- a/fixtures/u2_func_qualifiers.js.sem.uast +++ b/fixtures/u2_func_qualifiers.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ExportNamedDeclaration", + { '@type': "javascript:ExportNamedDeclaration", '@role': [Declaration, Incomplete, Module, Statement, Visibility], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/u2_func_simple.js.sem.uast b/fixtures/u2_func_simple.js.sem.uast index 74ace0e..8593972 100644 --- a/fixtures/u2_func_simple.js.sem.uast +++ b/fixtures/u2_func_simple.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -77,7 +77,7 @@ }, }, Statements: [ - { '@type': "ReturnStatement", + { '@type': "javascript:ReturnStatement", '@role': [Return, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -91,7 +91,7 @@ col: 13, }, }, - argument: { '@type': "NumericLiteral", + argument: { '@type': "javascript:NumericLiteral", '@token': 1, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/u2_func_variadic_list.js.sem.uast b/fixtures/u2_func_variadic_list.js.sem.uast index 56b5148..613c523 100644 --- a/fixtures/u2_func_variadic_list.js.sem.uast +++ b/fixtures/u2_func_variadic_list.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -77,7 +77,7 @@ }, }, Statements: [ - { '@type': "ReturnStatement", + { '@type': "javascript:ReturnStatement", '@role': [Return, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -91,7 +91,7 @@ col: 25, }, }, - argument: { '@type': "MemberExpression", + argument: { '@type': "javascript:MemberExpression", '@role': [Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -121,7 +121,7 @@ }, Name: "arguments", }, - property: { '@type': "NumericLiteral", + property: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/u2_func_variadic_list_2.js.sem.uast b/fixtures/u2_func_variadic_list_2.js.sem.uast index 95b1322..c5577ca 100644 --- a/fixtures/u2_func_variadic_list_2.js.sem.uast +++ b/fixtures/u2_func_variadic_list_2.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -77,7 +77,7 @@ }, }, Statements: [ - { '@type': "ReturnStatement", + { '@type': "javascript:ReturnStatement", '@role': [Return, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/u2_import_path.js.sem.uast b/fixtures/u2_import_path.js.sem.uast index 08d8c63..158cd9a 100644 --- a/fixtures/u2_import_path.js.sem.uast +++ b/fixtures/u2_import_path.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/u2_import_simple.js.sem.uast b/fixtures/u2_import_simple.js.sem.uast index 642fa36..2e9a69e 100644 --- a/fixtures/u2_import_simple.js.sem.uast +++ b/fixtures/u2_import_simple.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/u2_import_specific_default.js.sem.uast b/fixtures/u2_import_specific_default.js.sem.uast index eddc30c..841111b 100644 --- a/fixtures/u2_import_specific_default.js.sem.uast +++ b/fixtures/u2_import_specific_default.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/u2_import_subsymbol.js.sem.uast b/fixtures/u2_import_subsymbol.js.sem.uast index dbd005a..5afbcbe 100644 --- a/fixtures/u2_import_subsymbol.js.sem.uast +++ b/fixtures/u2_import_subsymbol.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/u2_import_subsymbol_alias.js.sem.uast b/fixtures/u2_import_subsymbol_alias.js.sem.uast index f823535..57631b6 100644 --- a/fixtures/u2_import_subsymbol_alias.js.sem.uast +++ b/fixtures/u2_import_subsymbol_alias.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/u2_import_subsymbols_namespaced.js.sem.uast b/fixtures/u2_import_subsymbols_namespaced.js.sem.uast index 58aa1c4..60343e5 100644 --- a/fixtures/u2_import_subsymbols_namespaced.js.sem.uast +++ b/fixtures/u2_import_subsymbols_namespaced.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/unary-expression.js.sem.uast b/fixtures/unary-expression.js.sem.uast index 3c3f207..2fa1d3c 100644 --- a/fixtures/unary-expression.js.sem.uast +++ b/fixtures/unary-expression.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 4, }, }, - expression: { '@type': "UnaryExpression", + expression: { '@type': "javascript:UnaryExpression", '@role': [Arithmetic, Expression, Operator, Positive, Unary], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -56,7 +56,7 @@ col: 3, }, }, - argument: { '@type': "NumericLiteral", + argument: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -79,7 +79,7 @@ prefix: true, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -93,7 +93,7 @@ col: 4, }, }, - expression: { '@type': "UnaryExpression", + expression: { '@type': "javascript:UnaryExpression", '@role': [Arithmetic, Expression, Negative, Operator, Unary], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -107,7 +107,7 @@ col: 3, }, }, - argument: { '@type': "NumericLiteral", + argument: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -130,7 +130,7 @@ prefix: true, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -144,7 +144,7 @@ col: 4, }, }, - expression: { '@type': "UnaryExpression", + expression: { '@type': "javascript:UnaryExpression", '@role': [Boolean, Expression, Not, Operator, Unary], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -158,7 +158,7 @@ col: 3, }, }, - argument: { '@type': "NumericLiteral", + argument: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -181,7 +181,7 @@ prefix: true, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -195,7 +195,7 @@ col: 4, }, }, - expression: { '@type': "UnaryExpression", + expression: { '@type': "javascript:UnaryExpression", '@role': [Bitwise, Expression, Not, Operator, Unary], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -209,7 +209,7 @@ col: 3, }, }, - argument: { '@type': "NumericLiteral", + argument: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -232,7 +232,7 @@ prefix: true, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -246,7 +246,7 @@ col: 10, }, }, - expression: { '@type': "UnaryExpression", + expression: { '@type': "javascript:UnaryExpression", '@role': [Expression, Operator, Type, Unary], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -260,7 +260,7 @@ col: 9, }, }, - argument: { '@type': "NumericLiteral", + argument: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -283,7 +283,7 @@ prefix: true, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -297,7 +297,7 @@ col: 8, }, }, - expression: { '@type': "UnaryExpression", + expression: { '@type': "javascript:UnaryExpression", '@role': [Expression, 'Null', Operator, Unary], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -311,7 +311,7 @@ col: 7, }, }, - argument: { '@type': "NumericLiteral", + argument: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -334,7 +334,7 @@ prefix: true, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -348,7 +348,7 @@ col: 12, }, }, - expression: { '@type': "UnaryExpression", + expression: { '@type': "javascript:UnaryExpression", '@role': [Expression, Incomplete, Operator, Unary], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -362,7 +362,7 @@ col: 11, }, }, - argument: { '@type': "MemberExpression", + argument: { '@type': "javascript:MemberExpression", '@role': [Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -415,7 +415,7 @@ prefix: true, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -429,7 +429,7 @@ col: 15, }, }, - expression: { '@type': "UnaryExpression", + expression: { '@type': "javascript:UnaryExpression", '@role': [Expression, Incomplete, Operator, Unary], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -443,7 +443,7 @@ col: 14, }, }, - argument: { '@type': "MemberExpression", + argument: { '@type': "javascript:MemberExpression", '@role': [Expression, Identifier, Qualified], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/update-expression.js.sem.uast b/fixtures/update-expression.js.sem.uast index 37927e6..2f28f91 100644 --- a/fixtures/update-expression.js.sem.uast +++ b/fixtures/update-expression.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -42,7 +42,7 @@ col: 5, }, }, - expression: { '@type': "UpdateExpression", + expression: { '@type': "javascript:UpdateExpression", '@role': [Arithmetic, Expression, Increment, Operator, Unary], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -78,7 +78,7 @@ prefix: true, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -92,7 +92,7 @@ col: 5, }, }, - expression: { '@type': "UpdateExpression", + expression: { '@type': "javascript:UpdateExpression", '@role': [Arithmetic, Expression, Increment, Operator, Postfix, Unary], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -128,7 +128,7 @@ prefix: false, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -142,7 +142,7 @@ col: 5, }, }, - expression: { '@type': "UpdateExpression", + expression: { '@type': "javascript:UpdateExpression", '@role': [Arithmetic, Decrement, Expression, Operator, Unary], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -178,7 +178,7 @@ prefix: true, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -192,7 +192,7 @@ col: 5, }, }, - expression: { '@type': "UpdateExpression", + expression: { '@type': "javascript:UpdateExpression", '@role': [Arithmetic, Decrement, Expression, Operator, Postfix, Unary], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/variable-declaration.js.sem.uast b/fixtures/variable-declaration.js.sem.uast index 162c474..8007360 100644 --- a/fixtures/variable-declaration.js.sem.uast +++ b/fixtures/variable-declaration.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -43,7 +43,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -72,7 +72,7 @@ }, Name: "a", }, - init: { '@type': "NumericLiteral", + init: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Expression, Initialization, Literal, Number], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/variable-declarator.js.sem.uast b/fixtures/variable-declarator.js.sem.uast index 162c474..8007360 100644 --- a/fixtures/variable-declarator.js.sem.uast +++ b/fixtures/variable-declarator.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -43,7 +43,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -72,7 +72,7 @@ }, Name: "a", }, - init: { '@type': "NumericLiteral", + init: { '@type': "javascript:NumericLiteral", '@token': 0, '@role': [Expression, Initialization, Literal, Number], '@pos': { '@type': "uast:Positions", diff --git a/fixtures/with-statement.js.sem.uast b/fixtures/with-statement.js.sem.uast index ed7a439..b09ed85 100644 --- a/fixtures/with-statement.js.sem.uast +++ b/fixtures/with-statement.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -28,7 +28,7 @@ }, }, body: [ - { '@type': "WithStatement", + { '@type': "javascript:WithStatement", '@role': [Block, Incomplete, Scope, Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -56,7 +56,7 @@ }, }, Statements: [ - { '@type': "VariableDeclaration", + { '@type': "javascript:VariableDeclaration", '@role': [Declaration, Statement, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -71,7 +71,7 @@ }, }, declarations: [ - { '@type': "VariableDeclarator", + { '@type': "javascript:VariableDeclarator", '@role': [Declaration, Variable], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -100,7 +100,7 @@ }, Name: "pi2", }, - init: { '@type': "BinaryExpression", + init: { '@type': "javascript:BinaryExpression", '@role': [Arithmetic, Binary, Expression, Initialization, Multiply, Operator], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", diff --git a/fixtures/yield-expression.js.sem.uast b/fixtures/yield-expression.js.sem.uast index 3b09458..b66cef1 100644 --- a/fixtures/yield-expression.js.sem.uast +++ b/fixtures/yield-expression.js.sem.uast @@ -1,4 +1,4 @@ -{ '@type': "File", +{ '@type': "javascript:File", '@role': [File], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -13,7 +13,7 @@ }, }, comments: [], - program: { '@type': "Program", + program: { '@type': "javascript:Program", '@role': [Module], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -77,7 +77,7 @@ }, }, Statements: [ - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -91,7 +91,7 @@ col: 9, }, }, - expression: { '@type': "YieldExpression", + expression: { '@type': "javascript:YieldExpression", '@role': [Expression, Incomplete, Return], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -109,7 +109,7 @@ delegate: false, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -123,7 +123,7 @@ col: 11, }, }, - expression: { '@type': "YieldExpression", + expression: { '@type': "javascript:YieldExpression", '@role': [Expression, Incomplete, Return], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -137,7 +137,7 @@ col: 10, }, }, - argument: { '@type': "NumericLiteral", + argument: { '@type': "javascript:NumericLiteral", '@token': 1, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions", @@ -156,7 +156,7 @@ delegate: false, }, }, - { '@type': "ExpressionStatement", + { '@type': "javascript:ExpressionStatement", '@role': [Statement], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -170,7 +170,7 @@ col: 12, }, }, - expression: { '@type': "YieldExpression", + expression: { '@type': "javascript:YieldExpression", '@role': [Expression, Incomplete, Return], '@pos': { '@type': "uast:Positions", start: { '@type': "uast:Position", @@ -184,7 +184,7 @@ col: 11, }, }, - argument: { '@type': "NumericLiteral", + argument: { '@type': "javascript:NumericLiteral", '@token': 1, '@role': [Expression, Literal, Number], '@pos': { '@type': "uast:Positions",