Search in sources :

Example 1 with ISourceHeader

use of dyvilx.tools.compiler.ast.header.ISourceHeader in project Dyvil by Dyvil.

the class TypeAlias method ensureResolved.

// Phases
private void ensureResolved() {
    if (this.resolved) {
        return;
    }
    final MarkerList markers = this.enclosingHeader instanceof ISourceHeader ? ((ISourceHeader) this.enclosingHeader).getMarkers() : null;
    this.resolveTypes(markers, this.enclosingHeader.getContext());
}
Also used : MarkerList(dyvilx.tools.parsing.marker.MarkerList) ISourceHeader(dyvilx.tools.compiler.ast.header.ISourceHeader)

Example 2 with ISourceHeader

use of dyvilx.tools.compiler.ast.header.ISourceHeader in project Dyvil by Dyvil.

the class DyvilFileType method createUnit.

@Override
public ICompilationUnit createUnit(DyvilCompiler compiler, Package pack, File inputFile, File outputFile) {
    final ISourceHeader header = this.headerSupplier.newHeader(compiler, pack, inputFile, outputFile);
    if (header == null) {
        return null;
    }
    pack.addHeader(header);
    return header;
}
Also used : ISourceHeader(dyvilx.tools.compiler.ast.header.ISourceHeader)

Aggregations

ISourceHeader (dyvilx.tools.compiler.ast.header.ISourceHeader)2 MarkerList (dyvilx.tools.parsing.marker.MarkerList)1