Search in sources :

Example 1 with ClassConstructorCall

use of dyvilx.tools.compiler.ast.expression.access.ClassConstructorCall in project Dyvil by Dyvil.

the class ConstructorCallParser method parseBody.

/**
 * Creates the body and initializes parsing for anonymous classes.
 *
 * @param pm
 * 	the current parsing context manager.
 */
private void parseBody(IParserManager pm) {
    final ClassConstructorCall classConstructorCall = this.call.toClassConstructor();
    this.call = classConstructorCall;
    final IClass nestedClass = classConstructorCall.getNestedClass();
    final ClassBody body = nestedClass.getBody();
    pm.pushParser(new ClassBodyParser(body), true);
    this.mode = ANONYMOUS_CLASS_END;
}
Also used : ClassBodyParser(dyvilx.tools.compiler.parser.classes.ClassBodyParser) IClass(dyvilx.tools.compiler.ast.classes.IClass) ClassConstructorCall(dyvilx.tools.compiler.ast.expression.access.ClassConstructorCall) ClassBody(dyvilx.tools.compiler.ast.classes.ClassBody)

Aggregations

ClassBody (dyvilx.tools.compiler.ast.classes.ClassBody)1 IClass (dyvilx.tools.compiler.ast.classes.IClass)1 ClassConstructorCall (dyvilx.tools.compiler.ast.expression.access.ClassConstructorCall)1 ClassBodyParser (dyvilx.tools.compiler.parser.classes.ClassBodyParser)1