@malloydata/malloy 0.0.88-dev231002231014 → 0.0.88-dev231003001139

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.
Files changed (54) hide show
  1. package/dist/dialect/dialect_map.js +1 -0
  2. package/dist/dialect/functions/util.d.ts +1 -0
  3. package/dist/lang/ast/elements/define-query.d.ts +3 -3
  4. package/dist/lang/ast/elements/define-query.js +9 -4
  5. package/dist/lang/ast/elements/define-source.d.ts +3 -3
  6. package/dist/lang/ast/elements/define-source.js +12 -4
  7. package/dist/lang/ast/elements/pipeline-desc.d.ts +1 -0
  8. package/dist/lang/ast/elements/pipeline-desc.js +3 -0
  9. package/dist/lang/ast/elements/source-query-nodes.d.ts +72 -0
  10. package/dist/lang/ast/elements/source-query-nodes.js +368 -0
  11. package/dist/lang/ast/elements/source-query.d.ts +11 -0
  12. package/dist/lang/ast/{query-elements/run-query.js → elements/source-query.js} +32 -21
  13. package/dist/lang/ast/index.d.ts +2 -2
  14. package/dist/lang/ast/index.js +2 -2
  15. package/dist/lang/ast/query-elements/anonymous-query.d.ts +3 -3
  16. package/dist/lang/ast/query-elements/anonymous-query.js +15 -8
  17. package/dist/lang/ast/query-elements/existing-query.js +1 -1
  18. package/dist/lang/ast/query-items/field-references.d.ts +4 -0
  19. package/dist/lang/ast/query-items/field-references.js +11 -1
  20. package/dist/lang/ast/query-items/typecheck_utils.js +5 -5
  21. package/dist/lang/ast/query-properties/joins.d.ts +7 -5
  22. package/dist/lang/ast/query-properties/joins.js +22 -8
  23. package/dist/lang/ast/sources/sql-source.js +5 -0
  24. package/dist/lang/ast/sql-elements/sql-string.d.ts +2 -2
  25. package/dist/lang/ast/sql-elements/sql-string.js +19 -9
  26. package/dist/lang/ast/types/malloy-element.d.ts +3 -1
  27. package/dist/lang/ast/types/malloy-element.js +16 -5
  28. package/dist/lang/lib/Malloy/MalloyParser.d.ts +179 -184
  29. package/dist/lang/lib/Malloy/MalloyParser.js +3141 -2928
  30. package/dist/lang/lib/Malloy/MalloyParserListener.d.ts +147 -199
  31. package/dist/lang/lib/Malloy/MalloyParserVisitor.d.ts +88 -120
  32. package/dist/lang/malloy-to-ast.d.ts +16 -15
  33. package/dist/lang/malloy-to-ast.js +147 -141
  34. package/dist/lang/parse-tree-walkers/document-symbol-walker.js +1 -1
  35. package/dist/lang/parse-utils.js +2 -2
  36. package/dist/lang/test/annotation.spec.js +35 -46
  37. package/dist/lang/test/document-symbol-walker.spec.js +2 -2
  38. package/dist/lang/test/expressions.spec.js +16 -16
  39. package/dist/lang/test/imports.spec.js +10 -8
  40. package/dist/lang/test/literals.spec.js +4 -4
  41. package/dist/lang/test/locations.spec.js +82 -80
  42. package/dist/lang/test/parse-expects.js +5 -1
  43. package/dist/lang/test/parse.spec.js +173 -117
  44. package/dist/lang/test/query.spec.js +199 -203
  45. package/dist/lang/test/source.spec.js +54 -45
  46. package/dist/lang/test/sql-block.spec.js +19 -12
  47. package/dist/lang/test/test-translator.js +8 -5
  48. package/dist/malloy.js +2 -2
  49. package/dist/model/malloy_query.js +3 -0
  50. package/dist/model/malloy_types.d.ts +1 -0
  51. package/package.json +1 -2
  52. package/dist/lang/ast/query-elements/run-query.d.ts +0 -13
  53. package/dist/lang/ast/sources/named-source-or-query.d.ts +0 -10
  54. package/dist/lang/ast/sources/named-source-or-query.js +0 -71
@@ -17,8 +17,6 @@ import { ExprRegexContext } from "./MalloyParser";
17
17
  import { ExprNowContext } from "./MalloyParser";
18
18
  import { TableFunctionContext } from "./MalloyParser";
