mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 12:16:49 +00:00
[#2612] VarSymbol.adr is required for flow analysis in Netbeans
This commit is contained in:
1 parent
bfb9435daa
commit
f04ee37f6b
2 files changed
+2
No files matched your search
@@ -1241,6 +1241,7 @@ public class JavacHandlerUtil {
|
||||
if (param.sym == null) {
|
||||
Type paramType = paramTypes == null ? param.getType().type : paramTypes.get(i);
|
||||
VarSymbol varSymbol = new VarSymbol(param.mods.flags, param.name, paramType, symtab.noSymbol);
|
||||
varSymbol.adr = i;
|
||||
List<JCAnnotation> annotations = param.getModifiers().getAnnotations();
|
||||
if (annotations != null && !annotations.isEmpty()) {
|
||||
ListBuffer<Attribute.Compound> newAnnotations = new ListBuffer<Attribute.Compound>();
|
||||
|
||||
@@ -62,6 +62,7 @@ public abstract class Symbol implements Element {
|
||||
|
||||
public static class VarSymbol extends Symbol implements VariableElement {
|
||||
public Type type;
|
||||
public int adr;
|
||||
public VarSymbol(long flags, Name name, Type type, Symbol owner) {
|
||||
}
|
||||
@Override public ElementKind getKind() { return null; }
|
||||
|
||||
Reference in new issue
Block a user