private static void WireAssembly(SymbolTable scope, Assembly assembly) { Type[] types = assembly.GetTypes(); foreach (Type type in types) { string name = type.Name; if (type.Name.Contains("`")) { name = name.Substring(0, name.IndexOf('`')); } RType rType = RppTypeSystem.GetOrCreateType(name, type); scope.AddType(rType); } }
public void PreAnalyze(SymbolTable scope) { _classes.ForEach(c => scope.AddType(c.Type)); NodeUtils.PreAnalyze(scope, _classes); }
private static void WireRuntime(SymbolTable scope) { Assembly runtimeAssembly = GetRuntimeAssembly(); WireAssembly(scope, runtimeAssembly); scope.AddType(RppTypeSystem.GetOrCreateType("Exception", typeof(Exception))); }
private static void WireAssembly(SymbolTable scope, Assembly assembly) { Type[] types = assembly.GetTypes(); foreach (Type type in types) { string name = type.Name; if (type.Name.Contains("`")) { name = name.Substring(0, name.IndexOf('`')); } if (type.GetField("_instance", BindingFlags.Public | BindingFlags.Static) != null && !name.EndsWith("$")) { name = name + "$"; } RType rType = RppTypeSystem.GetOrCreateType(name, type); scope.AddType(rType); } }