Skip to content

Commit 427cc1d

Browse files
committed
add alias name
1 parent e3eba7a commit 427cc1d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/semantic.js

+2
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,7 @@ class TypeChecker {
821821
assert.equal(ast.type, 'module');
822822
// 类型系统
823823
this.usedExternModel = new Map();
824+
this.aliasNames = new Map();
824825
this.usedTypes = new Map();
825826
this.checkImports(ast);
826827
this.checkExtends(ast);
@@ -853,6 +854,7 @@ class TypeChecker {
853854
ast.conflictModels = this.resolveConflictModels(ast.usedExternModel);
854855
ast.usedTypes = this.usedTypes;
855856
ast.innerDep = this.innerDep;
857+
ast.aliasNames = this.aliasNames;
856858
// save the final ast in checker
857859
this.ast = ast;
858860
return this;

0 commit comments

Comments
 (0)