public virtual TypeRegistry AddTypes(TypeRegistry reg) { if (ImportNamespaces != null) { return(reg.AddSymbols(ImportNamespaces.Select(CreateTypeLoader))); } else { return(reg); } }
public virtual TypeRegistry AddImportedTypes(TypeRegistry reg, CompiledAssemblyCache compiledAssemblyCache) { if (ImportNamespaces != null) { return(reg.AddSymbols(ImportNamespaces.Select(ns => CreateTypeLoader(ns, compiledAssemblyCache)))); } else { return(reg); } }