@malloydata/malloy 0.0.316 → 0.0.317
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.
|
@@ -59,6 +59,7 @@ exports.ExprCoalesce = void 0;
|
|
|
59
59
|
const model_1 = require("../../../model");
|
|
60
60
|
const TDU = __importStar(require("../typedesc-utils"));
|
|
61
61
|
const expression_def_1 = require("../types/expression-def");
|
|
62
|
+
const composite_source_utils_1 = require("../../composite-source-utils");
|
|
62
63
|
class ExprCoalesce extends expression_def_1.ExpressionDef {
|
|
63
64
|
constructor(expr, altExpr) {
|
|
64
65
|
super({ expr, altExpr });
|
|
@@ -68,6 +69,7 @@ class ExprCoalesce extends expression_def_1.ExpressionDef {
|
|
|
68
69
|
this.legalChildTypes = TDU.anyAtomicT;
|
|
69
70
|
}
|
|
70
71
|
getExpression(fs) {
|
|
72
|
+
var _a;
|
|
71
73
|
const maybeNull = this.expr.getExpression(fs);
|
|
72
74
|
const whenNull = this.altExpr.getExpression(fs);
|
|
73
75
|
if (maybeNull.type === 'null') {
|
|
@@ -93,6 +95,7 @@ class ExprCoalesce extends expression_def_1.ExpressionDef {
|
|
|
93
95
|
kids: { left: maybeNull.value, right: whenNull.value },
|
|
94
96
|
},
|
|
95
97
|
evalSpace: (0, model_1.mergeEvalSpaces)(maybeNull.evalSpace, whenNull.evalSpace),
|
|
98
|
+
fieldUsage: (_a = (0, composite_source_utils_1.mergeFieldUsage)(maybeNull.fieldUsage, whenNull.fieldUsage)) !== null && _a !== void 0 ? _a : [],
|
|
96
99
|
};
|
|
97
100
|
}
|
|
98
101
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const MALLOY_VERSION = "0.0.
|
|
1
|
+
export declare const MALLOY_VERSION = "0.0.317";
|
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.
|
|
5
|
+
exports.MALLOY_VERSION = '0.0.317';
|
|
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.
|
|
3
|
+
"version": "0.0.317",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dist/index.js",
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"generate-version-file": "VERSION=$(npm pkg get version --workspaces=false | tr -d \\\")\necho \"// generated with 'generate-version-file' script; do not edit manually\\nexport const MALLOY_VERSION = '$VERSION';\" > src/version.ts"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@malloydata/malloy-filter": "0.0.
|
|
45
|
-
"@malloydata/malloy-interfaces": "0.0.
|
|
46
|
-
"@malloydata/malloy-tag": "0.0.
|
|
44
|
+
"@malloydata/malloy-filter": "0.0.317",
|
|
45
|
+
"@malloydata/malloy-interfaces": "0.0.317",
|
|
46
|
+
"@malloydata/malloy-tag": "0.0.317",
|
|
47
47
|
"antlr4ts": "^0.5.0-alpha.4",
|
|
48
48
|
"assert": "^2.0.0",
|
|
49
49
|
"jaro-winkler": "^0.2.8",
|