use of dyvilx.tools.compiler.ast.classes.ClassBody in project Dyvil by Dyvil.
the class CompleteCommand method findMembers.
private static void findMembers(IType type, Set<IField> fields, Set<IProperty> properties, Set<IMethod> methods, String start, boolean statics) {
final IClass theClass = type.getTheClass();
if (theClass == null) {
return;
}
final ClassBody body = theClass.getBody();
if (body == null) {
return;
}
for (int i = 0, count = body.fieldCount(); i < count; i++) {
checkMember(fields, body.getField(i), start, statics);
}
for (int i = 0, count = body.propertyCount(); i < count; i++) {
checkMember(properties, body.getProperty(i), start, statics);
}
for (int i = 0, count = body.methodCount(); i < count; i++) {
checkMember(methods, body.getMethod(i), start, statics);
}
}
use of dyvilx.tools.compiler.ast.classes.ClassBody in project Dyvil by Dyvil.
the class REPLContext method startEvaluation.
// Evaluation
public void startEvaluation(String text) {
final String className = CLASS_PREFIX + this.classIndex++;
this.currentClass = new CodeClass(this, Name.fromRaw(className));
this.currentClass.setBody(new ClassBody(this.currentClass));
this.currentSource = new TextSource(text);
}
Aggregations