Exemple #1
0
        public ResMemberCategoryGroupBuilder FindMemberCategoryGroup(ResMemberCategory category)
        {
            ResMemberCategoryGroupBuilder result = null;

            _categoryGroups.TryGetValue(category.Flavor, out result);
            return(result);
        }
Exemple #2
0
        public ResMemberCategoryGroupBuilder GetMemberCategoryGroup(ResMemberCategory category)
        {
            ResMemberCategoryGroupBuilder result = null;

            if (_categoryGroups.TryGetValue(category.Flavor, out result))
            {
                return(result);
            }

            AssertBuildable();
            result = new ResMemberCategoryGroupBuilder(_facet, this, category);
            _categoryGroups.Add(category.Flavor, result);
            return(result);
        }
Exemple #3
0
        public ResMemberLineDeclBuilder(
            ResMemberCategoryGroupBuilder parent,
            ILazyFactory lazy,
            Identifier name,
            ResLexicalID originalLexicalID,
            ResMemberCategory category)
            : base(lazy)
        {
            parent.AddAction(NewBuilderPhase.Seal, () => DoneBuilding());
            AddDependency(parent);
            DoneBuilding(NewBuilderPhase.Dependencies);

            var resMemberLineDecl = new ResMemberLineDecl(
                name,
                originalLexicalID,
                category,
                NewLazy(() => _concretenessMode),
                NewLazy(() => _declMode),
                NewLazy(() => _tags.ToArray()),
                NewLazy(() => _directDecl),
                NewLazy(() => _inheritedDecls.ToArray()));

            SetValue(resMemberLineDecl);
        }