Changeset 1215
- Timestamp:
- 07/06/08 22:33:50 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/descent.core/src/descent/internal/codeassist/CompletionEngine.java
r1203 r1215 719 719 doSemantic(); 720 720 721 node.semantic(Scope.createGlobal(node.mod, semanticContext), semanticContext);721 // node.semantic(Scope.createGlobal(node.mod, semanticContext), semanticContext); 722 722 723 723 if (node.mod != null) { 724 node.mod = node.mod.unlazy(semanticContext); 724 725 if (node.selectiveName == null) { 725 726 this.startPosition = actualCompletionPosition; … … 1095 1096 1096 1097 if (sym instanceof ClassDeclaration) { 1097 ClassDeclaration cd = (ClassDeclaration) sym; 1098 cd = cd.unlazy(semanticContext); 1098 ClassDeclaration cd = ((ClassDeclaration) sym).unlazy(semanticContext); 1099 1099 1100 1100 Declaration func = cd.ctor; … … 1405 1405 TypeClass tc = (TypeClass) bc.type; 1406 1406 loop: 1407 for(Dsymbol member : tc.sym. members) {1407 for(Dsymbol member : tc.sym.unlazy(semanticContext).members) { 1408 1408 if (member instanceof FuncDeclaration) { 1409 1409 FuncDeclaration fd = (FuncDeclaration) member; … … 1501 1501 } else { 1502 1502 if (sym instanceof ScopeDsymbol) { 1503 ScopeDsymbol scopeDsymbol = ( ScopeDsymbol) sym;1503 ScopeDsymbol scopeDsymbol = ((ScopeDsymbol) sym).unlazy(semanticContext); 1504 1504 if (scopeDsymbol.members != null) { 1505 1505 completeScopeDsymbol(scopeDsymbol, false /* not only statics */, includes); … … 1541 1541 1542 1542 private void completeScopeDsymbol(ScopeDsymbol sd, boolean onlyStatics, int includes) { 1543 sd = sd.unlazy(semanticContext); 1543 1544 if (sd instanceof ClassDeclaration) { 1544 1545 completeTypeClass((TypeClass) sd.type(), onlyStatics); … … 1554 1555 1555 1556 private Dsymbol getScopeSymbol(Scope scope) { 1557 scope.scopesym = scope.scopesym == null ? null : scope.scopesym.unlazy(semanticContext); 1556 1558 if (scope.scopesym == null || scope.scopesym.members == null 1557 1559 || scope.scopesym.members.isEmpty()) { … … 2002 2004 if (member instanceof StructDeclaration || 2003 2005 member instanceof EnumDeclaration) { 2004 suggestMembers(((ScopeDsymbol) member). members, onlyStatics, flags, funcSignatures, includes);2006 suggestMembers(((ScopeDsymbol) member).unlazy(semanticContext).members, onlyStatics, flags, funcSignatures, includes); 2005 2007 } 2006 2008 return; trunk/descent.core/src/descent/internal/compiler/parser/ScopeDsymbol.java
r1203 r1215 345 345 return null; 346 346 } 347 348 public ScopeDsymbol unlazy(SemanticContext context) { 349 return this; 350 } 347 351 348 352 }
