示例#1
0
        private ModuleDefaultsParser GetParser()
        {
            var depSectionItemParser  = new DepSectionItemParser();
            var depsSectionParser     = new DepsSectionParser(depSectionItemParser);
            var installSectionParser  = new InstallSectionParser();
            var buildSectionParser    = new BuildSectionParser();
            var hooksSectionParser    = new HooksSectionParser();
            var settingsSectionParser = new SettingsSectionParser();

            var moduleDefaultsParser = new ModuleDefaultsParser(hooksSectionParser, depsSectionParser, settingsSectionParser, buildSectionParser, installSectionParser);

            return(moduleDefaultsParser);
        }
示例#2
0
        private static ModuleYamlParser Create()
        {
            var configSectionTitleParser = new ConfigSectionTitleParser();
            var depLineParser            = new DepSectionItemParser();
            var depsSectionParser        = new DepsSectionParser(depLineParser);
            var installSectionParser     = new InstallSectionParser();
            var buildSectionParser       = new BuildSectionParser();
            var configSectionParser      = new ConfigSectionParser(configSectionTitleParser, installSectionParser, depsSectionParser, buildSectionParser);

            var hooksSectionParser    = new HooksSectionParser();
            var settingsSectionParser = new SettingsSectionParser();
            var moduleDefaultsParser  = new ModuleDefaultsParser(hooksSectionParser, depsSectionParser, settingsSectionParser, buildSectionParser, installSectionParser);

            var depsSectionMerger    = new DepsSectionMerger();
            var installSectionMerger = new InstallSectionMerger();

            return(new ModuleYamlParser(
                       moduleDefaultsParser,
                       configSectionParser,
                       installSectionMerger,
                       depsSectionMerger
                       ));
        }