19
19
  import { TableMethodContext } from "./MalloyParser";
20
- import { BareExtendedSource_stubContext } from "./MalloyParser";
21
- import { ExtendedQueryContext } from "./MalloyParser";
22
20
  import { NestExistingContext } from "./MalloyParser";
23
21
  import { NestDefContext } from "./MalloyParser";
24
22
  import { ExprFieldPathContext } from "./MalloyParser";
@@ -49,10 +47,6 @@ import { ExprAggFuncContext } from "./MalloyParser";
49
47
  import { ExprFuncContext } from "./MalloyParser";
50
48
  import { ExprPickContext } from "./MalloyParser";
51
49
  import { ExprUngroupContext } from "./MalloyParser";
52
- import { QueryByNameContext } from "./MalloyParser";
53
- import { QueryByTurtleNameContext } from "./MalloyParser";
54
- import { NormalQueryContext } from "./MalloyParser";
55
- import { QueryFromSQLSourceContext } from "./MalloyParser";
56
50
  import { DefJoinOneContext } from "./MalloyParser";
57
51
  import { DefJoinManyContext } from "./MalloyParser";
58
52
  import { DefJoinCrossContext } from "./MalloyParser";
@@ -70,15 +64,17 @@ import { DefExploreAnnotationContext } from "./MalloyParser";
70
64
  import { DefIgnoreModel_stubContext } from "./MalloyParser";
71
65
  import { FilterByShortcutContext } from "./MalloyParser";
72
66
  import { FilterByWhereContext } from "./MalloyParser";
73
- import { QueryFromSourceContext } from "./MalloyParser";
74
- import { RefinedQueryContext } from "./MalloyParser";
75
- import { SourceFromNamedModelEntryContext } from "./MalloyParser";
76
- import { TableSourceContext } from "./MalloyParser";
77
- import { QuerySourceContext } from "./MalloyParser";
78
- import { SQLSourceNameContext } from "./MalloyParser";
79
- import { SQLSource_stubContext } from "./MalloyParser";
80
67
  import { JoinWithContext } from "./MalloyParser";
81
68
  import { JoinOnContext } from "./MalloyParser";
69
+ import { SQIDContext } from "./MalloyParser";
70
+ import { SQArrowContext } from "./MalloyParser";
71
+ import { SQAmbiguousContext } from "./MalloyParser";
72
+ import { SQExtendedSourceContext } from "./MalloyParser";
73
+ import { SQRefinedQueryContext } from "./MalloyParser";
74
+ import { SQFromContext } from "./MalloyParser";
75
+ import { SQTableContext } from "./MalloyParser";
76
+ import { SQLegacySQLBlockContext } from "./MalloyParser";
77
+ import { SQSQLContext } from "./MalloyParser";
82
78
  import { MalloyDocumentContext } from "./MalloyParser";
83
79
  import { MalloyStatementContext } from "./MalloyParser";
84
80
  import { DefineSourceStatementContext } from "./MalloyParser";
@@ -104,11 +100,6 @@ import { TopLevelQueryDefContext } from "./MalloyParser";
104
100
  import { RefineOperatorContext } from "./MalloyParser";
105
101
  import { QueryRefinementContext } from "./MalloyParser";
106
102
  import { SourceExtensionContext } from "./MalloyParser";
107
- import { QueryContext } from "./MalloyParser";
108
- import { UnrefinableQueryContext } from "./MalloyParser";
109
- import { RefinableQueryContext } from "./MalloyParser";
110
- import { UnextendableSourceContext } from "./MalloyParser";
111
- import { ExtendableSourceContext } from "./MalloyParser";
112
103
  import { SqlSourceContext } from "./MalloyParser";
113
104
  import { PipelineFromNameContext } from "./MalloyParser";
114
105
  import { FirstSegmentContext } from "./MalloyParser";
@@ -121,7 +112,7 @@ import { ExploreQueryNameContext } from "./MalloyParser";
121
112
  import { QueryNameContext } from "./MalloyParser";
122
113
  import { SourcePropertyListContext } from "./MalloyParser";
123
114
  import { SourceDefinitionContext } from "./MalloyParser";
124
- import { ExploreContext } from "./MalloyParser";
115
+ import { SqExploreContext } from "./MalloyParser";
125
116
  import { SourceNameDefContext } from "./MalloyParser";
126
117
  import { SourceIDContext } from "./MalloyParser";
