Search in sources :

Example 1 with MemberEnter

use of com.sun.tools.javac.comp.MemberEnter in project lombok by rzwitserloot.

the class JavacResolution method memberEnterAndAttribute.

private void memberEnterAndAttribute(JCTree copy, Env<AttrContext> env, Context context) {
    MemberEnter memberEnter = MemberEnter.instance(context);
    Env<AttrContext> oldEnv = getEnvOfMemberEnter(memberEnter);
    setEnvOfMemberEnter(memberEnter, env);
    try {
        copy.accept(memberEnter);
    } catch (Exception ignore) {
        // intentionally ignored; usually even if this step fails, val will work (but not for val in method local inner classes and anonymous inner classes).
        AssertionLogger.assertLog("member enter failed.", ignore);
    } finally {
        setEnvOfMemberEnter(memberEnter, oldEnv);
    }
    attrib(copy, env);
}
Also used : MemberEnter(com.sun.tools.javac.comp.MemberEnter) AttrContext(com.sun.tools.javac.comp.AttrContext) InvocationTargetException(java.lang.reflect.InvocationTargetException)

Aggregations

AttrContext (com.sun.tools.javac.comp.AttrContext)1 MemberEnter (com.sun.tools.javac.comp.MemberEnter)1 InvocationTargetException (java.lang.reflect.InvocationTargetException)1