@malloydata/malloy 0.0.56-dev230710210339 → 0.0.56-dev230710210430
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.
|
@@ -278,11 +278,7 @@ class MalloyToAST extends AbstractParseTreeVisitor_1.AbstractParseTreeVisitor {
|
|
|
278
278
|
visitQueryByName(pcx) {
|
|
279
279
|
const query = new ast.ExistingQuery();
|
|
280
280
|
query.head = this.getModelEntryName(pcx);
|
|
281
|
-
|
|
282
|
-
if (this.m4WarningsEnabled() && pcx.ARROW()) {
|
|
283
|
-
this.astError(res, 'Leading arrow (`->`) when referencing a query is deprecated; remove the arrow', 'warn');
|
|
284
|
-
}
|
|
285
|
-
return res;
|
|
281
|
+
return this.astAt(query, pcx);
|
|
286
282
|
}
|
|
287
283
|
getSourceExtensions(pcx) {
|
|
288
284
|
const extensions = pcx === null || pcx === void 0 ? void 0 : pcx.exploreProperties();
|
|
@@ -3166,28 +3166,4 @@ describe('extend and refine', () => {
|
|
|
3166
3166
|
});
|
|
3167
3167
|
});
|
|
3168
3168
|
});
|
|
3169
|
-
describe('miscellaneous m4 warnings', () => {
|
|
3170
|
-
test('query leading arrow', () => {
|
|
3171
|
-
expect(`
|
|
3172
|
-
##! m4warnings
|
|
3173
|
-
query: x is a -> { project: * }
|
|
3174
|
-
run: x
|
|
3175
|
-
`).toTranslate();
|
|
3176
|
-
expect(`
|
|
3177
|
-
##! m4warnings
|
|
3178
|
-
query: x is a -> { project: * }
|
|
3179
|
-
run: x -> { project: * }
|
|
3180
|
-
`).toTranslate();
|
|
3181
|
-
expect(`
|
|
3182
|
-
##! m4warnings
|
|
3183
|
-
query: x is a -> { project: * }
|
|
3184
|
-
run: -> x
|
|
3185
|
-
`).toTranslateWithWarnings('Leading arrow (`->`) when referencing a query is deprecated; remove the arrow');
|
|
3186
|
-
expect(`
|
|
3187
|
-
##! m4warnings
|
|
3188
|
-
query: x is a -> { project: * }
|
|
3189
|
-
run: -> x -> { project: * }
|
|
3190
|
-
`).toTranslateWithWarnings('Leading arrow (`->`) when referencing a query is deprecated; remove the arrow');
|
|
3191
|
-
});
|
|
3192
|
-
});
|
|
3193
3169
|
//# sourceMappingURL=parse.spec.js.map
|