< prev index next >

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

Print this page

        

@@ -23,10 +23,11 @@
  * questions.
  */
 
 package com.sun.tools.javac.comp;
 
+import com.sun.tools.javac.code.Symbol.MethodSymbol;
 import com.sun.tools.javac.tree.JCTree;
 import com.sun.tools.javac.util.*;
 import com.sun.tools.javac.code.*;
 import com.sun.tools.javac.code.Scope.WriteableScope;
 

@@ -115,10 +116,12 @@
      *  but this may not be true during the window a method is looked up in enclosing
      *  contexts (JDK-8145466)
      */
     JCTree preferredTreeForDiagnostics;
 
+    MethodSymbol recordImplicitConstructor;
+
     /** Duplicate this context, replacing scope field and copying all others.
      */
     AttrContext dup(WriteableScope scope) {
         AttrContext info = new AttrContext();
         info.scope = scope;

@@ -136,10 +139,11 @@
         info.isSpeculative = isSpeculative;
         info.isAnonymousDiamond = isAnonymousDiamond;
         info.isNewClass = isNewClass;
         info.preferredTreeForDiagnostics = preferredTreeForDiagnostics;
         info.visitingServiceImplementation = visitingServiceImplementation;
+        info.recordImplicitConstructor = recordImplicitConstructor;
         return info;
     }
 
     /** Duplicate this context, copying all fields.
      */
< prev index next >