コード例 #1
0
ファイル: ResPipelineDecl.cs プロジェクト: kzyg/spark
        public ResMemberNameGroupBuilder FindMemberNameGroup(Identifier name)
        {
            ResMemberNameGroupBuilder result = null;

            _memberNameGroups.TryGetValue(name, out result);
            return(result);
        }
コード例 #2
0
ファイル: ResMemberDecl.cs プロジェクト: kzyg/spark
        public ResMemberCategoryGroupBuilder(
            IResContainerFacetBuilder facetBuilder,
            ResMemberNameGroupBuilder nameGroupBuilder,
            ResMemberCategory category)
            : base(nameGroupBuilder.LazyFactory)
        {
            nameGroupBuilder.AddAction(NewBuilderPhase.Seal, () => DoneBuilding());
            AddDependency(nameGroupBuilder);
            DoneBuilding(NewBuilderPhase.Dependencies);

            _facetBuilder     = facetBuilder;
            _nameGroupBuilder = nameGroupBuilder;
            _category         = category;

            var resMemberCategoryGroup = new ResMemberCategoryGroup(
                Name,
                Flavor,
                NewLazy(() => (from lineBuilder in _lines select lineBuilder.Value).Eager()));

            SetValue(resMemberCategoryGroup);
        }