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));
}
}
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();
}