示例#1
0
 public void AddText(SourceCodeTextBuilder builder)
 {
     foreach (ISourceCodeBuilderStep step in Steps)
     {
         step.AddText(builder);
     }
 }
示例#2
0
 public void AddText(SourceCodeTextBuilder builder)
 {
     if (!string.IsNullOrWhiteSpace(EmptyBodyText))
     {
         builder.Append(EmptyBodyText);
     }
 }
 public void AddText(SourceCodeTextBuilder builder)
 {
     switch (InheritanceModifier)
     {
     case InterfaceMemberInheritanceModifier.New:
         builder.Append(InheritanceModifierText.NewText);
         break;
     }
 }
示例#4
0
 public void AddText(SourceCodeTextBuilder builder)
 {
     switch (Modifier)
     {
         case TypeVisibilityModifier.Public:
             builder.Append(VisibilityText.PublicText);
             break;
         case TypeVisibilityModifier.Internal:
             builder.Append(VisibilityText.InternalText);
             break;
     }
 }
示例#5
0
        public void AddText(SourceCodeTextBuilder builder)
        {
            switch (Modifier)
            {
            case TypeVisibilityModifier.Public:
                builder.Append(VisibilityText.PublicText);
                break;

            case TypeVisibilityModifier.Internal:
                builder.Append(VisibilityText.InternalText);
                break;
            }
        }
        public void AddText(SourceCodeTextBuilder builder)
        {
            switch (Modifier)
            {
            case StaticClassAccessorVisibilityModifier.Internal:
                builder.Append(VisibilityText.InternalText);
                break;

            case StaticClassAccessorVisibilityModifier.Private:
                builder.Append(VisibilityText.PrivateText);
                break;
            }
        }
        public void AddText(SourceCodeTextBuilder builder)
        {
            switch (Modifier)
            {
            case StaticClassFieldModifier.ReadOnly:
                builder.Append("readonly");
                break;

            case StaticClassFieldModifier.Volatile:
                builder.Append("volatile");
                break;
            }
        }
        public void AddText(SourceCodeTextBuilder builder)
        {
            switch (OrderByType)
            {
            case QueryOrderByType.Ascending:
                builder.Append("ascending");
                break;

            case QueryOrderByType.Descending:
                builder.Append("descending");
                break;
            }
        }
        public void AddText(SourceCodeTextBuilder builder)
        {
            switch (OperatorType)
            {
            case ConversionOperatorType.Explicit:
                builder.Append("explicit");
                break;

            case ConversionOperatorType.Implicit:
                builder.Append("implicit");
                break;
            }
        }
        public void AddText(SourceCodeTextBuilder builder)
        {
            switch (Modifier)
            {
            case AbstractAccessorVisibilityModifier.Internal:
                builder.Append(VisibilityText.InternalText);
                break;

            case AbstractAccessorVisibilityModifier.Protected:
                builder.Append(VisibilityText.ProtectedText);
                break;
            }
        }
        public void AddText(SourceCodeTextBuilder builder)
        {
            switch (InheritanceModifier)
            {
            case SealedClassIndexerInheritanceModifier.New:
                builder.Append(InheritanceModifierText.NewText);
                break;

            case SealedClassIndexerInheritanceModifier.Override:
                builder.Append(InheritanceModifierText.OverrideText);
                break;
            }
        }
        public void AddText(SourceCodeTextBuilder builder)
        {
            switch (Modifier)
            {
            case ParameterModifier.Out:
                builder.Append("out");
                break;

            case ParameterModifier.Params:
                builder.Append("params");
                break;

            case ParameterModifier.Ref:
                builder.Append("ref");
                break;
            }
        }
示例#13
0
        public void AddText(SourceCodeTextBuilder builder)
        {
            switch (Modifier)
            {
            case ClassMemberVisibilityModifier.Public:
                builder.Append(VisibilityText.PublicText);
                break;

            case ClassMemberVisibilityModifier.Internal:
                builder.Append(VisibilityText.InternalText);
                break;

            case ClassMemberVisibilityModifier.Protected:
                builder.Append(VisibilityText.ProtectedText);
                break;

            case ClassMemberVisibilityModifier.Private:
                builder.Append(VisibilityText.PrivateText);
                break;
            }
        }
        public void AddText(SourceCodeTextBuilder builder)
        {
            switch (InheritanceModifier)
            {
            case ClassMemberInheritanceModifier.New:
                builder.Append(InheritanceModifierText.NewText);
                break;

            case ClassMemberInheritanceModifier.Override:
                builder.Append(InheritanceModifierText.OverrideText);
                break;

            case ClassMemberInheritanceModifier.Static:
                builder.Append(InheritanceModifierText.StaticText);
                break;

            case ClassMemberInheritanceModifier.Virtual:
                builder.Append(InheritanceModifierText.VirtualText);
                break;
            }
        }
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append("default");
 }
示例#16
0
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Indent--;
 }
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append("namespace");
 }
示例#18
0
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append(BuiltInType.ToString().ToLower());
 }
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append("return");
 }
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append("finally");
 }
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append(Constant.ToString());
 }
示例#22
0
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append("delegate");
 }
示例#23
0
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append(operatorTypes[OperatorType]);
 }
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append(Constant);
 }
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append("operator");
 }
示例#26
0
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append("add");
 }
示例#27
0
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.AppendLine();
 }
示例#28
0
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append("partial");
 }
示例#29
0
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append("enum");
 }
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append("typeof");
 }
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append("select");
 }
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append("abstract");
 }