@dbml/parse 8.0.0-alpha.6 → 8.0.0-alpha.7

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.
@@ -8201,9 +8201,9 @@ const useUtils = { visibleName(r, M) {
8201
8201
  nodeSymbol(N, P) {
8202
8202
  if (!isUseSpecifier(P) || !P.name) return Report.create(PASS_THROUGH);
8203
8203
  let F = P.getSymbolKind();
8204
- if (F === void 0) return Report.create(PASS_THROUGH);
8204
+ if (F === void 0 || F === SymbolKind.Schema) return Report.create(PASS_THROUGH);
8205
8205
  let I = N.nodeReferee(P.name).getFiltered(UNHANDLED);
8206
- return I && !I.canBeImported && F !== SymbolKind.Schema ? Report.create(PASS_THROUGH) : Report.create(N.symbolFactory.create(UseSymbol, {
8206
+ return I && !I.canBeImported ? Report.create(PASS_THROUGH) : Report.create(N.symbolFactory.create(UseSymbol, {
8207
8207
  useSpecifierDeclaration: P,
8208
8208
  declaration: I?.declaration,
8209
8209
  usedSymbol: I,
@@ -9446,12 +9446,14 @@ const schemaModule = { symbolMembers(N, P) {
9446
9446
  for (let j of r) B.push(...expandTableGroup(N, P, j));
9447
9447
  }
9448
9448
  let V = /* @__PURE__ */ new Set(), H = B.filter((r) => {
9449
+ if (r instanceof UseSymbol && r.isKind(SymbolKind.Schema)) return !1;
9449
9450
  let j = `${r.originalSymbol.intern()}:${r.name ?? ""}`;
9450
9451
  return V.has(j) ? !1 : (V.add(j), !0);
9451
9452
  }), U = /* @__PURE__ */ new Map();
9452
9453
  for (let r of H) {
9453
9454
  let j = `${r.kind}:${r.name}`;
9454
9455
  if (U.get(j)) {
9456
+ if (r.isKind(SymbolKind.Schema)) continue;
9455
9457
  let j = r instanceof UseSymbol ? r.useSpecifierDeclaration ?? r.declaration : r.declaration instanceof ElementDeclarationNode && r.declaration.name ? r.declaration.name : r.declaration;
9456
9458
  j && r.name !== void 0 && z.push(getDuplicateSchemaMemberError(r.kind, r.name, F.join("."), j));
9457
9459
  } else U.set(j, r);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@dbml/parse",
4
- "version": "8.0.0-alpha.6",
4
+ "version": "8.0.0-alpha.7",
5
5
  "description": "DBML parser v2",
6
6
  "author": "Holistics <dev@holistics.io>",
7
7
  "license": "Apache-2.0",
@@ -45,5 +45,5 @@
45
45
  "engines": {
46
46
  "node": ">=18"
47
47
  },
48
- "gitHead": "52721b96504df2eeb4ff7fc13292896221a837ef"
48
+ "gitHead": "4c4389c0126b09613bc4daec1c4b938dddb3c434"
49
49
  }