Пример #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);
        }