You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Various edits on ClrTypeSpec2, adding tests for ClrTypeSpec2. Revert to RT.classForName calling ClrTypeSpec so we can get an alpha out with the assembly loading changes only.
Copy file name to clipboardExpand all lines: Clojure/Clojure/Lib/ClrTypeSpec2.cs
+36-64Lines changed: 36 additions & 64 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
-
usingSystem;
1
+
usingclojure.lang.CljCompiler.Ast;
2
+
usingSystem;
2
3
usingSystem.Collections.Generic;
3
4
usingSystem.Linq;
4
5
usingSystem.Reflection;
@@ -53,7 +54,7 @@ internal Type Resolve(Type type)
53
54
#endregion
54
55
}
55
56
56
-
classClrTypeSpec2
57
+
publicclassClrTypeSpec2
57
58
{
58
59
#region Data
59
60
@@ -76,9 +77,8 @@ public static Type GetTypeFromName(string name, Namespace ns = null)
76
77
returnnull;
77
78
returnspec.Resolve(
78
79
ns,
79
-
assyName =>Assembly.Load(assyName),
80
-
//(assy, typeName) => assy == null ? RT.classForName(typeName) : assy.GetType(typeName)); <--- this goes into an infinite loop on a non-existent typename
0 commit comments