internal ResFacetDeclBuilder FindOrCreateFacetForBase( IResPipelineRef basePipelineRef) { var result = FindFacetForBase( basePipelineRef); // \todo: Substitution? if (result != null) { return(result); } var newFacetBuilder = new ResFacetDeclBuilder( this.LazyFactory, this, basePipelineRef); _facets.Add(newFacetBuilder); return(newFacetBuilder); }
/* * * public IEnumerable<ResMemberLineDeclBuilder> MemberLines * { * get * { * foreach (var mng in _memberNameGroups.Values) * { * if (mng == null) * continue; * * foreach (var mcg in mng.Categories_Build) * foreach (var ml in mcg.Lines_Build) * yield return ml.Value; * } * } * } * * public IEnumerable<IResMemberDecl> Members * { * get * { * foreach (var ml in MemberLines) * yield return ml.EffectiveDecl; * } * } * * */ /* * public void AddMemberLine(ResMemberDeclLine memberLine) * { * _memberLines.Add(memberLine); * } */ public void AddDirectBase(ResFacetDeclBuilder facet) { _directBaseFacets.Add(facet); }