langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/AttrContext.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
61 |
61 |
62 /** Is this a speculative attribution environment? |
62 /** Is this a speculative attribution environment? |
63 */ |
63 */ |
64 boolean isSpeculative = false; |
64 boolean isSpeculative = false; |
65 |
65 |
|
66 /** |
|
67 * Is this an attribution environment for an anonymous class instantiated using <> ? |
|
68 */ |
|
69 boolean isAnonymousDiamond = false; |
|
70 |
66 /** Are arguments to current function applications boxed into an array for varargs? |
71 /** Are arguments to current function applications boxed into an array for varargs? |
67 */ |
72 */ |
68 Resolve.MethodResolutionPhase pendingResolutionPhase = null; |
73 Resolve.MethodResolutionPhase pendingResolutionPhase = null; |
69 |
74 |
70 /** A record of the lint/SuppressWarnings currently in effect |
75 /** A record of the lint/SuppressWarnings currently in effect |
98 info.enclVar = enclVar; |
103 info.enclVar = enclVar; |
99 info.returnResult = returnResult; |
104 info.returnResult = returnResult; |
100 info.defaultSuperCallSite = defaultSuperCallSite; |
105 info.defaultSuperCallSite = defaultSuperCallSite; |
101 info.isSerializable = isSerializable; |
106 info.isSerializable = isSerializable; |
102 info.isSpeculative = isSpeculative; |
107 info.isSpeculative = isSpeculative; |
|
108 info.isAnonymousDiamond = isAnonymousDiamond; |
103 return info; |
109 return info; |
104 } |
110 } |
105 |
111 |
106 /** Duplicate this context, copying all fields. |
112 /** Duplicate this context, copying all fields. |
107 */ |
113 */ |