We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3eba7a commit 427cc1dCopy full SHA for 427cc1d
lib/semantic.js
@@ -821,6 +821,7 @@ class TypeChecker {
821
assert.equal(ast.type, 'module');
822
// 类型系统
823
this.usedExternModel = new Map();
824
+ this.aliasNames = new Map();
825
this.usedTypes = new Map();
826
this.checkImports(ast);
827
this.checkExtends(ast);
@@ -853,6 +854,7 @@ class TypeChecker {
853
854
ast.conflictModels = this.resolveConflictModels(ast.usedExternModel);
855
ast.usedTypes = this.usedTypes;
856
ast.innerDep = this.innerDep;
857
+ ast.aliasNames = this.aliasNames;
858
// save the final ast in checker
859
this.ast = ast;
860
return this;
0 commit comments