include custom object modules
This commit is contained in:
parent
abb29d12f3
commit
0e27404baf
|
|
@ -366,10 +366,12 @@ final class FirstPass : ASTVisitor
|
|||
currentSymbol = rootSymbol;
|
||||
moduleScope = GCAllocator.instance.make!Scope(0, uint.max);
|
||||
currentScope = moduleScope;
|
||||
auto objectLocation = cache.resolveImportLocation("object");
|
||||
if (objectLocation is null)
|
||||
auto objectLocations = cache.resolveImportLocations("object");
|
||||
if (objectLocations is null)
|
||||
warning("Could not locate object.d or object.di");
|
||||
else
|
||||
{
|
||||
foreach (objectLocation; objectLocations)
|
||||
{
|
||||
auto objectImport = allocateSemanticSymbol(IMPORT_SYMBOL_NAME,
|
||||
CompletionKind.importSymbol, objectLocation);
|
||||
|
|
@ -377,6 +379,7 @@ final class FirstPass : ASTVisitor
|
|||
currentSymbol.addChild(objectImport, true);
|
||||
currentScope.addSymbol(objectImport.acSymbol, false);
|
||||
}
|
||||
}
|
||||
foreach (s; builtinSymbols[])
|
||||
currentScope.addSymbol(s, false);
|
||||
mod.accept(this);
|
||||
|
|
|
|||
Loading…
Reference in New Issue