127
118
  import { ExplorePropertiesContext } from "./MalloyParser";
@@ -137,6 +128,11 @@ import { JoinNameDefContext } from "./MalloyParser";
137
128
  import { DeclareStatementContext } from "./MalloyParser";
138
129
  import { JoinStatementContext } from "./MalloyParser";
139
130
  import { QueryExtendContext } from "./MalloyParser";
131
+ import { AmbiguousModificationContext } from "./MalloyParser";
132
+ import { ModEitherContext } from "./MalloyParser";
133
+ import { SqExprContext } from "./MalloyParser";
134
+ import { LeadSegContext } from "./MalloyParser";
135
+ import { QSegContext } from "./MalloyParser";
140
136
  import { QueryExtendStatementContext } from "./MalloyParser";
141
137
  import { QueryExtendStatementListContext } from "./MalloyParser";
142
138
  import { JoinListContext } from "./MalloyParser";
@@ -342,20 +338,6 @@ export interface MalloyParserVisitor<Result> extends ParseTreeVisitor<Result> {
342
338
  * @return the visitor result
343
339
  */
344
340
  visitTableMethod?: (ctx: TableMethodContext) => Result;
345
- /**
346
- * Visit a parse tree produced by the `BareExtendedSource_stub`
347
- * labeled alternative in `MalloyParser.explore`.
348
- * @param ctx the parse tree
349
- * @return the visitor result
350
- */
351
- visitBareExtendedSource_stub?: (ctx: BareExtendedSource_stubContext) => Result;
352
- /**
353
- * Visit a parse tree produced by the `ExtendedQuery`
354
- * labeled alternative in `MalloyParser.explore`.
355
- * @param ctx the parse tree
356
- * @return the visitor result
357
- */
358
- visitExtendedQuery?: (ctx: ExtendedQueryContext) => Result;
359
341
  /**
360
342
  * Visit a parse tree produced by the `nestExisting`
361
343
  * labeled alternative in `MalloyParser.nestEntry`.
@@ -566,34 +548,6 @@ export interface MalloyParserVisitor<Result> extends ParseTreeVisitor<Result> {
566
548
  * @return the visitor result
567
549
  */
568
550
  visitExprUngroup?: (ctx: ExprUngroupContext) => Result;
569
- /**
570
- * Visit a parse tree produced by the `QueryByName`
571
- * labeled alternative in `MalloyParser.refinableQuery`.
572
- * @param ctx the parse tree
573
- * @return the visitor result
574
- */
575
- visitQueryByName?: (ctx: QueryByNameContext) => Result;
576
- /**
577
- * Visit a parse tree produced by the `QueryByTurtleName`
578
- * labeled alternative in `MalloyParser.refinableQuery`.
579
- * @param ctx the parse tree
580
- * @return the visitor result
581
- */
582
- visitQueryByTurtleName?: (ctx: QueryByTurtleNameContext) => Result;
583
- /**
584
- * Visit a parse tree produced by the `NormalQuery`
585
- * labeled alternative in `MalloyParser.query`.
586
- * @param ctx the parse tree
587
- * @return the visitor result
588
- */
589
- visitNormalQuery?: (ctx: NormalQueryContext) => Result;
590
- /**
591
- * Visit a parse tree produced by the `QueryFromSQLSource`
592
- * labeled alternative in `MalloyParser.query`.
593
- * @param ctx the parse tree
594
- * @return the visitor result
595
- */
596
- visitQueryFromSQLSource?: (ctx: QueryFromSQLSourceContext) => Result;
597
551
  /**
598
552
  * Visit a parse tree produced by the `defJoinOne`
599
553
  * labeled alternative in `MalloyParser.joinStatement`.
@@ -714,68 +668,82 @@ export interface MalloyParserVisitor<Result> extends ParseTreeVisitor<Result> {
714
668
  */
715
669
  visitFilterByWhere?: (ctx: FilterByWhereContext) => Result;
716
670
  /**
717
- * Visit a parse tree produced by the `QueryFromSource`
718
- * labeled alternative in `MalloyParser.unrefinableQuery`.
671
+ * Visit a parse tree produced by the `joinWith`
672
+ * labeled alternative in `MalloyParser.joinDef`.
719
673
  * @param ctx the parse tree
720
674
  * @return the visitor result
721
675
  */
722
- visitQueryFromSource?: (ctx: QueryFromSourceContext) => Result;
676
+ visitJoinWith?: (ctx: JoinWithContext) => Result;
723
677
  /**
724
- * Visit a parse tree produced by the `RefinedQuery`
725
- * labeled alternative in `MalloyParser.unrefinableQuery`.
678
+ * Visit a parse tree produced by the `joinOn`
679
+ * labeled alternative in `MalloyParser.joinDef`.
726
680
  * @param ctx the parse tree
727
681
  * @return the visitor result
728
682
  */
729
- visitRefinedQuery?: (ctx: RefinedQueryContext) => Result;
683
+ visitJoinOn?: (ctx: JoinOnContext) => Result;
730
684
  /**
731
- * Visit a parse tree produced by the `SourceFromNamedModelEntry`
732
- * labeled alternative in `MalloyParser.extendableSource`.
685
+ * Visit a parse tree produced by the `SQID`
686
+ * labeled alternative in `MalloyParser.sqExpr`.
733
687
  * @param ctx the parse tree
734
688
  * @return the visitor result
735
689
  */
736
- visitSourceFromNamedModelEntry?: (ctx: SourceFromNamedModelEntryContext) => Result;
690
+ visitSQID?: (ctx: SQIDContext) => Result;
737
691
  /**
738
- * Visit a parse tree produced by the `TableSource`
739
- * labeled alternative in `MalloyParser.extendableSource`.
692
+ * Visit a parse tree produced by the `SQArrow`
693
+ * labeled alternative in `MalloyParser.sqExpr`.
740
694
  * @param ctx the parse tree
741
695
  * @return the visitor result
742
696
  */
743
- visitTableSource?: (ctx: TableSourceContext) => Result;
697
+ visitSQArrow?: (ctx: SQArrowContext) => Result;
744
698
  /**
745
- * Visit a parse tree produced by the `QuerySource`
746
- * labeled alternative in `MalloyParser.extendableSource`.
699
+ * Visit a parse tree produced by the `SQAmbiguous`
700
+ * labeled alternative in `MalloyParser.sqExpr`.
747
701
  * @param ctx the parse tree
748
702
  * @return the visitor result
749
703
  */
750
- visitQuerySource?: (ctx: QuerySourceContext) => Result;
704
+ visitSQAmbiguous?: (ctx: SQAmbiguousContext) => Result;
751
705
  /**
752
- * Visit a parse tree produced by the `SQLSourceName`
753
- * labeled alternative in `MalloyParser.extendableSource`.
706
+ * Visit a parse tree produced by the `SQExtendedSource`
707
+ * labeled alternative in `MalloyParser.sqExpr`.
754
708
  * @param ctx the parse tree
755
709
  * @return the visitor result
756
710
  */
757
- visitSQLSourceName?: (ctx: SQLSourceNameContext) => Result;
711
+ visitSQExtendedSource?: (ctx: SQExtendedSourceContext) => Result;
758
712
  /**
759
- * Visit a parse tree produced by the `SQLSource_stub`
760
- * labeled alternative in `MalloyParser.extendableSource`.
713
+ * Visit a parse tree produced by the `SQRefinedQuery`
714
+ * labeled alternative in `MalloyParser.sqExpr`.
761
715
  * @param ctx the parse tree
762
716
  * @return the visitor result
763
717
  */
764
- visitSQLSource_stub?: (ctx: SQLSource_stubContext) => Result;
718
+ visitSQRefinedQuery?: (ctx: SQRefinedQueryContext) => Result;
765
719
  /**
766
- * Visit a parse tree produced by the `joinWith`
767
- * labeled alternative in `MalloyParser.joinDef`.
720
+ * Visit a parse tree produced by the `SQFrom`
721
+ * labeled alternative in `MalloyParser.sqExpr`.
768
722
  * @param ctx the parse tree
769
723
  * @return the visitor result
770
724
  */
771
- visitJoinWith?: (ctx: JoinWithContext) => Result;
725
+ visitSQFrom?: (ctx: SQFromContext) => Result;
772
726
  /**
773
- * Visit a parse tree produced by the `joinOn`
774
- * labeled alternative in `MalloyParser.joinDef`.
727
+ * Visit a parse tree produced by the `SQTable`
728
+ * labeled alternative in `MalloyParser.sqExpr`.
775
729
  * @param ctx the parse tree
776
730
  * @return the visitor result
777
731
  */
778
- visitJoinOn?: (ctx: JoinOnContext) => Result;
732
+ visitSQTable?: (ctx: SQTableContext) => Result;
733
+ /**
734
+ * Visit a parse tree produced by the `SQLegacySQLBlock`
735
+ * labeled alternative in `MalloyParser.sqExpr`.
736
+ * @param ctx the parse tree
737
+ * @return the visitor result
738
+ */
739
+ visitSQLegacySQLBlock?: (ctx: SQLegacySQLBlockContext) => Result;
740
+ /**
741
+ * Visit a parse tree produced by the `SQSQL`
742
+ * labeled alternative in `MalloyParser.sqExpr`.
743
+ * @param ctx the parse tree
744
+ * @return the visitor result
745
+ */
746
+ visitSQSQL?: (ctx: SQSQLContext) => Result;
779
747
  /**
780
748
  * Visit a parse tree produced by `MalloyParser.malloyDocument`.
781
749
  * @param ctx the parse tree
@@ -926,36 +894,6 @@ export interface MalloyParserVisitor<Result> extends ParseTreeVisitor<Result> {
926
894
  * @return the visitor result
927
895
  */
928
896
  visitSourceExtension?: (ctx: SourceExtensionContext) => Result;
929
- /**
930
- * Visit a parse tree produced by `MalloyParser.query`.
931
- * @param ctx the parse tree
932
- * @return the visitor result
933
- */
934
- visitQuery?: (ctx: QueryContext) => Result;
935
- /**
936
- * Visit a parse tree produced by `MalloyParser.unrefinableQuery`.
937
- * @param ctx the parse tree
938
- * @return the visitor result
939
- */
940
- visitUnrefinableQuery?: (ctx: UnrefinableQueryContext) => Result;
941
- /**
942
- * Visit a parse tree produced by `MalloyParser.refinableQuery`.
943
- * @param ctx the parse tree
944
- * @return the visitor result
945
- */
946
- visitRefinableQuery?: (ctx: RefinableQueryContext) => Result;
947
- /**
948
- * Visit a parse tree produced by `MalloyParser.unextendableSource`.
949
- * @param ctx the parse tree
950
- * @return the visitor result
951
- */
952
- visitUnextendableSource?: (ctx: UnextendableSourceContext) => Result;
953
- /**
954
- * Visit a parse tree produced by `MalloyParser.extendableSource`.
955
- * @param ctx the parse tree
956
- * @return the visitor result
957
- */
958
- visitExtendableSource?: (ctx: ExtendableSourceContext) => Result;
959
897
  /**
960
898
  * Visit a parse tree produced by `MalloyParser.sqlSource`.
961
899
  * @param ctx the parse tree
@@ -1029,11 +967,11 @@ export interface MalloyParserVisitor<Result> extends ParseTreeVisitor<Result> {
1029
967
  */
1030
968
  visitSourceDefinition?: (ctx: SourceDefinitionContext) => Result;
1031
969
  /**
1032
- * Visit a parse tree produced by `MalloyParser.explore`.
970
+ * Visit a parse tree produced by `MalloyParser.sqExplore`.
1033
971
  * @param ctx the parse tree
1034
972
  * @return the visitor result
1035
973
  */
1036
- visitExplore?: (ctx: ExploreContext) => Result;
974
+ visitSqExplore?: (ctx: SqExploreContext) => Result;
1037
975
  /**
1038
976
  * Visit a parse tree produced by `MalloyParser.sourceNameDef`.
1039
977
  * @param ctx the parse tree
@@ -1124,6 +1062,36 @@ export interface MalloyParserVisitor<Result> extends ParseTreeVisitor<Result> {
1124
1062
  * @return the visitor result
1125
1063
  */
1126
1064
  visitQueryExtend?: (ctx: QueryExtendContext) => Result;
1065
+ /**
1066
+ * Visit a parse tree produced by `MalloyParser.ambiguousModification`.
1067
+ * @param ctx the parse tree
1068
+ * @return the visitor result
1069
+ */
1070
+ visitAmbiguousModification?: (ctx: AmbiguousModificationContext) => Result;
1071
+ /**
1072
+ * Visit a parse tree produced by `MalloyParser.modEither`.
1073
+ * @param ctx the parse tree
1074
+ * @return the visitor result
1075
+ */
1076
+ visitModEither?: (ctx: ModEitherContext) => Result;
1077
+ /**
1078
+ * Visit a parse tree produced by `MalloyParser.sqExpr`.
1079
+ * @param ctx the parse tree
1080
+ * @return the visitor result
1081
+ */
1082
+ visitSqExpr?: (ctx: SqExprContext) => Result;
1083
+ /**
1084
+ * Visit a parse tree produced by `MalloyParser.leadSeg`.
1085
+ * @param ctx the parse tree
1086
+ * @return the visitor result
1087
+ */
1088
+ visitLeadSeg?: (ctx: LeadSegContext) => Result;
1089
+ /**
1090
+ * Visit a parse tree produced by `MalloyParser.qSeg`.
1091
+ * @param ctx the parse tree
1092
+ * @return the visitor result
1093
+ */
1094
+ visitQSeg?: (ctx: QSegContext) => Result;
1127
1095
  /**
1128
1096
  * Visit a parse tree produced by `MalloyParser.queryExtendStatement`.
1129
1097
  * @param ctx the parse tree
@@ -11,6 +11,9 @@ import { HasString, HasID } from './parse-utils';
11
11
  import { CastType } from '../model';
12
12
  import { DocumentLocation, Note } from '../model/malloy_types';
13
13
  import { Tag } from '../tags';
14
+ declare class ErrorNode extends ast.SourceQueryNode {
15
+ elementType: string;
16
+ }
14
17
  declare class IgnoredElement extends ast.MalloyElement {
15
18
  elementType: string;
16
19
  malloySrc: string;
@@ -60,7 +63,6 @@ export declare class MalloyToAST extends AbstractParseTreeVisitor<ast.MalloyElem
60
63
  protected getSegments(segments: parse.PipeElementContext[]): ast.QOPDesc[];
61
64
  protected getFilterShortcut(cx: parse.FilterShortcutContext): ast.Filter;
62
65
  protected getPlainString(cx: HasString): string;
63
- protected getSource(pcx: parse.ExploreContext): ast.Source;
64
66
  protected makeSqlString(pcx: parse.SqlStringContext, sqlStr: ast.SQLString): void;
65
67
  /**
66
68
  * Parse a time string into an AST TimeLiteral, if the string fails
@@ -77,29 +79,19 @@ export declare class MalloyToAST extends AbstractParseTreeVisitor<ast.MalloyElem
77
79
  visitMalloyDocument(pcx: parse.MalloyDocumentContext): ast.Document;
78
80
  visitDefineSourceStatement(pcx: parse.DefineSourceStatementContext): ast.DefineSourceList;
79
81
  visitSourceDefinition(pcx: parse.SourceDefinitionContext): ast.DefineSource;
80
- visitQueryFromSQLSource(pcx: parse.QueryFromSQLSourceContext): ast.QueryElement;
81
- visitQueryFromSource(pcx: parse.QueryFromSourceContext): ast.QueryElement;
82
82
  protected getQueryRefinements(pcx: parse.QueryRefinementContext): ast.QOPDesc;
83
- visitRefinedQuery(pcx: parse.RefinedQueryContext): ast.QueryElement;
84
- visitQueryByTurtleName(pcx: parse.QueryByTurtleNameContext): ast.QueryElement;
85
- visitQueryByName(pcx: parse.QueryByNameContext): ast.QueryElement;
86
83
  protected getSourceExtensions(pcx: parse.SourceExtensionContext): ast.SourceDesc;
87
- visitUnextendableSource(pcx: parse.UnextendableSourceContext): ast.Source;
88
- visitNormalQuery(pcx: parse.NormalQueryContext): ast.QueryElement;
89
- visitExtendedQuery(pcx: parse.ExtendedQueryContext): ast.RefinedSource;
90
84
  visitExploreProperties(pcx: parse.ExplorePropertiesContext): ast.SourceDesc;
91
85
  visitTableFunction(pcx: parse.TableFunctionContext): ast.TableSource;
92
86
  visitTableMethod(pcx: parse.TableMethodContext): ast.TableSource;
93
- visitTableSource(pcx: parse.TableSourceContext): ast.TableSource;
94
- visitSQLSourceName(pcx: parse.SQLSourceNameContext): ast.FromSQLSource;
87
+ protected getLegacySQLSouce(pcx: parse.SqlExploreNameRefContext): ast.FromSQLSource;
95
88
  visitSqlSource(pcx: parse.SqlSourceContext): ast.SQLSource;
96
- visitQuerySource(pcx: parse.QuerySourceContext): ast.Source;
97
89
  visitDefJoinMany(pcx: parse.DefJoinManyContext): ast.Joins;
98
90
  visitDefJoinOne(pcx: parse.DefJoinOneContext): ast.Joins;
99
91
  visitDefJoinCross(pcx: parse.DefJoinCrossContext): ast.Joins;
100
92
  protected getJoinList(pcx: parse.JoinListContext): ast.MalloyElement[];
101
93
  protected getJoinSource(name: ast.ModelEntryReference, ecx: parse.IsExploreContext | undefined): {
102
- joinFrom: ast.Source;
94
+ joinFrom: ast.SourceQueryNode;
103
95
  notes: Note[];
104
96
  };
105
97
  visitQueryJoinStatement(pcx: parse.QueryJoinStatementContext): ast.MalloyElement;
@@ -147,7 +139,7 @@ export declare class MalloyToAST extends AbstractParseTreeVisitor<ast.MalloyElem
147
139
  visitTopLevelQueryDefs(pcx: parse.TopLevelQueryDefsContext): ast.DefineQueryList;
148
140
  visitTopLevelQueryDef(pcx: parse.TopLevelQueryDefContext): ast.DefineQuery;
149
141
  visitAnonymousQuery(pcx: parse.AnonymousQueryContext): ast.AnonymousQuery;
150
- visitRunStatement(pcx: parse.RunStatementContext): ast.RunQuery;
142
+ visitRunStatement(pcx: parse.RunStatementContext): ast.AnonymousQuery;
151
143
  visitNestStatement(pcx: parse.NestStatementContext): ast.Nests;
152
144
  visitNestedQueryList(pcx: parse.NestedQueryListContext): ast.Nests;
153
145
  visitNestExisting(pcx: parse.NestExistingContext): ast.NestedQuery;
@@ -193,7 +185,6 @@ export declare class MalloyToAST extends AbstractParseTreeVisitor<ast.MalloyElem
193
185
  visitExprFunc(pcx: parse.ExprFuncContext): ast.ExpressionDef;
194
186
  visitExprDuration(pcx: parse.ExprDurationContext): ast.ExprDuration;
195
187
  visitPickStatement(pcx: parse.PickStatementContext): ast.Pick;
196
- visitSourceFromNamedModelEntry(pcx: parse.SourceFromNamedModelEntryContext): ast.Source;
197
188
  visitExprFilter(pcx: parse.ExprFilterContext): ast.ExprFilter;
198
189
  visitLiteralTimestamp(pcx: parse.LiteralTimestampContext): ast.ExpressionDef;
199
190
  visitLiteralHour(pcx: parse.LiteralHourContext): ast.ExpressionDef;
@@ -210,5 +201,15 @@ export declare class MalloyToAST extends AbstractParseTreeVisitor<ast.MalloyElem
210
201
  visitIgnoredObjectAnnotations(pcx: parse.IgnoredObjectAnnotationsContext): IgnoredElement;
211
202
  visitIgnoredModelAnnotations(pcx: parse.IgnoredModelAnnotationsContext): IgnoredElement;
212
203
  visitDefExploreAnnotation(pcx: parse.DefExploreAnnotationContext): ast.ObjectAnnotation;
204
+ visitSQAmbiguous(pcx: parse.SQAmbiguousContext): ast.SQLegacyModify;
205
+ visitSQID(pcx: parse.SQIDContext): ast.SQReference;
206
+ protected getSqExpr(cx: parse.SqExprContext): ast.SourceQueryNode;
207
+ visitSQExtendedSource(pcx: parse.SQExtendedSourceContext): ast.SQExtendedSource;
208
+ visitSQArrow(pcx: parse.SQArrowContext): ast.SQAppendView;
209
+ visitSQRefinedQuery(pcx: parse.SQRefinedQueryContext): ast.SQRefinedQuery;
210
+ visitSQFrom(pcx: parse.SQFromContext): ast.SQFrom;
211
+ visitSQTable(pcx: parse.SQTableContext): ast.SQSourceWrapper | ErrorNode;
212
+ visitSQLegacySQLBlock(pcx: parse.SQLegacySQLBlockContext): ast.SQSourceWrapper;
213
+ visitSQSQL(pcx: parse.SQSQLContext): ast.SQSourceWrapper;
213
214
  }
214
215
  export {};