AttrContext dup(Scope scope) {
        AttrContext info = new AttrContext();
        info.scope = scope;
        info.staticLevel = staticLevel;
        info.isSelfCall = isSelfCall;
        info.selectSuper = selectSuper;
        info.pendingResolutionPhase = pendingResolutionPhase;
        info.lint = lint;
        info.enclVar = enclVar;
        info.returnResult = returnResult;
        info.defaultSuperCallSite = defaultSuperCallSite;
        info.isSerializable = isSerializable;
        info.preferredTreeForDiagnostics = preferredTreeForDiagnostics;
        return info;
    }
AttrContext dup ( Scope scope ) { AttrContext info = new AttrContext ( ) ; info . scope = scope ; info . staticLevel = staticLevel ; info . isSelfCall = isSelfCall ; info . selectSuper = selectSuper ; info . pendingResolutionPhase = pendingResolutionPhase ; info . lint = lint ; info . enclVar = enclVar ; info . returnResult = returnResult ; info . defaultSuperCallSite = defaultSuperCallSite ; info . isSerializable = isSerializable ; info . preferredTreeForDiagnostics = preferredTreeForDiagnostics ; return info ; }
Duplicate this context, replacing scope field and copying all others.