示例#1
0
 public IAstEmitter MakeAstEmitter(
     JSILIdentifier jsil, TypeSystem typeSystem, TypeInfoProvider typeInfoProvider, Configuration configuration
     )
 {
     return(new JavascriptAstEmitter(
                Formatter, jsil, typeSystem, typeInfoProvider, configuration
                ));
 }
示例#2
0
        protected TypeInfoProvider(TypeInfoProvider cloneSource)
        {
            Assemblies         = new HashSet <AssemblyDefinition>(cloneSource.Assemblies);
            ProxyAssemblyNames = new HashSet <string>(cloneSource.ProxyAssemblyNames);
            TypeProxies        = new Dictionary <TypeIdentifier, ProxyInfo>(cloneSource.TypeProxies, TypeIdentifier.Comparer);

            DirectProxiesByTypeName = new Dictionary <string, HashSet <ProxyInfo> >();
            foreach (var kvp in cloneSource.DirectProxiesByTypeName)
            {
                DirectProxiesByTypeName.Add(kvp.Key, new HashSet <ProxyInfo>(kvp.Value));
            }

            ProxiesByName          = cloneSource.ProxiesByName.Clone();
            TypeAssignabilityCache = cloneSource.TypeAssignabilityCache.Clone();
            TypeInformation        = cloneSource.TypeInformation.Clone();
            ModuleInformation      = cloneSource.ModuleInformation.Clone();

            MakeTypeInfo = _MakeTypeInfo;
        }
 public virtual IAstEmitter MakeAstEmitter(JSILIdentifier jsil, TypeSystem typeSystem, TypeInfoProvider typeInfoProvider, Configuration configuration)
 {
     return(new DefinitelyTypedEmptyAstEmitter(
                Formatter, jsil, typeSystem, typeInfoProvider, configuration
                ));
 }