@malloydata/malloy 0.0.24-dev230224184907 → 0.0.24-dev230228224434
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connection_utils.js +10 -10
- package/dist/dialect/dialect.d.ts +2 -2
- package/dist/dialect/dialect.js +13 -13
- package/dist/dialect/dialect_map.d.ts +1 -1
- package/dist/dialect/duckdb.d.ts +3 -3
- package/dist/dialect/duckdb.js +44 -44
- package/dist/dialect/index.d.ts +6 -6
- package/dist/dialect/postgres.d.ts +3 -3
- package/dist/dialect/postgres.js +46 -46
- package/dist/dialect/standardsql.d.ts +4 -4
- package/dist/dialect/standardsql.js +51 -51
- package/dist/index.d.ts +10 -10
- package/dist/lang/ast/ast-utils.d.ts +1 -1
- package/dist/lang/ast/ast-utils.js +3 -3
- package/dist/lang/ast/elements/define-query.d.ts +3 -3
- package/dist/lang/ast/elements/define-query.js +6 -6
- package/dist/lang/ast/elements/define-source.d.ts +4 -4
- package/dist/lang/ast/elements/define-source.js +8 -8
- package/dist/lang/ast/elements/import-statement.d.ts +2 -2
- package/dist/lang/ast/elements/import-statement.js +7 -7
- package/dist/lang/ast/elements/pipeline-desc.d.ts +5 -5
- package/dist/lang/ast/elements/pipeline-desc.js +11 -11
- package/dist/lang/ast/elements/refined-source.d.ts +4 -4
- package/dist/lang/ast/elements/refined-source.js +6 -6
- package/dist/lang/ast/elements/source.d.ts +3 -3
- package/dist/lang/ast/elements/source.js +1 -1
- package/dist/lang/ast/error-factory.d.ts +1 -1
- package/dist/lang/ast/error-factory.js +15 -15
- package/dist/lang/ast/executors/index-executor.d.ts +7 -7
- package/dist/lang/ast/executors/index-executor.js +4 -4
- package/dist/lang/ast/executors/project-executor.d.ts +5 -5
- package/dist/lang/ast/executors/project-executor.js +2 -2
- package/dist/lang/ast/executors/reduce-executor.d.ts +8 -8
- package/dist/lang/ast/executors/reduce-executor.js +5 -5
- package/dist/lang/ast/expressions/apply.d.ts +2 -2
- package/dist/lang/ast/expressions/apply.js +1 -1
- package/dist/lang/ast/expressions/binary-boolean.d.ts +3 -3
- package/dist/lang/ast/expressions/binary-boolean.js +6 -6
- package/dist/lang/ast/expressions/binary-numeric.d.ts +3 -3
- package/dist/lang/ast/expressions/binary-numeric.js +2 -2
- package/dist/lang/ast/expressions/boolean.d.ts +4 -4
- package/dist/lang/ast/expressions/boolean.js +2 -2
- package/dist/lang/ast/expressions/constant-sub-expression.d.ts +4 -4
- package/dist/lang/ast/expressions/constant-sub-expression.js +12 -12
- package/dist/lang/ast/expressions/expr-add-sub.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-add-sub.js +1 -1
- package/dist/lang/ast/expressions/expr-aggregate-function.d.ts +5 -5
- package/dist/lang/ast/expressions/expr-aggregate-function.js +15 -15
- package/dist/lang/ast/expressions/expr-alternation-tree.d.ts +6 -6
- package/dist/lang/ast/expressions/expr-alternation-tree.js +6 -6
- package/dist/lang/ast/expressions/expr-asymmetric.d.ts +5 -5
- package/dist/lang/ast/expressions/expr-asymmetric.js +3 -3
- package/dist/lang/ast/expressions/expr-avg.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-avg.js +2 -2
- package/dist/lang/ast/expressions/expr-cast.d.ts +4 -4
- package/dist/lang/ast/expressions/expr-cast.js +6 -6
- package/dist/lang/ast/expressions/expr-compare.d.ts +5 -5
- package/dist/lang/ast/expressions/expr-compare.js +9 -9
- package/dist/lang/ast/expressions/expr-count-distinct.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-count-distinct.js +1 -1
- package/dist/lang/ast/expressions/expr-count.d.ts +4 -4
- package/dist/lang/ast/expressions/expr-count.js +10 -10
- package/dist/lang/ast/expressions/expr-filter.d.ts +4 -4
- package/dist/lang/ast/expressions/expr-filter.js +13 -13
- package/dist/lang/ast/expressions/expr-func.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-func.js +8 -8
- package/dist/lang/ast/expressions/expr-granular-time.d.ts +4 -4
- package/dist/lang/ast/expressions/expr-granular-time.js +17 -17
- package/dist/lang/ast/expressions/expr-id-reference.d.ts +4 -4
- package/dist/lang/ast/expressions/expr-id-reference.js +11 -11
- package/dist/lang/ast/expressions/expr-logical-op.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-logical-op.js +1 -1
- package/dist/lang/ast/expressions/expr-max.d.ts +4 -4
- package/dist/lang/ast/expressions/expr-max.js +1 -1
- package/dist/lang/ast/expressions/expr-min.d.ts +4 -4
- package/dist/lang/ast/expressions/expr-min.js +1 -1
- package/dist/lang/ast/expressions/expr-minus.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-minus.js +5 -5
- package/dist/lang/ast/expressions/expr-mul-div.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-mul-div.js +1 -1
- package/dist/lang/ast/expressions/expr-not.d.ts +4 -4
- package/dist/lang/ast/expressions/expr-not.js +3 -3
- package/dist/lang/ast/expressions/expr-now.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-now.js +8 -8
- package/dist/lang/ast/expressions/expr-null.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-null.js +4 -4
- package/dist/lang/ast/expressions/expr-number.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-number.js +2 -2
- package/dist/lang/ast/expressions/expr-parens.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-parens.js +3 -3
- package/dist/lang/ast/expressions/expr-regex.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-regex.js +4 -4
- package/dist/lang/ast/expressions/expr-string.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-string.js +8 -8
- package/dist/lang/ast/expressions/expr-sum.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-sum.js +2 -2
- package/dist/lang/ast/expressions/expr-time-extract.d.ts +4 -4
- package/dist/lang/ast/expressions/expr-time-extract.js +30 -30
- package/dist/lang/ast/expressions/expr-time.d.ts +4 -4
- package/dist/lang/ast/expressions/expr-time.js +10 -10
- package/dist/lang/ast/expressions/expr-ungroup.d.ts +6 -6
- package/dist/lang/ast/expressions/expr-ungroup.js +13 -13
- package/dist/lang/ast/expressions/for-range.d.ts +4 -4
- package/dist/lang/ast/expressions/for-range.js +17 -17
- package/dist/lang/ast/expressions/granular-literal.d.ts +4 -4
- package/dist/lang/ast/expressions/granular-literal.js +34 -34
- package/dist/lang/ast/expressions/partial-compare.d.ts +4 -4
- package/dist/lang/ast/expressions/partial-compare.js +4 -4
- package/dist/lang/ast/expressions/pick-when.d.ts +4 -4
- package/dist/lang/ast/expressions/pick-when.js +32 -32
- package/dist/lang/ast/expressions/range.d.ts +3 -3
- package/dist/lang/ast/expressions/range.js +20 -20
- package/dist/lang/ast/expressions/time-frame.d.ts +2 -2
- package/dist/lang/ast/expressions/time-frame.js +3 -3
- package/dist/lang/ast/expressions/top-by.d.ts +4 -4
- package/dist/lang/ast/expressions/top-by.js +5 -5
- package/dist/lang/ast/expressions/unary.d.ts +1 -1
- package/dist/lang/ast/expressions/unary.js +1 -1
- package/dist/lang/ast/expressions/utils.d.ts +2 -2
- package/dist/lang/ast/expressions/utils.js +6 -6
- package/dist/lang/ast/field-space/column-space-field.d.ts +3 -3
- package/dist/lang/ast/field-space/dynamic-space.d.ts +7 -7
- package/dist/lang/ast/field-space/dynamic-space.js +2 -2
- package/dist/lang/ast/field-space/field-definition-value.d.ts +5 -5
- package/dist/lang/ast/field-space/index-field-space.d.ts +3 -3
- package/dist/lang/ast/field-space/index-field-space.js +4 -4
- package/dist/lang/ast/field-space/join-space-field.d.ts +3 -3
- package/dist/lang/ast/field-space/project-field-space.d.ts +2 -2
- package/dist/lang/ast/field-space/project-field-space.js +5 -5
- package/dist/lang/ast/field-space/query-field-struct.d.ts +3 -3
- package/dist/lang/ast/field-space/query-field-struct.js +1 -1
- package/dist/lang/ast/field-space/query-space-field.d.ts +4 -4
- package/dist/lang/ast/field-space/query-space-field.js +1 -1
- package/dist/lang/ast/field-space/query-spaces.d.ts +11 -11
- package/dist/lang/ast/field-space/query-spaces.js +8 -8
- package/dist/lang/ast/field-space/reference-field.d.ts +5 -5
- package/dist/lang/ast/field-space/reference-field.js +1 -1
- package/dist/lang/ast/field-space/refined-space.d.ts +4 -4
- package/dist/lang/ast/field-space/refined-space.js +2 -2
- package/dist/lang/ast/field-space/rename-space-field.d.ts +3 -3
- package/dist/lang/ast/field-space/rename-space-field.js +2 -2
- package/dist/lang/ast/field-space/static-space.d.ts +7 -7
- package/dist/lang/ast/field-space/static-space.js +12 -12
- package/dist/lang/ast/field-space/struct-space-field-base.d.ts +4 -4
- package/dist/lang/ast/field-space/struct-space-field-base.js +1 -1
- package/dist/lang/ast/field-space/wild-space-field.d.ts +4 -4
- package/dist/lang/ast/field-space/wild-space-field.js +1 -1
- package/dist/lang/ast/fragtype-utils.d.ts +1 -1
- package/dist/lang/ast/fragtype-utils.js +15 -15
- package/dist/lang/ast/index.d.ts +90 -90
- package/dist/lang/ast/parameters/constant-parameter.d.ts +3 -3
- package/dist/lang/ast/parameters/constant-parameter.js +10 -10
- package/dist/lang/ast/parameters/has-parameter.d.ts +3 -3
- package/dist/lang/ast/parameters/has-parameter.js +7 -7
- package/dist/lang/ast/query-elements/anonymous-query.d.ts +3 -3
- package/dist/lang/ast/query-elements/anonymous-query.js +2 -2
- package/dist/lang/ast/query-elements/existing-query.d.ts +4 -4
- package/dist/lang/ast/query-elements/existing-query.js +10 -10
- package/dist/lang/ast/query-elements/full-query.d.ts +4 -4
- package/dist/lang/ast/query-elements/full-query.js +10 -10
- package/dist/lang/ast/query-elements/query-head-struct.d.ts +2 -2
- package/dist/lang/ast/query-elements/query-head-struct.js +2 -2
- package/dist/lang/ast/query-items/field-declaration.d.ts +6 -6
- package/dist/lang/ast/query-items/field-declaration.js +14 -14
- package/dist/lang/ast/query-items/field-references.d.ts +6 -6
- package/dist/lang/ast/query-items/field-references.js +9 -9
- package/dist/lang/ast/query-properties/aggregate.d.ts +2 -2
- package/dist/lang/ast/query-properties/aggregate.js +1 -1
- package/dist/lang/ast/query-properties/declare-fields.d.ts +2 -2
- package/dist/lang/ast/query-properties/declare-fields.js +1 -1
- package/dist/lang/ast/query-properties/dimmensions.d.ts +2 -2
- package/dist/lang/ast/query-properties/dimmensions.js +1 -1
- package/dist/lang/ast/query-properties/filters.d.ts +4 -4
- package/dist/lang/ast/query-properties/filters.js +16 -16
- package/dist/lang/ast/query-properties/group-by.d.ts +2 -2
- package/dist/lang/ast/query-properties/group-by.js +1 -1
- package/dist/lang/ast/query-properties/indexing.d.ts +3 -3
- package/dist/lang/ast/query-properties/indexing.js +3 -3
- package/dist/lang/ast/query-properties/joins.d.ts +6 -6
- package/dist/lang/ast/query-properties/joins.js +27 -27
- package/dist/lang/ast/query-properties/limit.d.ts +1 -1
- package/dist/lang/ast/query-properties/limit.js +1 -1
- package/dist/lang/ast/query-properties/measures.d.ts +2 -2
- package/dist/lang/ast/query-properties/measures.js +1 -1
- package/dist/lang/ast/query-properties/nest-reference.d.ts +2 -2
- package/dist/lang/ast/query-properties/nest-reference.js +1 -1
- package/dist/lang/ast/query-properties/nest.d.ts +7 -7
- package/dist/lang/ast/query-properties/nest.js +7 -7
- package/dist/lang/ast/query-properties/nests.d.ts +2 -2
- package/dist/lang/ast/query-properties/nests.js +1 -1
- package/dist/lang/ast/query-properties/ordering.d.ts +3 -3
- package/dist/lang/ast/query-properties/ordering.js +6 -6
- package/dist/lang/ast/query-properties/project-statement.d.ts +2 -2
- package/dist/lang/ast/query-properties/project-statement.js +1 -1
- package/dist/lang/ast/query-properties/qop-desc.d.ts +7 -7
- package/dist/lang/ast/query-properties/qop-desc.js +20 -20
- package/dist/lang/ast/query-properties/sampling.d.ts +2 -2
- package/dist/lang/ast/query-properties/sampling.js +1 -1
- package/dist/lang/ast/query-properties/top.d.ts +4 -4
- package/dist/lang/ast/query-properties/top.js +5 -5
- package/dist/lang/ast/source-properties/field-list-edit.d.ts +4 -4
- package/dist/lang/ast/source-properties/field-list-edit.js +2 -2
- package/dist/lang/ast/source-properties/primary-key.d.ts +2 -2
- package/dist/lang/ast/source-properties/primary-key.js +2 -2
- package/dist/lang/ast/source-properties/renames.d.ts +2 -2
- package/dist/lang/ast/source-properties/renames.js +3 -3
- package/dist/lang/ast/source-properties/turtles.d.ts +2 -2
- package/dist/lang/ast/source-properties/turtles.js +1 -1
- package/dist/lang/ast/sources/named-source.d.ts +4 -4
- package/dist/lang/ast/sources/named-source.js +5 -5
- package/dist/lang/ast/sources/query-source.d.ts +3 -3
- package/dist/lang/ast/sources/query-source.js +3 -3
- package/dist/lang/ast/sources/sql-source.d.ts +2 -2
- package/dist/lang/ast/sources/sql-source.js +2 -2
- package/dist/lang/ast/sources/table-source.d.ts +2 -2
- package/dist/lang/ast/sources/table-source.js +7 -7
- package/dist/lang/ast/space-seed.d.ts +2 -2
- package/dist/lang/ast/space-seed.js +1 -1
- package/dist/lang/ast/sql-elements/sql-statement.d.ts +4 -4
- package/dist/lang/ast/sql-elements/sql-statement.js +9 -9
- package/dist/lang/ast/sql-elements/sql-string.d.ts +3 -3
- package/dist/lang/ast/sql-elements/sql-string.js +6 -6
- package/dist/lang/ast/struct-utils.d.ts +2 -2
- package/dist/lang/ast/struct-utils.js +3 -3
- package/dist/lang/ast/time-utils.d.ts +6 -6
- package/dist/lang/ast/time-utils.js +46 -46
- package/dist/lang/ast/types/document-compile-result.d.ts +2 -2
- package/dist/lang/ast/types/executor.d.ts +3 -3
- package/dist/lang/ast/types/explore-desc.d.ts +2 -2
- package/dist/lang/ast/types/explore-desc.js +1 -1
- package/dist/lang/ast/types/explore-field.d.ts +3 -3
- package/dist/lang/ast/types/expr-result.d.ts +2 -2
- package/dist/lang/ast/types/expr-value.d.ts +2 -2
- package/dist/lang/ast/types/expression-def.d.ts +4 -4
- package/dist/lang/ast/types/expression-def.js +86 -86
- package/dist/lang/ast/types/field-collection-member.d.ts +3 -3
- package/dist/lang/ast/types/field-decl.d.ts +5 -5
- package/dist/lang/ast/types/field-space.d.ts +5 -5
- package/dist/lang/ast/types/field-space.js +1 -1
- package/dist/lang/ast/types/granular-result.d.ts +3 -3
- package/dist/lang/ast/types/granular-result.js +1 -1
- package/dist/lang/ast/types/lookup-result.d.ts +1 -1
- package/dist/lang/ast/types/malloy-element.d.ts +6 -6
- package/dist/lang/ast/types/malloy-element.js +49 -49
- package/dist/lang/ast/types/model-entry.d.ts +1 -1
- package/dist/lang/ast/types/name-space.d.ts +1 -1
- package/dist/lang/ast/types/nested-query.d.ts +2 -2
- package/dist/lang/ast/types/op-desc.d.ts +2 -2
- package/dist/lang/ast/types/query-comp.d.ts +1 -1
- package/dist/lang/ast/types/query-element.d.ts +3 -3
- package/dist/lang/ast/types/query-item.d.ts +4 -4
- package/dist/lang/ast/types/query-property.d.ts +15 -15
- package/dist/lang/ast/types/source-property.d.ts +8 -8
- package/dist/lang/ast/types/space-entry.d.ts +2 -2
- package/dist/lang/ast/types/space-field.d.ts +4 -4
- package/dist/lang/ast/types/space-field.js +4 -4
- package/dist/lang/ast/types/space-param.d.ts +4 -4
- package/dist/lang/ast/types/space-param.js +4 -4
- package/dist/lang/ast/types/time-result.d.ts +2 -2
- package/dist/lang/ast/types/turtle-headed-pipe.d.ts +2 -2
- package/dist/lang/ast/types/turtle-headed-pipe.js +1 -1
- package/dist/lang/ast/types/type-desc.d.ts +3 -3
- package/dist/lang/field-utils.d.ts +1 -1
- package/dist/lang/field-utils.js +4 -4
- package/dist/lang/index.d.ts +10 -10
- package/dist/lang/malloy-to-ast.d.ts +8 -8
- package/dist/lang/malloy-to-ast.js +68 -68
- package/dist/lang/parse-error-handler.d.ts +3 -3
- package/dist/lang/parse-error-handler.js +4 -4
- package/dist/lang/parse-log.d.ts +2 -2
- package/dist/lang/parse-log.js +1 -1
- package/dist/lang/parse-malloy.d.ts +7 -7
- package/dist/lang/parse-malloy.js +81 -81
- package/dist/lang/parse-tree-walkers/document-completion-walker.d.ts +2 -2
- package/dist/lang/parse-tree-walkers/document-completion-walker.js +38 -38
- package/dist/lang/parse-tree-walkers/document-help-context-walker.d.ts +1 -1
- package/dist/lang/parse-tree-walkers/document-help-context-walker.js +14 -14
- package/dist/lang/parse-tree-walkers/document-highlight-walker.d.ts +3 -3
- package/dist/lang/parse-tree-walkers/document-highlight-walker.js +85 -85
- package/dist/lang/parse-tree-walkers/document-symbol-walker.d.ts +4 -4
- package/dist/lang/parse-tree-walkers/document-symbol-walker.js +40 -40
- package/dist/lang/parse-tree-walkers/explore-query-walker.d.ts +3 -3
- package/dist/lang/parse-tree-walkers/explore-query-walker.js +3 -3
- package/dist/lang/parse-tree-walkers/find-external-references.d.ts +4 -4
- package/dist/lang/parse-tree-walkers/find-external-references.js +2 -2
- package/dist/lang/reference-list.d.ts +1 -1
- package/dist/lang/test/document-help-context-walker.spec.js +9 -9
- package/dist/lang/test/document-symbol-walker.spec.js +32 -32
- package/dist/lang/test/field-symbols.spec.js +87 -87
- package/dist/lang/test/parse.spec.d.ts +1 -1
- package/dist/lang/test/parse.spec.js +768 -768
- package/dist/lang/test/test-translator.d.ts +6 -6
- package/dist/lang/test/test-translator.js +159 -159
- package/dist/lang/translate-response.d.ts +7 -7
- package/dist/lang/translate-response.js +1 -1
- package/dist/lang/zone.d.ts +5 -5
- package/dist/lang/zone.js +8 -8
- package/dist/malloy.d.ts +7 -7
- package/dist/malloy.js +192 -192
- package/dist/model/index.d.ts +2 -2
- package/dist/model/malloy_query.d.ts +12 -12
- package/dist/model/malloy_query.js +497 -502
- package/dist/model/malloy_types.d.ts +68 -68
- package/dist/model/malloy_types.js +102 -102
- package/dist/model/sql_block.d.ts +1 -1
- package/dist/model/sql_block.js +4 -4
- package/dist/model/utils.d.ts +1 -1
- package/dist/model/utils.js +10 -10
- package/dist/runtime_types.d.ts +2 -2
- package/package.json +4 -1
|
@@ -27,87 +27,87 @@ const ParseTreeWalker_1 = require("antlr4ts/tree/ParseTreeWalker");
|
|
|
27
27
|
const MalloyParser_1 = require("../lib/Malloy/MalloyParser");
|
|
28
28
|
// TODO maybe this could be an enum like Definition__Field, etc.
|
|
29
29
|
exports.HighlightType = {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
30
|
+
Identifier: 'identifier',
|
|
31
|
+
Type: 'type',
|
|
32
|
+
Literal: {
|
|
33
|
+
Date: 'literal.date',
|
|
34
|
+
Number: 'literal.number',
|
|
35
|
+
String: 'literal.string',
|
|
36
|
+
RegularExpression: 'literal.regular_expression',
|
|
37
|
+
Boolean: 'literal.boolean',
|
|
38
|
+
Null: 'literal.null',
|
|
39
39
|
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
40
|
+
Call: {
|
|
41
|
+
Aggregate: 'call.aggregate',
|
|
42
|
+
TimeFrame: 'call.time_frame',
|
|
43
|
+
Cast: 'call.cast',
|
|
44
|
+
Table: 'call.table',
|
|
45
|
+
From: 'call.from',
|
|
46
|
+
Function: 'call.function',
|
|
47
|
+
FromSQL: 'call.from_sql',
|
|
48
48
|
},
|
|
49
49
|
// TODO many of these should probably be categorized further
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
Keyword: {
|
|
51
|
+
AggregateModifier: {
|
|
52
|
+
Distinct: 'keyword.aggregate_modifier.distinct',
|
|
53
53
|
},
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
CastModifier: {
|
|
55
|
+
As: 'keyword.cast_modifier.as',
|
|
56
56
|
},
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
57
|
+
Is: 'keyword.is',
|
|
58
|
+
On: 'keyword.on',
|
|
59
|
+
Desc: 'keyword.desc',
|
|
60
|
+
Asc: 'keyword.asc',
|
|
61
|
+
Pick: 'keyword.pick',
|
|
62
|
+
When: 'keyword.when',
|
|
63
|
+
Else: 'keyword.else',
|
|
64
|
+
With: 'keyword.with',
|
|
65
65
|
// TODO or is this a meta type?
|
|
66
|
-
|
|
66
|
+
JSON: 'keyword.json',
|
|
67
67
|
// TODO or is this a meta type?
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
Turtle: 'keyword.turtle',
|
|
69
|
+
Import: 'keyword.import',
|
|
70
70
|
},
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
71
|
+
Operator: {
|
|
72
|
+
Comparison: 'operator.comparison',
|
|
73
|
+
Boolean: 'operator.boolean',
|
|
74
|
+
Date: 'operator.date',
|
|
75
75
|
},
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
Comment: {
|
|
77
|
+
Line: 'comment.line',
|
|
78
|
+
Block: 'comment.block',
|
|
79
|
+
},
|
|
80
|
+
Property: {
|
|
81
|
+
Accept: 'property.accept',
|
|
82
|
+
Aggregate: 'property.aggregate',
|
|
83
|
+
Dimension: 'property.dimension',
|
|
84
|
+
Except: 'property.except',
|
|
85
|
+
Source: 'property.source',
|
|
86
|
+
GroupBy: 'property.group_by',
|
|
87
|
+
Having: 'property.having',
|
|
88
|
+
Index: 'property.index',
|
|
89
|
+
JoinOne: 'keyword.join_one',
|
|
90
|
+
JoinMany: 'keyword.join_many',
|
|
91
|
+
JoinCross: 'keyword.join_cross',
|
|
92
|
+
Limit: 'property.limit',
|
|
93
|
+
Measure: 'property.measure',
|
|
94
|
+
Nest: 'property.nest',
|
|
95
|
+
OrderBy: 'property.order_by',
|
|
96
|
+
PrimaryKey: 'property.primary_key',
|
|
97
|
+
Project: 'property.project',
|
|
98
|
+
Query: 'property.query',
|
|
99
|
+
Rename: 'property.rename',
|
|
100
|
+
Top: 'property.top',
|
|
101
|
+
Where: 'property.where',
|
|
102
|
+
SQL: 'property.sql',
|
|
79
103
|
},
|
|
80
|
-
"Property": {
|
|
81
|
-
"Accept": "property.accept",
|
|
82
|
-
"Aggregate": "property.aggregate",
|
|
83
|
-
"Dimension": "property.dimension",
|
|
84
|
-
"Except": "property.except",
|
|
85
|
-
"Source": "property.source",
|
|
86
|
-
"GroupBy": "property.group_by",
|
|
87
|
-
"Having": "property.having",
|
|
88
|
-
"Index": "property.index",
|
|
89
|
-
"JoinOne": "keyword.join_one",
|
|
90
|
-
"JoinMany": "keyword.join_many",
|
|
91
|
-
"JoinCross": "keyword.join_cross",
|
|
92
|
-
"Limit": "property.limit",
|
|
93
|
-
"Measure": "property.measure",
|
|
94
|
-
"Nest": "property.nest",
|
|
95
|
-
"OrderBy": "property.order_by",
|
|
96
|
-
"PrimaryKey": "property.primary_key",
|
|
97
|
-
"Project": "property.project",
|
|
98
|
-
"Query": "property.query",
|
|
99
|
-
"Rename": "property.rename",
|
|
100
|
-
"Top": "property.top",
|
|
101
|
-
"Where": "property.where",
|
|
102
|
-
"SQL": "property.sql"
|
|
103
|
-
}
|
|
104
104
|
};
|
|
105
105
|
function passForHighlights(tokens) {
|
|
106
106
|
const highlights = [];
|
|
107
107
|
const register = (token, type, removeColon = false) => {
|
|
108
108
|
var _a;
|
|
109
109
|
const offset = token.startIndex - token.charPositionInLine;
|
|
110
|
-
const tokenLines = ((_a = token.text) === null || _a === void 0 ? void 0 : _a.split(
|
|
110
|
+
const tokenLines = ((_a = token.text) === null || _a === void 0 ? void 0 : _a.split('\n')) || [];
|
|
111
111
|
const numberOfLines = tokenLines.length;
|
|
112
112
|
const lengthOfAllButLastLine = tokenLines
|
|
113
113
|
.slice(0, -1)
|
|
@@ -115,21 +115,21 @@ function passForHighlights(tokens) {
|
|
|
115
115
|
const colonAdjustment = removeColon ? 1 : 0;
|
|
116
116
|
highlights.push({
|
|
117
117
|
type,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
118
|
+
range: {
|
|
119
|
+
start: {
|
|
120
|
+
line: token.line - 1,
|
|
121
|
+
character: token.startIndex - offset,
|
|
122
122
|
},
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
end: {
|
|
124
|
+
line: token.line - 1 + numberOfLines - 1,
|
|
125
|
+
character: token.stopIndex +
|
|
126
126
|
2 -
|
|
127
127
|
(numberOfLines > 1 ? token.startIndex : offset) -
|
|
128
128
|
lengthOfAllButLastLine -
|
|
129
129
|
numberOfLines -
|
|
130
|
-
colonAdjustment
|
|
131
|
-
}
|
|
132
|
-
}
|
|
130
|
+
colonAdjustment,
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
133
|
});
|
|
134
134
|
};
|
|
135
135
|
for (let i = 0; i < tokens.size; i++) {
|
|
@@ -336,24 +336,24 @@ class DocumentHighlightWalker {
|
|
|
336
336
|
rangeOf(pcx) {
|
|
337
337
|
const stopToken = pcx.stop || pcx.start;
|
|
338
338
|
return {
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
339
|
+
start: {
|
|
340
|
+
line: pcx.start.line - 1,
|
|
341
|
+
character: pcx.start.charPositionInLine,
|
|
342
342
|
},
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
343
|
+
end: {
|
|
344
|
+
line: stopToken.line - 1,
|
|
345
|
+
character: stopToken.stopIndex -
|
|
346
346
|
(stopToken.startIndex - stopToken.charPositionInLine) +
|
|
347
|
-
1
|
|
348
|
-
}
|
|
347
|
+
1,
|
|
348
|
+
},
|
|
349
349
|
};
|
|
350
350
|
}
|
|
351
351
|
enterExprFunc(pcx) {
|
|
352
352
|
const id = pcx.id() || pcx.timeframe();
|
|
353
353
|
if (id) {
|
|
354
354
|
this.highlights.push({
|
|
355
|
-
|
|
356
|
-
|
|
355
|
+
range: this.rangeOf(id),
|
|
356
|
+
type: exports.HighlightType.Call.Function,
|
|
357
357
|
});
|
|
358
358
|
}
|
|
359
359
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CommonTokenStream } from
|
|
2
|
-
import { ParseTree } from
|
|
3
|
-
import { DocumentRange } from
|
|
4
|
-
import { MalloyTranslation } from
|
|
1
|
+
import { CommonTokenStream } from 'antlr4ts';
|
|
2
|
+
import { ParseTree } from 'antlr4ts/tree';
|
|
3
|
+
import { DocumentRange } from '../../model/malloy_types';
|
|
4
|
+
import { MalloyTranslation } from '../parse-malloy';
|
|
5
5
|
export interface DocumentSymbol {
|
|
6
6
|
range: DocumentRange;
|
|
7
7
|
type: string;
|
|
@@ -39,26 +39,26 @@ class DocumentSymbolWalker {
|
|
|
39
39
|
}
|
|
40
40
|
enterTopLevelQueryDef(pcx) {
|
|
41
41
|
this.symbols.push({
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
range: this.translator.rangeFromContext(pcx),
|
|
43
|
+
name: pcx.queryName().text,
|
|
44
|
+
type: 'query',
|
|
45
|
+
children: [],
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
enterTopLevelAnonQueryDef(pcx) {
|
|
49
49
|
this.symbols.push({
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
range: this.translator.rangeFromContext(pcx),
|
|
51
|
+
name: 'unnamed_query',
|
|
52
|
+
type: 'unnamed_query',
|
|
53
|
+
children: [],
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
enterSourceDefinition(pcx) {
|
|
57
57
|
this.scopes.push({
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
range: this.translator.rangeFromContext(pcx),
|
|
59
|
+
name: pcx.sourceNameDef().id().text,
|
|
60
|
+
type: 'explore',
|
|
61
|
+
children: [],
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
exitSourceDefinition(_pcx) {
|
|
@@ -69,10 +69,10 @@ class DocumentSymbolWalker {
|
|
|
69
69
|
}
|
|
70
70
|
enterExploreQueryDef(pcx) {
|
|
71
71
|
const symbol = {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
72
|
+
range: this.translator.rangeFromContext(pcx),
|
|
73
|
+
name: pcx.exploreQueryNameDef().id().text,
|
|
74
|
+
type: 'query',
|
|
75
|
+
children: [],
|
|
76
76
|
};
|
|
77
77
|
const parent = this.peekScope();
|
|
78
78
|
if (parent) {
|
|
@@ -85,10 +85,10 @@ class DocumentSymbolWalker {
|
|
|
85
85
|
}
|
|
86
86
|
handleNestEntry(pcx) {
|
|
87
87
|
const symbol = {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
range: this.translator.rangeFromContext(pcx),
|
|
89
|
+
name: pcx.queryName().id().text,
|
|
90
|
+
type: 'query',
|
|
91
|
+
children: [],
|
|
92
92
|
};
|
|
93
93
|
const parent = this.peekScope();
|
|
94
94
|
if (parent) {
|
|
@@ -108,10 +108,10 @@ class DocumentSymbolWalker {
|
|
|
108
108
|
}
|
|
109
109
|
enterFieldDef(pcx) {
|
|
110
110
|
const symbol = {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
111
|
+
range: this.translator.rangeFromContext(pcx),
|
|
112
|
+
name: pcx.fieldNameDef().id().text,
|
|
113
|
+
type: 'field',
|
|
114
|
+
children: [],
|
|
115
115
|
};
|
|
116
116
|
const parent = this.peekScope();
|
|
117
117
|
if (parent) {
|
|
@@ -120,10 +120,10 @@ class DocumentSymbolWalker {
|
|
|
120
120
|
}
|
|
121
121
|
enterQueryFieldRef(pcx) {
|
|
122
122
|
const symbol = {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
123
|
+
range: this.translator.rangeFromContext(pcx),
|
|
124
|
+
name: pcx.fieldPath().text,
|
|
125
|
+
type: 'field',
|
|
126
|
+
children: [],
|
|
127
127
|
};
|
|
128
128
|
const parent = this.peekScope();
|
|
129
129
|
if (parent) {
|
|
@@ -132,10 +132,10 @@ class DocumentSymbolWalker {
|
|
|
132
132
|
}
|
|
133
133
|
enterExploreRenameDef(pcx) {
|
|
134
134
|
const symbol = {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
135
|
+
range: this.translator.rangeFromContext(pcx),
|
|
136
|
+
name: pcx.fieldName()[0].text,
|
|
137
|
+
type: 'field',
|
|
138
|
+
children: [],
|
|
139
139
|
};
|
|
140
140
|
const parent = this.peekScope();
|
|
141
141
|
if (parent) {
|
|
@@ -150,10 +150,10 @@ class DocumentSymbolWalker {
|
|
|
150
150
|
}
|
|
151
151
|
handleJoinDef(pcx) {
|
|
152
152
|
const symbol = {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
153
|
+
range: this.translator.rangeFromContext(pcx),
|
|
154
|
+
name: pcx.joinNameDef().id().text,
|
|
155
|
+
type: 'join',
|
|
156
|
+
children: [],
|
|
157
157
|
};
|
|
158
158
|
const parent = this.peekScope();
|
|
159
159
|
if (parent) {
|
|
@@ -164,10 +164,10 @@ class DocumentSymbolWalker {
|
|
|
164
164
|
var _a;
|
|
165
165
|
const name = (_a = pcx.nameSQLBlock()) === null || _a === void 0 ? void 0 : _a.text;
|
|
166
166
|
const symbol = {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
167
|
+
range: this.translator.rangeFromContext(pcx),
|
|
168
|
+
name: name || 'unnamed_sql',
|
|
169
|
+
type: name === undefined ? 'unnamed_sql' : 'sql',
|
|
170
|
+
children: [],
|
|
171
171
|
};
|
|
172
172
|
this.symbols.push(symbol);
|
|
173
173
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CommonTokenStream } from
|
|
2
|
-
import { ParseTree } from
|
|
3
|
-
import { MalloyParserListener } from
|
|
1
|
+
import { CommonTokenStream } from 'antlr4ts';
|
|
2
|
+
import { ParseTree } from 'antlr4ts/tree';
|
|
3
|
+
import { MalloyParserListener } from '../lib/Malloy/MalloyParserListener';
|
|
4
4
|
declare type SimpleRange = [number | undefined, number | undefined];
|
|
5
5
|
export interface FilterRef {
|
|
6
6
|
text: string;
|
|
@@ -32,7 +32,7 @@ class ExploreQueryWalker {
|
|
|
32
32
|
this.tokens = tokens;
|
|
33
33
|
}
|
|
34
34
|
exploreQueryAtOffset(offset) {
|
|
35
|
-
return this.exploreClauseRefs.find(
|
|
35
|
+
return this.exploreClauseRefs.find(ex => {
|
|
36
36
|
if (ex.range[0] === undefined || ex.range[1] === undefined)
|
|
37
37
|
return false;
|
|
38
38
|
return ex.range[0] <= offset && ex.range[1] >= offset;
|
|
@@ -42,7 +42,7 @@ class ExploreQueryWalker {
|
|
|
42
42
|
const exploreRef = this.exploreQueryAtOffset(offset);
|
|
43
43
|
if (!exploreRef)
|
|
44
44
|
return;
|
|
45
|
-
return exploreRef.filterRefs.find(
|
|
45
|
+
return exploreRef.filterRefs.find(filterRef => {
|
|
46
46
|
if (filterRef.range[0] === undefined || filterRef.range[1] === undefined)
|
|
47
47
|
return false;
|
|
48
48
|
return filterRef.range[0] <= offset && filterRef.range[1] >= offset;
|
|
@@ -52,7 +52,7 @@ class ExploreQueryWalker {
|
|
|
52
52
|
const exploreRef = this.exploreQueryAtOffset(offset);
|
|
53
53
|
if (!exploreRef)
|
|
54
54
|
return false;
|
|
55
|
-
return !!exploreRef.filterLists.find(
|
|
55
|
+
return !!exploreRef.filterLists.find(filterList => {
|
|
56
56
|
if (filterList.range[0] === undefined ||
|
|
57
57
|
filterList.range[1] === undefined)
|
|
58
58
|
return false;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CommonTokenStream } from
|
|
2
|
-
import { ParseTree } from
|
|
3
|
-
import { DocumentRange } from
|
|
4
|
-
import { MalloyTranslation } from
|
|
1
|
+
import { CommonTokenStream } from 'antlr4ts';
|
|
2
|
+
import { ParseTree } from 'antlr4ts/tree';
|
|
3
|
+
import { DocumentRange } from '../../model/malloy_types';
|
|
4
|
+
import { MalloyTranslation } from '../parse-malloy';
|
|
5
5
|
declare type References = Record<string, DocumentRange>;
|
|
6
6
|
interface FinderFound {
|
|
7
7
|
tables?: References;
|
|
@@ -50,10 +50,10 @@ function findReferences(trans, tokens, parseTree) {
|
|
|
50
50
|
ParseTreeWalker_1.ParseTreeWalker.DEFAULT.walk(listener, parseTree);
|
|
51
51
|
let refs = {};
|
|
52
52
|
if (Object.keys(finder.needTables).length > 0) {
|
|
53
|
-
refs = {
|
|
53
|
+
refs = { tables: finder.needTables };
|
|
54
54
|
}
|
|
55
55
|
if (Object.keys(finder.needImports).length > 0) {
|
|
56
|
-
refs = { ...refs,
|
|
56
|
+
refs = { ...refs, urls: finder.needImports };
|
|
57
57
|
}
|
|
58
58
|
return Object.keys(refs).length > 0 ? refs : null;
|
|
59
59
|
}
|
|
@@ -40,16 +40,16 @@ const source = `source: foo is table('bar') {
|
|
|
40
40
|
query: bar {
|
|
41
41
|
group_by: bazz
|
|
42
42
|
}`;
|
|
43
|
-
test(
|
|
44
|
-
testHelpContext((0, test_translator_1.markSource) `${source}`, {
|
|
45
|
-
testHelpContext((0, test_translator_1.markSource) `${source}`, {
|
|
43
|
+
test('Supports model properties', () => {
|
|
44
|
+
testHelpContext((0, test_translator_1.markSource) `${source}`, { line: 0, character: 1 }, 'model_property', 'source:');
|
|
45
|
+
testHelpContext((0, test_translator_1.markSource) `${source}`, { line: 8, character: 1 }, 'model_property', 'query:');
|
|
46
46
|
});
|
|
47
|
-
test(
|
|
48
|
-
testHelpContext((0, test_translator_1.markSource) `${source}`, {
|
|
49
|
-
testHelpContext((0, test_translator_1.markSource) `${source}`, {
|
|
47
|
+
test('Supports explore properties', () => {
|
|
48
|
+
testHelpContext((0, test_translator_1.markSource) `${source}`, { line: 1, character: 3 }, 'explore_property', 'where:');
|
|
49
|
+
testHelpContext((0, test_translator_1.markSource) `${source}`, { line: 2, character: 3 }, 'explore_property', 'query:');
|
|
50
50
|
});
|
|
51
|
-
test(
|
|
52
|
-
testHelpContext((0, test_translator_1.markSource) `${source}`, {
|
|
53
|
-
testHelpContext((0, test_translator_1.markSource) `${source}`, {
|
|
51
|
+
test('Supports query properties', () => {
|
|
52
|
+
testHelpContext((0, test_translator_1.markSource) `${source}`, { line: 3, character: 5 }, 'query_property', 'group_by:');
|
|
53
|
+
testHelpContext((0, test_translator_1.markSource) `${source}`, { line: 4, character: 5 }, 'query_property', 'where:');
|
|
54
54
|
});
|
|
55
55
|
//# sourceMappingURL=document-help-context-walker.spec.js.map
|
|
@@ -34,77 +34,77 @@ class MalloyExplore extends test_translator_1.TestTranslator {
|
|
|
34
34
|
}
|
|
35
35
|
function testSymbol(source, name, type, path) {
|
|
36
36
|
const doc = new MalloyExplore(source.code);
|
|
37
|
-
let current = {
|
|
38
|
-
path.forEach(
|
|
37
|
+
let current = { children: doc.symbols };
|
|
38
|
+
path.forEach(segment => {
|
|
39
39
|
current = current.children[segment];
|
|
40
40
|
});
|
|
41
41
|
expect(doc.logger.hasErrors()).toBeFalsy();
|
|
42
42
|
expect(current).toMatchObject({
|
|
43
43
|
name,
|
|
44
|
-
|
|
45
|
-
type
|
|
44
|
+
range: source.locations[0].range,
|
|
45
|
+
type,
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
-
test(
|
|
49
|
-
testSymbol((0, test_translator_1.markSource) `explore: ${"flights is table('my.table.flights')"}`,
|
|
48
|
+
test('explore symbols are included', () => {
|
|
49
|
+
testSymbol((0, test_translator_1.markSource) `explore: ${"flights is table('my.table.flights')"}`, 'flights', 'explore', [0]);
|
|
50
50
|
});
|
|
51
|
-
test(
|
|
52
|
-
testSymbol((0, test_translator_1.markSource) `query: ${
|
|
51
|
+
test('query symbols are included', () => {
|
|
52
|
+
testSymbol((0, test_translator_1.markSource) `query: ${'flights_by_carrier is flights -> by_carrier'}`, 'flights_by_carrier', 'query', [0]);
|
|
53
53
|
});
|
|
54
|
-
test(
|
|
54
|
+
test('expression field defs are included', () => {
|
|
55
55
|
testSymbol((0, test_translator_1.markSource) `
|
|
56
56
|
explore: flights is table('my.table.flights') {
|
|
57
|
-
dimension: ${
|
|
57
|
+
dimension: ${'one is 1'}
|
|
58
58
|
}
|
|
59
|
-
`,
|
|
59
|
+
`, 'one', 'field', [0, 0]);
|
|
60
60
|
});
|
|
61
|
-
test(
|
|
61
|
+
test('renamed fields are included', () => {
|
|
62
62
|
testSymbol((0, test_translator_1.markSource) `
|
|
63
63
|
explore: flights is table('my.table.flights') {
|
|
64
|
-
rename: ${
|
|
64
|
+
rename: ${'field_two is field_2'}
|
|
65
65
|
}
|
|
66
|
-
`,
|
|
66
|
+
`, 'field_two', 'field', [0, 0]);
|
|
67
67
|
});
|
|
68
|
-
test(
|
|
68
|
+
test('name only fields are included', () => {
|
|
69
69
|
testSymbol((0, test_translator_1.markSource) `
|
|
70
70
|
explore: flights is table('my.table.flights') {
|
|
71
|
-
dimension: ${
|
|
71
|
+
dimension: ${'field_two is field_2'}
|
|
72
72
|
}
|
|
73
|
-
`,
|
|
73
|
+
`, 'field_two', 'field', [0, 0]);
|
|
74
74
|
});
|
|
75
|
-
test(
|
|
75
|
+
test('turtle fields are included', () => {
|
|
76
76
|
testSymbol((0, test_translator_1.markSource) `
|
|
77
77
|
explore: flights is table('my.table.flights') {
|
|
78
|
-
query: ${
|
|
78
|
+
query: ${'my_turtle is { group_by: a }'}
|
|
79
79
|
}
|
|
80
|
-
`,
|
|
80
|
+
`, 'my_turtle', 'query', [0, 0]);
|
|
81
81
|
});
|
|
82
|
-
test(
|
|
82
|
+
test('turtle children fields are included', () => {
|
|
83
83
|
testSymbol((0, test_translator_1.markSource) `
|
|
84
84
|
explore: flights is table('my.table.flights') {
|
|
85
|
-
query: my_turtle is { group_by: ${
|
|
85
|
+
query: my_turtle is { group_by: ${'a'} }
|
|
86
86
|
}
|
|
87
|
-
`,
|
|
87
|
+
`, 'a', 'field', [0, 0, 0]);
|
|
88
88
|
});
|
|
89
|
-
test(
|
|
89
|
+
test('turtle children turtles are included', () => {
|
|
90
90
|
testSymbol((0, test_translator_1.markSource) `
|
|
91
91
|
explore: flights is table('my.table.flights') {
|
|
92
|
-
query: my_turtle is { nest: ${
|
|
92
|
+
query: my_turtle is { nest: ${'inner_turtle is { group_by: a }'} }
|
|
93
93
|
}
|
|
94
|
-
`,
|
|
94
|
+
`, 'inner_turtle', 'query', [0, 0, 0]);
|
|
95
95
|
});
|
|
96
|
-
test(
|
|
96
|
+
test('join withs are included', () => {
|
|
97
97
|
testSymbol((0, test_translator_1.markSource) `
|
|
98
98
|
explore: flights is table('my.table.flights') {
|
|
99
|
-
join_one: ${
|
|
99
|
+
join_one: ${'a is b with c'}
|
|
100
100
|
}
|
|
101
|
-
`,
|
|
101
|
+
`, 'a', 'join', [0, 0]);
|
|
102
102
|
});
|
|
103
|
-
test(
|
|
103
|
+
test('join ons are included', () => {
|
|
104
104
|
testSymbol((0, test_translator_1.markSource) `
|
|
105
105
|
explore: flights is table('my.table.flights') {
|
|
106
|
-
join_one: ${
|
|
106
|
+
join_one: ${'a is b on c'}
|
|
107
107
|
}
|
|
108
|
-
`,
|
|
108
|
+
`, 'a', 'join', [0, 0]);
|
|
109
109
|
});
|
|
110
110
|
//# sourceMappingURL=document-symbol-walker.spec.js.map
|