src/share/classes/com/sun/tools/javac/comp/AttrContext.java

changeset 94
6542933af8f4
parent 1
9a66ca7c79fa
child 117
24a47c3062fe
     1.1 --- a/src/share/classes/com/sun/tools/javac/comp/AttrContext.java	Fri Aug 08 17:38:20 2008 +0100
     1.2 +++ b/src/share/classes/com/sun/tools/javac/comp/AttrContext.java	Fri Aug 08 17:43:24 2008 +0100
     1.3 @@ -66,6 +66,11 @@
     1.4       */
     1.5      Lint lint;
     1.6  
     1.7 +    /** The variable whose initializer is being attributed
     1.8 +     * useful for detecting self-references in variable initializers
     1.9 +     */
    1.10 +    Symbol enclVar = null;
    1.11 +
    1.12      /** Duplicate this context, replacing scope field and copying all others.
    1.13       */
    1.14      AttrContext dup(Scope scope) {
    1.15 @@ -77,6 +82,7 @@
    1.16          info.varArgs = varArgs;
    1.17          info.tvars = tvars;
    1.18          info.lint = lint;
    1.19 +        info.enclVar = enclVar;
    1.20          return info;
    1.21      }
    1.22  

mercurial