コード例 #1
0
ファイル: Configuration.cs プロジェクト: VictorHenriquez/JSIL
        public virtual void MergeInto(Configuration result)
        {
            if (ApplyDefaults.HasValue)
            {
                result.ApplyDefaults = ApplyDefaults;
            }
            if (IncludeDependencies.HasValue)
            {
                result.IncludeDependencies = IncludeDependencies;
            }
            if (UseSymbols.HasValue)
            {
                result.UseSymbols = UseSymbols;
            }
            if (UseThreads.HasValue)
            {
                result.UseThreads = UseThreads;
            }
            if (UseDefaultProxies.HasValue)
            {
                result.UseDefaultProxies = UseDefaultProxies;
            }

            if (FrameworkVersion.HasValue)
            {
                result.FrameworkVersion = FrameworkVersion;
            }
            if (GenerateSkeletonsForStubbedAssemblies.HasValue)
            {
                result.GenerateSkeletonsForStubbedAssemblies = GenerateSkeletonsForStubbedAssemblies;
            }
            if (GenerateContentManifest.HasValue)
            {
                result.GenerateContentManifest = GenerateContentManifest;
            }
            if (RunBugChecks.HasValue)
            {
                result.RunBugChecks = RunBugChecks;
            }
            if (TuneGarbageCollection.HasValue)
            {
                result.TuneGarbageCollection = TuneGarbageCollection;
            }

            if (FilenameEscapeRegex != null)
            {
                result.FilenameEscapeRegex = FilenameEscapeRegex;
            }
            if (AssemblyCollectionName != null)
            {
                result.AssemblyCollectionName = AssemblyCollectionName;
            }
            if (EmitterFactoryName != null)
            {
                result.EmitterFactoryName = EmitterFactoryName;
            }

            Assemblies.MergeInto(result.Assemblies);
            CodeGenerator.MergeInto(result.CodeGenerator);
        }
コード例 #2
0
ファイル: Configuration.cs プロジェクト: carcer/JSIL
        protected void MergeInto(Configuration result)
        {
            if (ApplyDefaults.HasValue)
            {
                result.ApplyDefaults = ApplyDefaults;
            }
            if (IncludeDependencies.HasValue)
            {
                result.IncludeDependencies = IncludeDependencies;
            }
            if (UseSymbols.HasValue)
            {
                result.UseSymbols = UseSymbols;
            }
            if (UseThreads.HasValue)
            {
                result.UseThreads = UseThreads;
            }
            if (UseDefaultProxies.HasValue)
            {
                result.UseDefaultProxies = UseDefaultProxies;
            }

            if (FrameworkVersion.HasValue)
            {
                result.FrameworkVersion = FrameworkVersion;
            }
            if (GenerateSkeletonsForStubbedAssemblies.HasValue)
            {
                result.GenerateSkeletonsForStubbedAssemblies = GenerateSkeletonsForStubbedAssemblies;
            }
            if (GenerateContentManifest.HasValue)
            {
                result.GenerateContentManifest = GenerateContentManifest;
            }
            if (RunBugChecks.HasValue)
            {
                result.RunBugChecks = RunBugChecks;
            }

            Assemblies.MergeInto(result.Assemblies);
            Optimizer.MergeInto(result.Optimizer);
        }
コード例 #3
0
ファイル: Configuration.cs プロジェクト: wdstest/SharpJS
        public virtual void MergeInto(Configuration result)
        {
            if (ApplyDefaults.HasValue)
            {
                result.ApplyDefaults = ApplyDefaults;
            }
            if (IncludeDependencies.HasValue)
            {
                result.IncludeDependencies = IncludeDependencies;
            }
            if (UseSymbols.HasValue)
            {
                result.UseSymbols = UseSymbols;
            }
            if (UseThreads.HasValue)
            {
                result.UseThreads = UseThreads;
            }
            if (UseDefaultProxies.HasValue)
            {
                result.UseDefaultProxies = UseDefaultProxies;
            }

            if (FrameworkVersion.HasValue)
            {
                result.FrameworkVersion = FrameworkVersion;
            }
            if (GenerateSkeletonsForStubbedAssemblies.HasValue)
            {
                result.GenerateSkeletonsForStubbedAssemblies = GenerateSkeletonsForStubbedAssemblies;
            }
            if (GenerateContentManifest.HasValue)
            {
                result.GenerateContentManifest = GenerateContentManifest;
            }
            if (SkipManifestCreation.HasValue)
            {
                result.SkipManifestCreation = SkipManifestCreation;
            }
            if (RunBugChecks.HasValue)
            {
                result.RunBugChecks = RunBugChecks;
            }
            if (TuneGarbageCollection.HasValue)
            {
                result.TuneGarbageCollection = TuneGarbageCollection;
            }

            if (FilenameEscapeRegex != null)
            {
                result.FilenameEscapeRegex = FilenameEscapeRegex;
            }
            if (AssemblyCollectionName != null)
            {
                result.AssemblyCollectionName = AssemblyCollectionName;
            }

            if (BuildSourceMap != null)
            {
                result.BuildSourceMap = BuildSourceMap;
            }

            if (InlineAssemblyReferences != null)
            {
                result.InlineAssemblyReferences = InlineAssemblyReferences;
            }

            foreach (var kvp in FilenameReplaceRegexes)
            {
                result.FilenameReplaceRegexes[kvp.Key] = kvp.Value;
            }

            foreach (var emitterFactory in EmitterFactories)
            {
                result.EmitterFactories.Add(emitterFactory);
            }

            Assemblies.MergeInto(result.Assemblies);
            CodeGenerator.MergeInto(result.CodeGenerator);
        }