Search in sources :

Example 1 with IMember

use of dyvilx.tools.compiler.ast.member.IMember in project Dyvil by Dyvil.

the class CompleteCommand method printMembers.

private static void printMembers(PrintStream out, Set<? extends IMember> members, ITypeContext typeContext) {
    for (IMember member : members) {
        out.print('\t');
        out.println(Util.memberSignatureToString(member, typeContext));
    }
}
Also used : IMember(dyvilx.tools.compiler.ast.member.IMember)

Example 2 with IMember

use of dyvilx.tools.compiler.ast.member.IMember in project Dyvil by Dyvil.

the class REPLContext method endEvaluation.

public void endEvaluation() {
    final IContext context = this.getContext();
    this.currentClass.resolveTypes(this.markers, context);
    this.currentClass.resolve(this.markers, context);
    this.currentClass.checkTypes(this.markers, context);
    this.currentClass.check(this.markers, context);
    if (this.markers.getErrors() > 0) {
        this.printErrors();
        this.cleanup();
        return;
    }
    for (int i = this.getCompilationContext().config.getConstantFolding() - 1; i >= 0; i--) {
        this.currentClass.foldConstants();
    }
    this.currentClass.cleanup(this, this.currentClass);
    final Class<?> theClass = this.compileAndLoad();
    for (IMember member : this.members) {
        this.processMember(member, theClass);
    }
    this.printErrors();
    this.cleanup();
}
Also used : IContext(dyvilx.tools.compiler.ast.context.IContext) IMember(dyvilx.tools.compiler.ast.member.IMember)

Aggregations

IMember (dyvilx.tools.compiler.ast.member.IMember)2 IContext (dyvilx.tools.compiler.ast.context.IContext)1