@malloydata/malloy 0.0.203-dev241022191525 → 0.0.203-dev241022210817
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.
|
@@ -227,6 +227,7 @@ export declare class MalloyToAST extends AbstractParseTreeVisitor<ast.MalloyElem
|
|
|
227
227
|
visitRecordRef(pcx: parse.RecordRefContext): ast.RecordElement;
|
|
228
228
|
visitRecordExpr(pcx: parse.RecordExprContext): ast.RecordElement;
|
|
229
229
|
visitExprLiteralRecord(pcx: parse.ExprLiteralRecordContext): ast.RecordLiteral;
|
|
230
|
+
visitExprArrayLiteral(pcx: parse.ExprArrayLiteralContext): ast.Unimplemented;
|
|
230
231
|
visitExprWarnLike(pcx: parse.ExprWarnLikeContext): ast.ExprCompare;
|
|
231
232
|
visitExprWarnNullCmp(pcx: parse.ExprWarnNullCmpContext): ast.ExprCompare;
|
|
232
233
|
visitExprWarnIn(pcx: parse.ExprWarnInContext): ast.ExprLegacyIn;
|
|
@@ -1350,9 +1350,14 @@ class MalloyToAST extends AbstractParseTreeVisitor_1.AbstractParseTreeVisitor {
|
|
|
1350
1350
|
return new ast.RecordElement(elementKey, elementVal);
|
|
1351
1351
|
}
|
|
1352
1352
|
visitExprLiteralRecord(pcx) {
|
|
1353
|
+
this.contextError(pcx, 'not-yet-implemented', 'Record data is not yet implemented');
|
|
1353
1354
|
const els = this.only(pcx.recordElement().map(elCx => this.astAt(this.visit(elCx), elCx)), visited => visited instanceof ast.RecordElement && visited, 'a key value pair');
|
|
1354
1355
|
return new ast.RecordLiteral(els);
|
|
1355
1356
|
}
|
|
1357
|
+
visitExprArrayLiteral(pcx) {
|
|
1358
|
+
this.contextError(pcx, 'not-yet-implemented', 'Array data is not yet implemented');
|
|
1359
|
+
return new ast.Unimplemented();
|
|
1360
|
+
}
|
|
1356
1361
|
visitExprWarnLike(pcx) {
|
|
1357
1362
|
let op = '~';
|
|
1358
1363
|
const left = pcx.fieldExpr(0);
|
package/dist/lang/parse-log.d.ts
CHANGED
|
@@ -315,6 +315,7 @@ type MessageParameterTypes = {
|
|
|
315
315
|
'sql-is-not-null': string;
|
|
316
316
|
'sql-is-null': string;
|
|
317
317
|
'illegal-record-property-type': string;
|
|
318
|
+
'not-yet-implemented': string;
|
|
318
319
|
'sql-case': string;
|
|
319
320
|
'case-then-type-does-not-match': {
|
|
320
321
|
thenType: FieldValueType;
|