< prev index next >

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

Print this page

        

@@ -77,10 +77,20 @@
     /**
      *  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;
+
+    /**
+     *  Is this an attribution environment for a nullable value type (adorned with a ?) ?
+     */
+    boolean isQuestioned = 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?

@@ -134,10 +144,12 @@
         info.isSerializable = isSerializable;
         info.isLambda = isLambda;
         info.isSpeculative = isSpeculative;
         info.isAnonymousDiamond = isAnonymousDiamond;
         info.isNewClass = isNewClass;
+        info.inWithField = inWithField;
+        info.isQuestioned = isQuestioned;
         info.preferredTreeForDiagnostics = preferredTreeForDiagnostics;
         info.visitingServiceImplementation = visitingServiceImplementation;
         return info;
     }
 
< prev index next >