< prev index next >

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

Print this page
@@ -86,10 +86,15 @@
      /**
       *  Is this an attribution environment for an instance creation expression?
       */
      boolean isNewClass = false;
  
+     /**
+      *  Is this an attribution environment for a withfield operation ?
+      */
+     boolean inWithField = false;
+ 
      /** Indicate if the type being visited is a service implementation
       */
      boolean visitingServiceImplementation = false;
  
      /** Are arguments to current function applications boxed into an array for varargs?

@@ -145,10 +150,11 @@
          info.isLambda = isLambda;
          info.isSerializableLambda = isSerializableLambda;
          info.attributionMode = attributionMode;
          info.isAnonymousDiamond = isAnonymousDiamond;
          info.isNewClass = isNewClass;
+         info.inWithField = inWithField;
          info.preferredTreeForDiagnostics = preferredTreeForDiagnostics;
          info.visitingServiceImplementation = visitingServiceImplementation;
          return info;
      }
  
< prev index next >