예제 #1
0
        protected virtual void BuildIfNoWrappers(RoslynCodeBuilder roslynCodeBuilder)
        {
            if (TheCodeBuilder != null)
            {
                TheCodeBuilder.Build(this.WrapperSymbol, roslynCodeBuilder);
                return;
            }

            if (DefaultCodeBuilder != null)
            {
                DefaultCodeBuilder.Build(this.WrapperSymbol, roslynCodeBuilder);
            }
        }
예제 #2
0
        internal void Build(RoslynCodeBuilder roslynCodeBuilder)
        {
            if (this.WrappedMembers.IsNullOrEmpty())
            {
                if (TheCodeBuilder != null)
                {
                    TheCodeBuilder.Build(this.WrapperSymbol, roslynCodeBuilder);
                    return;
                }

                if (DefaultCodeBuilder != null)
                {
                    DefaultCodeBuilder.Build(this.WrapperSymbol, roslynCodeBuilder);
                }

                return;
            }

            BuildImpl(this.WrapperSymbol, roslynCodeBuilder);
        }