|
@@ -14,7 +14,9 @@ import java.lang.reflect.Type;
|
14
|
14
|
import java.lang.reflect.TypeVariable;
|
15
|
15
|
import java.util.Collections;
|
16
|
16
|
import java.util.HashMap;
|
|
17
|
+import java.util.HashSet;
|
17
|
18
|
import java.util.Map;
|
|
19
|
+import java.util.Set;
|
18
|
20
|
import org.openzen.zencode.shared.CodePosition;
|
19
|
21
|
import org.openzen.zenscript.codemodel.FunctionHeader;
|
20
|
22
|
import org.openzen.zenscript.codemodel.FunctionParameter;
|
|
@@ -42,6 +44,7 @@ import org.openzen.zenscript.codemodel.member.GetterMember;
|
42
|
44
|
import org.openzen.zenscript.codemodel.member.MethodMember;
|
43
|
45
|
import org.openzen.zenscript.codemodel.member.OperatorMember;
|
44
|
46
|
import org.openzen.zenscript.codemodel.member.SetterMember;
|
|
47
|
+import org.openzen.zenscript.codemodel.member.ref.FunctionalMemberRef;
|
45
|
48
|
import org.openzen.zenscript.codemodel.partial.PartialStaticMemberGroupExpression;
|
46
|
49
|
import org.openzen.zenscript.codemodel.type.BasicTypeID;
|
47
|
50
|
import org.openzen.zenscript.codemodel.type.GlobalTypeRegistry;
|
|
@@ -146,7 +149,6 @@ public class JavaNativeModule {
|
146
|
149
|
return definitionByClass.get(cls);
|
147
|
150
|
|
148
|
151
|
HighLevelDefinition result = convertClass(cls);
|
149
|
|
- definitionByClass.put(cls, result);
|
150
|
152
|
return result;
|
151
|
153
|
}
|
152
|
154
|
|
|
@@ -253,6 +255,7 @@ public class JavaNativeModule {
|
253
|
255
|
|
254
|
256
|
definition.typeParameters = typeParameters;
|
255
|
257
|
compiled.setClassInfo(definition, javaClass);
|
|
258
|
+ definitionByClass.put(cls, definition);
|
256
|
259
|
|
257
|
260
|
StoredType thisType = new StoredType(registry.getForMyDefinition(definition), AutoStorageTag.INSTANCE);
|
258
|
261
|
for (Field field : cls.getDeclaredFields()) {
|