use of dyvilx.tools.compiler.ast.imports.ImportDeclaration in project Dyvil by Dyvil.
the class HeaderContext method resolvePackage.
@Override
public Package resolvePackage(Name name) {
Package result;
final ImportDeclaration[] importDeclarations = this.header.importDeclarations;
for (int i = 0, count = this.header.importCount; i < count; i++) {
result = importDeclarations[i].getContext().resolvePackage(name);
if (result != null) {
return result;
}
}
return this.header.resolvePackage(name);
}
use of dyvilx.tools.compiler.ast.imports.ImportDeclaration in project Dyvil by Dyvil.
the class HeaderContext method resolveTypeAlias.
@Override
public void resolveTypeAlias(MatchList<ITypeAlias> matches, IType receiver, Name name, TypeList arguments) {
this.header.resolveTypeAlias(matches, receiver, name, arguments);
if (matches.hasCandidate()) {
return;
}
final ImportDeclaration[] importDeclarations = this.header.importDeclarations;
for (int i = 0; i < this.header.importCount; i++) {
final IImportContext importContext = importDeclarations[i].getContext();
final MatchList<ITypeAlias> subList = matches.emptyCopy();
importContext.resolveTypeAlias(subList, receiver, name, arguments);
matches.addAll(subList);
}
}
Aggregations