mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 14:17:48 +00:00
[#2612] Set VarSymbol.owner
This commit is contained in:
1 parent
dfbd843e5a
commit
5095cfaac9
2 files changed
+4
No files matched your search
@@ -1275,6 +1275,9 @@ public class JavacHandlerUtil {
|
||||
MethodSymbol methodSymbol = new MethodSymbol(access, methodName, new MethodType(paramTypes, returnType, List.<Type>nil(), Symtab.instance(context).methodClass), cs);
|
||||
if (params != null && !params.isEmpty()) {
|
||||
methodSymbol.params = params;
|
||||
for (VarSymbol varSymbol : params) {
|
||||
varSymbol.owner = methodSymbol;
|
||||
}
|
||||
}
|
||||
ClassSymbolMembersField.enter(cs, methodSymbol);
|
||||
}
|
||||
|
||||
@@ -24,6 +24,7 @@ import com.sun.tools.javac.util.Name;
|
||||
public abstract class Symbol implements Element {
|
||||
public Type type;
|
||||
public Name name;
|
||||
public Symbol owner;
|
||||
|
||||
public long flags() { return 0; }
|
||||
public boolean isStatic() { return false; }
|
||||
|
||||
Reference in new issue
Block a user