@malloydata/malloy 0.0.27-dev230310001113 → 0.0.27
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.
|
@@ -345,11 +345,15 @@ class Document extends MalloyElement {
|
|
|
345
345
|
this.queryList = [];
|
|
346
346
|
this.sqlBlocks = [];
|
|
347
347
|
if (extendingModelDef) {
|
|
348
|
-
for (const
|
|
349
|
-
const
|
|
350
|
-
if (
|
|
351
|
-
const exported = extendingModelDef.exports.includes(
|
|
352
|
-
|
|
348
|
+
for (const [nm, orig] of Object.entries(extendingModelDef.contents)) {
|
|
349
|
+
const entry = (0, cloneDeep_1.default)(orig);
|
|
350
|
+
if (entry.type === 'struct' || entry.type === 'query') {
|
|
351
|
+
const exported = extendingModelDef.exports.includes(nm);
|
|
352
|
+
const sqlType = entry.type === 'struct' && (0, malloy_types_1.isSQLBlock)(entry);
|
|
353
|
+
if (sqlType) {
|
|
354
|
+
this.sqlBlocks.push(entry);
|
|
355
|
+
}
|
|
356
|
+
this.setEntry(nm, { entry, exported, sqlType });
|
|
353
357
|
}
|
|
354
358
|
}
|
|
355
359
|
}
|