@malloydata/malloy 0.0.203 → 0.0.204-dev241028160704

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.
@@ -84,6 +84,7 @@ import { SQExtendedSourceContext } from "./MalloyParser";
84
84
  import { SQTableContext } from "./MalloyParser";
85
85
  import { SQSQLContext } from "./MalloyParser";
86
86
  import { MalloyDocumentContext } from "./MalloyParser";
87
+ import { CloseCurlyContext } from "./MalloyParser";
87
88
  import { MalloyStatementContext } from "./MalloyParser";
88
89
  import { DefineSourceStatementContext } from "./MalloyParser";
89
90
  import { DefineQueryContext } from "./MalloyParser";
@@ -1246,6 +1247,16 @@ export interface MalloyParserListener extends ParseTreeListener {
1246
1247
  * @param ctx the parse tree
1247
1248
  */
1248
1249
  exitMalloyDocument?: (ctx: MalloyDocumentContext) => void;
1250
+ /**
1251
+ * Enter a parse tree produced by `MalloyParser.closeCurly`.
1252
+ * @param ctx the parse tree
1253
+ */
1254
+ enterCloseCurly?: (ctx: CloseCurlyContext) => void;
1255
+ /**
1256
+ * Exit a parse tree produced by `MalloyParser.closeCurly`.
1257
+ * @param ctx the parse tree
1258
+ */
1259
+ exitCloseCurly?: (ctx: CloseCurlyContext) => void;
1249
1260
  /**
1250
1261
  * Enter a parse tree produced by `MalloyParser.malloyStatement`.
1251
1262
  * @param ctx the parse tree
@@ -84,6 +84,7 @@ import { SQExtendedSourceContext } from "./MalloyParser";
84
84
  import { SQTableContext } from "./MalloyParser";
85
85
  import { SQSQLContext } from "./MalloyParser";
86
86
  import { MalloyDocumentContext } from "./MalloyParser";
87
+ import { CloseCurlyContext } from "./MalloyParser";
87
88
  import { MalloyStatementContext } from "./MalloyParser";
88
89
  import { DefineSourceStatementContext } from "./MalloyParser";
89
90
  import { DefineQueryContext } from "./MalloyParser";
@@ -825,6 +826,12 @@ export interface MalloyParserVisitor<Result> extends ParseTreeVisitor<Result> {
825
826
  * @return the visitor result
826
827
  */
827
828
  visitMalloyDocument?: (ctx: MalloyDocumentContext) => Result;
829
+ /**
830
+ * Visit a parse tree produced by `MalloyParser.closeCurly`.
831
+ * @param ctx the parse tree
832
+ * @return the visitor result
833
+ */
834
+ visitCloseCurly?: (ctx: CloseCurlyContext) => Result;
828
835
  /**
829
836
  * Visit a parse tree produced by `MalloyParser.malloyStatement`.
830
837
  * @param ctx the parse tree
@@ -88,6 +88,9 @@ describe('model statements', () => {
88
88
  });
89
89
  });
90
90
  describe('error handling', () => {
91
+ test('no close brace', () => {
92
+ expect('run: a -> { group_by: ai').toLog((0, test_translator_1.errorMessage)("'{' missing a '}'"));
93
+ });
91
94
  test('field and query with same name does not overflow', () => {
92
95
  expect(`
93
96
  source: flights is _db_.table('malloytest.flights') extend {
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const MALLOY_VERSION = "0.0.203";
1
+ export declare const MALLOY_VERSION = "0.0.204";
package/dist/version.js CHANGED
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MALLOY_VERSION = void 0;
4
4
  // generated with 'generate-version-file' script; do not edit manually
5
- exports.MALLOY_VERSION = '0.0.203';
5
+ exports.MALLOY_VERSION = '0.0.204';
6
6
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/malloy",
3
- "version": "0.0.203",
3
+ "version": "0.0.204-dev241028160704",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",