@dbml/parse 8.2.2 → 8.2.4-alpha.2
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.
- package/LICENSE +0 -0
- package/dist/dbml-parse.js +15 -18
- package/dist/dbml-parse.mjs +34 -56
- package/dist/index.d.ts +0 -0
- package/dist/src/compiler/index.d.ts +0 -0
- package/dist/src/compiler/projectLayout/index.d.ts +0 -0
- package/dist/src/compiler/projectLayout/layout.d.ts +0 -0
- package/dist/src/compiler/queries/canonicalName.d.ts +0 -0
- package/dist/src/compiler/queries/container/element.d.ts +0 -0
- package/dist/src/compiler/queries/container/index.d.ts +0 -0
- package/dist/src/compiler/queries/container/scope.d.ts +0 -0
- package/dist/src/compiler/queries/container/scopeKind.d.ts +0 -0
- package/dist/src/compiler/queries/container/stack.d.ts +0 -0
- package/dist/src/compiler/queries/container/token.d.ts +0 -0
- package/dist/src/compiler/queries/files/fileDependencies.d.ts +0 -0
- package/dist/src/compiler/queries/files/reachableFiles.d.ts +0 -0
- package/dist/src/compiler/queries/files/usableMembers.d.ts +0 -0
- package/dist/src/compiler/queries/legacy/parse.d.ts +0 -0
- package/dist/src/compiler/queries/legacy/symbol.d.ts +0 -0
- package/dist/src/compiler/queries/legacy/token.d.ts +0 -0
- package/dist/src/compiler/queries/nodeAtPosition.d.ts +0 -0
- package/dist/src/compiler/queries/pipeline/bind.d.ts +0 -0
- package/dist/src/compiler/queries/pipeline/index.d.ts +0 -0
- package/dist/src/compiler/queries/pipeline/interpret.d.ts +0 -0
- package/dist/src/compiler/queries/pipeline/parse.d.ts +0 -0
- package/dist/src/compiler/queries/pipeline/validate.d.ts +0 -0
- package/dist/src/compiler/queries/resolutionIndex.d.ts +0 -0
- package/dist/src/compiler/queries/symbol/lookupMembers.d.ts +0 -0
- package/dist/src/compiler/queries/symbol/symbolAliases.d.ts +0 -0
- package/dist/src/compiler/queries/symbol/symbolUses.d.ts +0 -0
- package/dist/src/compiler/queries/transform/applyTextEdits.d.ts +0 -0
- package/dist/src/compiler/queries/transform/index.d.ts +0 -0
- package/dist/src/compiler/queries/transform/renameTable.d.ts +0 -0
- package/dist/src/compiler/queries/transform/syncDiagramView.d.ts +0 -0
- package/dist/src/compiler/queries/transform/utils.d.ts +0 -0
- package/dist/src/compiler/queries/utils.d.ts +0 -0
- package/dist/src/compiler/types.d.ts +0 -0
- package/dist/src/constants.d.ts +0 -0
- package/dist/src/core/global_modules/checks/bind.d.ts +0 -0
- package/dist/src/core/global_modules/checks/index.d.ts +0 -0
- package/dist/src/core/global_modules/checks/interpret.d.ts +0 -0
- package/dist/src/core/global_modules/diagramView/bind.d.ts +0 -0
- package/dist/src/core/global_modules/diagramView/index.d.ts +0 -0
- package/dist/src/core/global_modules/diagramView/interpret.d.ts +0 -0
- package/dist/src/core/global_modules/enum/bind.d.ts +0 -0
- package/dist/src/core/global_modules/enum/index.d.ts +0 -0
- package/dist/src/core/global_modules/enum/interpret.d.ts +0 -0
- package/dist/src/core/global_modules/index.d.ts +0 -0
- package/dist/src/core/global_modules/indexes/bind.d.ts +1 -0
- package/dist/src/core/global_modules/indexes/index.d.ts +0 -0
- package/dist/src/core/global_modules/indexes/interpret.d.ts +0 -0
- package/dist/src/core/global_modules/note/bind.d.ts +0 -0
- package/dist/src/core/global_modules/note/index.d.ts +0 -0
- package/dist/src/core/global_modules/note/interpret.d.ts +0 -0
- package/dist/src/core/global_modules/program/bind.d.ts +0 -0
- package/dist/src/core/global_modules/program/index.d.ts +0 -0
- package/dist/src/core/global_modules/program/interpret.d.ts +0 -0
- package/dist/src/core/global_modules/program/utils.d.ts +0 -0
- package/dist/src/core/global_modules/project/bind.d.ts +0 -0
- package/dist/src/core/global_modules/project/index.d.ts +0 -0
- package/dist/src/core/global_modules/project/interpret.d.ts +0 -0
- package/dist/src/core/global_modules/records/bind.d.ts +0 -0
- package/dist/src/core/global_modules/records/index.d.ts +0 -0
- package/dist/src/core/global_modules/records/interpret.d.ts +0 -0
- package/dist/src/core/global_modules/records/utils/constraints/fk.d.ts +0 -0
- package/dist/src/core/global_modules/records/utils/constraints/helper.d.ts +0 -0
- package/dist/src/core/global_modules/records/utils/constraints/index.d.ts +0 -0
- package/dist/src/core/global_modules/records/utils/constraints/pk.d.ts +0 -0
- package/dist/src/core/global_modules/records/utils/constraints/unique.d.ts +0 -0
- package/dist/src/core/global_modules/records/utils/data/index.d.ts +0 -0
- package/dist/src/core/global_modules/records/utils/data/sqlTypes.d.ts +0 -0
- package/dist/src/core/global_modules/records/utils/data/values.d.ts +0 -0
- package/dist/src/core/global_modules/records/utils/index.d.ts +0 -0
- package/dist/src/core/global_modules/ref/bind.d.ts +0 -0
- package/dist/src/core/global_modules/ref/index.d.ts +0 -0
- package/dist/src/core/global_modules/ref/interpret.d.ts +0 -0
- package/dist/src/core/global_modules/schema/index.d.ts +0 -0
- package/dist/src/core/global_modules/table/bind.d.ts +0 -0
- package/dist/src/core/global_modules/table/index.d.ts +0 -0
- package/dist/src/core/global_modules/table/interpret.d.ts +0 -0
- package/dist/src/core/global_modules/table/utils.d.ts +0 -0
- package/dist/src/core/global_modules/tableGroup/bind.d.ts +0 -0
- package/dist/src/core/global_modules/tableGroup/index.d.ts +0 -0
- package/dist/src/core/global_modules/tableGroup/interpret.d.ts +0 -0
- package/dist/src/core/global_modules/tablePartial/bind.d.ts +0 -0
- package/dist/src/core/global_modules/tablePartial/index.d.ts +0 -0
- package/dist/src/core/global_modules/tablePartial/interpret.d.ts +0 -0
- package/dist/src/core/global_modules/types.d.ts +0 -0
- package/dist/src/core/global_modules/use/index.d.ts +0 -0
- package/dist/src/core/global_modules/utils.d.ts +0 -0
- package/dist/src/core/lexer/lexer.d.ts +0 -0
- package/dist/src/core/lexer/utils.d.ts +0 -0
- package/dist/src/core/local_modules/checks/index.d.ts +0 -0
- package/dist/src/core/local_modules/checks/validate.d.ts +0 -0
- package/dist/src/core/local_modules/custom/index.d.ts +0 -0
- package/dist/src/core/local_modules/custom/validate.d.ts +0 -0
- package/dist/src/core/local_modules/diagramView/index.d.ts +0 -0
- package/dist/src/core/local_modules/diagramView/validate.d.ts +0 -0
- package/dist/src/core/local_modules/enum/index.d.ts +0 -0
- package/dist/src/core/local_modules/enum/validate.d.ts +0 -0
- package/dist/src/core/local_modules/index.d.ts +0 -0
- package/dist/src/core/local_modules/indexes/index.d.ts +0 -0
- package/dist/src/core/local_modules/indexes/validate.d.ts +0 -0
- package/dist/src/core/local_modules/note/index.d.ts +0 -0
- package/dist/src/core/local_modules/note/validate.d.ts +0 -0
- package/dist/src/core/local_modules/program/index.d.ts +0 -0
- package/dist/src/core/local_modules/program/validate.d.ts +0 -0
- package/dist/src/core/local_modules/project/index.d.ts +0 -0
- package/dist/src/core/local_modules/project/validate.d.ts +0 -0
- package/dist/src/core/local_modules/records/index.d.ts +0 -0
- package/dist/src/core/local_modules/records/validate.d.ts +0 -0
- package/dist/src/core/local_modules/ref/index.d.ts +0 -0
- package/dist/src/core/local_modules/ref/validate.d.ts +0 -0
- package/dist/src/core/local_modules/table/index.d.ts +0 -0
- package/dist/src/core/local_modules/table/validate.d.ts +0 -0
- package/dist/src/core/local_modules/tableGroup/index.d.ts +0 -0
- package/dist/src/core/local_modules/tableGroup/validate.d.ts +0 -0
- package/dist/src/core/local_modules/tablePartial/index.d.ts +0 -0
- package/dist/src/core/local_modules/tablePartial/validate.d.ts +0 -0
- package/dist/src/core/local_modules/types.d.ts +0 -0
- package/dist/src/core/local_modules/use/index.d.ts +0 -0
- package/dist/src/core/local_modules/use/validate.d.ts +0 -0
- package/dist/src/core/parser/contextStack.d.ts +0 -0
- package/dist/src/core/parser/factory.d.ts +0 -0
- package/dist/src/core/parser/parser.d.ts +0 -1
- package/dist/src/core/parser/utils.d.ts +0 -0
- package/dist/src/core/types/errors.d.ts +0 -0
- package/dist/src/core/types/filepath.d.ts +0 -0
- package/dist/src/core/types/index.d.ts +0 -0
- package/dist/src/core/types/internable.d.ts +0 -0
- package/dist/src/core/types/keywords.d.ts +0 -0
- package/dist/src/core/types/module.d.ts +0 -0
- package/dist/src/core/types/nodes.d.ts +0 -0
- package/dist/src/core/types/position.d.ts +0 -0
- package/dist/src/core/types/report.d.ts +0 -0
- package/dist/src/core/types/schemaJson.d.ts +0 -0
- package/dist/src/core/types/symbol/factory.d.ts +0 -0
- package/dist/src/core/types/symbol/index.d.ts +0 -0
- package/dist/src/core/types/symbol/metadata.d.ts +0 -0
- package/dist/src/core/types/symbol/symbols.d.ts +0 -0
- package/dist/src/core/types/tokens.d.ts +0 -0
- package/dist/src/core/utils/chars.d.ts +0 -0
- package/dist/src/core/utils/expression.d.ts +0 -0
- package/dist/src/core/utils/interpret.d.ts +0 -0
- package/dist/src/core/utils/numbers.d.ts +0 -0
- package/dist/src/core/utils/span.d.ts +0 -0
- package/dist/src/core/utils/tokens.d.ts +0 -0
- package/dist/src/core/utils/validate.d.ts +0 -0
- package/dist/src/index.d.ts +0 -0
- package/dist/src/services/definition/provider.d.ts +0 -0
- package/dist/src/services/diagnostics/provider.d.ts +0 -0
- package/dist/src/services/index.d.ts +0 -0
- package/dist/src/services/monarch.d.ts +0 -0
- package/dist/src/services/references/provider.d.ts +0 -0
- package/dist/src/services/suggestions/crossFile.d.ts +0 -0
- package/dist/src/services/suggestions/provider.d.ts +0 -0
- package/dist/src/services/suggestions/recordRowSnippet.d.ts +0 -0
- package/dist/src/services/suggestions/use.d.ts +0 -0
- package/dist/src/services/suggestions/utils/index.d.ts +0 -0
- package/dist/src/services/suggestions/utils/useMerger.d.ts +0 -0
- package/dist/src/services/types.d.ts +0 -0
- package/dist/src/services/utils.d.ts +0 -0
- package/package.json +2 -2
package/dist/dbml-parse.mjs
CHANGED
|
@@ -1249,8 +1249,8 @@ var isAbsolute = function(r) {
|
|
|
1249
1249
|
return r.path.startsWith(j);
|
|
1250
1250
|
}
|
|
1251
1251
|
toUri(r = {}) {
|
|
1252
|
-
let j = r.protocol
|
|
1253
|
-
if (j
|
|
1252
|
+
let j = r.protocol || this.protocol;
|
|
1253
|
+
if (!j) return this.path;
|
|
1254
1254
|
let M = WIN_DRIVE_RE.test(this.path) ? `${j}:///` : `${j}://`;
|
|
1255
1255
|
return new URL(M + this.path).href;
|
|
1256
1256
|
}
|
|
@@ -3169,7 +3169,10 @@ var IndexesBinder = class {
|
|
|
3169
3169
|
this.compiler = r, this.declarationNode = j;
|
|
3170
3170
|
}
|
|
3171
3171
|
bind() {
|
|
3172
|
-
return !(this.declarationNode.parent instanceof ElementDeclarationNode) || !this.declarationNode.parent.isKind(ElementKind.Table) || !(this.declarationNode.body instanceof BlockExpressionNode) ? [] : this.bindBody(this.declarationNode.body);
|
|
3172
|
+
return !(this.declarationNode.parent instanceof ElementDeclarationNode) || !this.declarationNode.parent.isKind(ElementKind.Table) && !this.declarationNode.parent.isKind(ElementKind.TablePartial) || !(this.declarationNode.body instanceof BlockExpressionNode) ? [] : this.bindBody(this.declarationNode.body);
|
|
3173
|
+
}
|
|
3174
|
+
get ownerContainerKind() {
|
|
3175
|
+
return this.declarationNode.parent.isKind(ElementKind.TablePartial) ? "TablePartial" : "Table";
|
|
3173
3176
|
}
|
|
3174
3177
|
bindBody(r) {
|
|
3175
3178
|
if (!r) return [];
|
|
@@ -3181,11 +3184,11 @@ var IndexesBinder = class {
|
|
|
3181
3184
|
return r.flatMap((r) => {
|
|
3182
3185
|
if (!r.callee) return [];
|
|
3183
3186
|
let M = destructureComplexVariable(this.declarationNode.parent.name)?.join(".") ?? "<unnamed>";
|
|
3184
|
-
return [r.callee, ...r.args].flatMap(scanNonListNodeForBinding).flatMap((r) => r.variables.length
|
|
3187
|
+
return [r.callee, ...r.args].flatMap(scanNonListNodeForBinding).flatMap((r) => r.variables.length > 1 ? [] : r.variables.length ? r.variables[0] : r.tupleElements).flatMap((r) => {
|
|
3185
3188
|
let N = extractVarNameFromPrimaryVariable(r);
|
|
3186
3189
|
if (N === void 0) return [];
|
|
3187
3190
|
let P = this.compiler.nodeReferee(r);
|
|
3188
|
-
return !P.getValue() || P.hasValue(UNHANDLED) ? new CompileError(CompileErrorCode.BINDING_ERROR, `No column named '${N}' inside
|
|
3191
|
+
return !P.getValue() || P.hasValue(UNHANDLED) ? new CompileError(CompileErrorCode.BINDING_ERROR, `No column named '${N}' inside ${this.ownerContainerKind} '${M}'`, r) : [];
|
|
3189
3192
|
});
|
|
3190
3193
|
});
|
|
3191
3194
|
}
|
|
@@ -11964,7 +11967,7 @@ var DBMLDefinitionProvider = class {
|
|
|
11964
11967
|
let P;
|
|
11965
11968
|
if (M.declaration && [SyntaxNodeKind.PRIMARY_EXPRESSION, SyntaxNodeKind.VARIABLE].includes(r.kind) && ({declaration: P} = M), P) {
|
|
11966
11969
|
let { startPos: r, endPos: j } = P, M = N;
|
|
11967
|
-
return N && P.filepath && (M = URI.parse(P.filepath.toUri())), [{
|
|
11970
|
+
return N && P.filepath && (M = URI.parse(P.filepath.toUri({ protocol: N.scheme }))), [{
|
|
11968
11971
|
range: {
|
|
11969
11972
|
startColumn: r.column + 1,
|
|
11970
11973
|
startLineNumber: r.line + 1,
|
|
@@ -12035,7 +12038,7 @@ var DBMLDefinitionProvider = class {
|
|
|
12035
12038
|
let M = this.compiler.nodeSymbol(r).getFiltered(UNHANDLED) ?? this.compiler.nodeReferee(r).getFiltered(UNHANDLED), P = M ? this.compiler.symbolReferences(M) : void 0;
|
|
12036
12039
|
if (P && P.length > 0) return P.map((r) => {
|
|
12037
12040
|
let j = N;
|
|
12038
|
-
return N && r.filepath && (j = URI.parse(r.filepath.toUri())), {
|
|
12041
|
+
return N && r.filepath && (j = URI.parse(r.filepath.toUri({ protocol: N.scheme }))), {
|
|
12039
12042
|
range: {
|
|
12040
12043
|
startColumn: r.startPos.column + 1,
|
|
12041
12044
|
startLineNumber: r.startPos.line + 1,
|
|
@@ -13798,12 +13801,6 @@ var ParsingContextStack = class {
|
|
|
13798
13801
|
if (this.check(SyntaxTokenKind.RBRACE) || this.check(SyntaxTokenKind.STRING_LITERAL) || this.check(SyntaxTokenKind.IDENTIFIER) && isFromKeyword(r) || isAtStartOfLine(this.previous(), r)) break;
|
|
13799
13802
|
markInvalid(r), this.advance();
|
|
13800
13803
|
}
|
|
13801
|
-
}, this.synchronizeUseSpecifier = () => {
|
|
13802
|
-
for (; !this.isAtEnd();) {
|
|
13803
|
-
let r = this.peek();
|
|
13804
|
-
if (this.check(SyntaxTokenKind.RBRACE) || isAtStartOfLine(this.previous(), r)) break;
|
|
13805
|
-
markInvalid(r), this.advance();
|
|
13806
|
-
}
|
|
13807
13804
|
}, this.synchronizeProgram = () => {
|
|
13808
13805
|
let r = this.peek();
|
|
13809
13806
|
r.kind === SyntaxTokenKind.EOF ? this.logError(r, CompileErrorCode.UNEXPECTED_EOF, "Unexpected EOF") : markInvalid(this.advance());
|
|
@@ -14038,16 +14035,12 @@ var ParsingContextStack = class {
|
|
|
14038
14035
|
try {
|
|
14039
14036
|
this.consume("Expect an import kind specifier (e.g. table, enum)", SyntaxTokenKind.IDENTIFIER), r.importKind = this.previous();
|
|
14040
14037
|
} catch (r) {
|
|
14041
|
-
|
|
14042
|
-
if (!this.canHandle(r)) throw new PartialParsingError(r.token, j(), r.handlerContext);
|
|
14043
|
-
this.synchronizeUseSpecifier();
|
|
14038
|
+
throw r instanceof PartialParsingError ? new PartialParsingError(r.token, j(), r.handlerContext) : r;
|
|
14044
14039
|
}
|
|
14045
14040
|
if (this.check(SyntaxTokenKind.IDENTIFIER, SyntaxTokenKind.QUOTED_STRING)) try {
|
|
14046
14041
|
r.name = this.normalExpression();
|
|
14047
14042
|
} catch (M) {
|
|
14048
|
-
|
|
14049
|
-
if (M.partialNode instanceof SyntaxNode && (r.name = M.partialNode), !this.canHandle(M)) throw new PartialParsingError(M.token, j(), M.handlerContext);
|
|
14050
|
-
this.synchronizeUseSpecifier();
|
|
14043
|
+
throw M instanceof PartialParsingError ? (M.partialNode instanceof SyntaxNode && (r.name = M.partialNode), new PartialParsingError(M.token, j(), M.handlerContext)) : M;
|
|
14051
14044
|
}
|
|
14052
14045
|
else r.importKind && this.logError(this.peek(), CompileErrorCode.UNEXPECTED_TOKEN, "Expect an element name");
|
|
14053
14046
|
if (isAsKeyword(this.peek())) {
|
|
@@ -14058,7 +14051,6 @@ var ParsingContextStack = class {
|
|
|
14058
14051
|
} catch (r) {
|
|
14059
14052
|
if (!(r instanceof PartialParsingError)) throw r;
|
|
14060
14053
|
if (!this.canHandle(r)) throw new PartialParsingError(r.token, j(), r.handlerContext);
|
|
14061
|
-
this.synchronizeUseSpecifier();
|
|
14062
14054
|
}
|
|
14063
14055
|
}
|
|
14064
14056
|
return j();
|
|
@@ -14713,49 +14705,35 @@ function findDiagramViewBlocks(r) {
|
|
|
14713
14705
|
}
|
|
14714
14706
|
return j;
|
|
14715
14707
|
}
|
|
14716
|
-
function
|
|
14717
|
-
|
|
14718
|
-
let j = addDoubleQuoteIfNeeded(r.name);
|
|
14719
|
-
return r.schemaName === "public" ? j : `${addDoubleQuoteIfNeeded(r.schemaName)}.${j}`;
|
|
14720
|
-
});
|
|
14721
|
-
r.push(" Tables {"), M.forEach((j) => r.push(` ${j}`)), r.push(" }");
|
|
14708
|
+
function emitListSubBlock(r, j, M, N) {
|
|
14709
|
+
r.push(` ${j} {`), M.forEach((j) => r.push(` ${N(j)}`)), r.push(" }");
|
|
14722
14710
|
}
|
|
14723
|
-
function
|
|
14724
|
-
r.push(
|
|
14711
|
+
function emitWildcardSubBlock(r, j) {
|
|
14712
|
+
r.push(` ${j} { * }`);
|
|
14725
14713
|
}
|
|
14726
|
-
function
|
|
14727
|
-
|
|
14714
|
+
function formatTableRef(r) {
|
|
14715
|
+
let j = addDoubleQuoteIfNeeded(r.name);
|
|
14716
|
+
return r.schemaName === "public" ? j : `${addDoubleQuoteIfNeeded(r.schemaName)}.${j}`;
|
|
14728
14717
|
}
|
|
14729
|
-
function
|
|
14730
|
-
|
|
14718
|
+
function formatNamed(r) {
|
|
14719
|
+
return addDoubleQuoteIfNeeded(r.name);
|
|
14720
|
+
}
|
|
14721
|
+
function classifyDim(r) {
|
|
14722
|
+
return r == null ? "null" : r.length === 0 ? "empty" : "items";
|
|
14731
14723
|
}
|
|
14732
14724
|
function generateDiagramViewBlock(r, j) {
|
|
14733
14725
|
let M = `DiagramView ${addDoubleQuoteIfNeeded(r)} {`;
|
|
14734
14726
|
if (!j) return `${M}\n}`;
|
|
14735
|
-
let
|
|
14736
|
-
|
|
14737
|
-
|
|
14738
|
-
|
|
14739
|
-
|
|
14740
|
-
|
|
14741
|
-
|
|
14742
|
-
|
|
14743
|
-
|
|
14744
|
-
|
|
14745
|
-
}
|
|
14746
|
-
let V = [M];
|
|
14747
|
-
return r && emitTablesBlock(V, N), j && emitTableGroupsBlock(V, P), B && emitSchemasBlock(V, F), I && I.length > 0 && emitNotesBlock(V, I), V.push("}"), V.join("\n");
|
|
14748
|
-
}
|
|
14749
|
-
let B = N, V = P, H = F, U = B.length === 0 && V.length === 0 && H.length === 0, W = I != null && I.length > 0;
|
|
14750
|
-
if (U) {
|
|
14751
|
-
if (W) {
|
|
14752
|
-
let r = [M, " Tables { * }"];
|
|
14753
|
-
return emitNotesBlock(r, I), r.push("}"), r.join("\n");
|
|
14754
|
-
}
|
|
14755
|
-
return `${M}\n *\n}`;
|
|
14756
|
-
}
|
|
14757
|
-
let G = [M];
|
|
14758
|
-
return B.length > 0 && emitTablesBlock(G, B), V.length > 0 && emitTableGroupsBlock(G, V), H.length > 0 && emitSchemasBlock(G, H), W && emitNotesBlock(G, I), G.push("}"), G.join("\n");
|
|
14727
|
+
let N = {
|
|
14728
|
+
tables: classifyDim(j.tables),
|
|
14729
|
+
tableGroups: classifyDim(j.tableGroups),
|
|
14730
|
+
schemas: classifyDim(j.schemas),
|
|
14731
|
+
stickyNotes: classifyDim(j.stickyNotes)
|
|
14732
|
+
};
|
|
14733
|
+
if (Object.values(N).every((r) => r === "null")) return `${M}\n}`;
|
|
14734
|
+
if (Object.values(N).every((r) => r === "empty")) return `${M}\n *\n}`;
|
|
14735
|
+
let P = N.tables === "items" || N.tableGroups === "items" || N.schemas === "items", F = N.tables === "empty" && N.tableGroups === "empty" && N.schemas === "empty", I = [M];
|
|
14736
|
+
return P ? (N.tables === "items" && emitListSubBlock(I, "Tables", j.tables, formatTableRef), N.tableGroups === "items" && emitListSubBlock(I, "TableGroups", j.tableGroups, formatNamed), N.schemas === "items" && emitListSubBlock(I, "Schemas", j.schemas, formatNamed)) : F && emitWildcardSubBlock(I, "Tables"), N.stickyNotes === "items" ? emitListSubBlock(I, "Notes", j.stickyNotes, formatNamed) : N.stickyNotes === "empty" && !P && !F && emitWildcardSubBlock(I, "Notes"), I.push("}"), I.join("\n");
|
|
14759
14737
|
}
|
|
14760
14738
|
function syncDiagramView(r, j, M) {
|
|
14761
14739
|
let N = this.getSource(r) ?? "", P = M ?? findDiagramViewBlocks(N), F = [];
|
package/dist/index.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/src/constants.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -6,6 +6,7 @@ export default class IndexesBinder {
|
|
|
6
6
|
private declarationNode;
|
|
7
7
|
constructor(compiler: Compiler, declarationNode: ElementDeclarationNode);
|
|
8
8
|
bind(): CompileError[];
|
|
9
|
+
private get ownerContainerKind();
|
|
9
10
|
private bindBody;
|
|
10
11
|
private bindFields;
|
|
11
12
|
private bindSubElements;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -31,7 +31,6 @@ export default class Parser {
|
|
|
31
31
|
private useSpecifierList;
|
|
32
32
|
private synchronizeUseSpecifierList;
|
|
33
33
|
private useSpecifier;
|
|
34
|
-
private synchronizeUseSpecifier;
|
|
35
34
|
private synchronizeProgram;
|
|
36
35
|
private elementDeclaration;
|
|
37
36
|
private synchronizeElementDeclarationName;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/src/index.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|