void WriteTypeName(DmdType type, KeywordType keywordType) { switch (keywordType) { case KeywordType.Void: OutputWrite("void", BoxedTextColor.Keyword); return; case KeywordType.Boolean: OutputWrite("bool", BoxedTextColor.Keyword); return; case KeywordType.Char: OutputWrite("char", BoxedTextColor.Keyword); return; case KeywordType.SByte: OutputWrite("sbyte", BoxedTextColor.Keyword); return; case KeywordType.Byte: OutputWrite("byte", BoxedTextColor.Keyword); return; case KeywordType.Int16: OutputWrite("short", BoxedTextColor.Keyword); return; case KeywordType.UInt16: OutputWrite("ushort", BoxedTextColor.Keyword); return; case KeywordType.Int32: OutputWrite("int", BoxedTextColor.Keyword); return; case KeywordType.UInt32: OutputWrite("uint", BoxedTextColor.Keyword); return; case KeywordType.Int64: OutputWrite("long", BoxedTextColor.Keyword); return; case KeywordType.UInt64: OutputWrite("ulong", BoxedTextColor.Keyword); return; case KeywordType.Single: OutputWrite("float", BoxedTextColor.Keyword); return; case KeywordType.Double: OutputWrite("double", BoxedTextColor.Keyword); return; case KeywordType.Object: OutputWrite("object", BoxedTextColor.Keyword); return; case KeywordType.Decimal: OutputWrite("decimal", BoxedTextColor.Keyword); return; case KeywordType.String: OutputWrite("string", BoxedTextColor.Keyword); return; case KeywordType.NoKeyword: break; default: throw new InvalidOperationException(); } WriteIdentifier(TypeFormatterUtils.RemoveGenericTick(type.MetadataName), TypeFormatterUtils.GetColor(type, canBeModule: false)); new CSharpPrimitiveValueFormatter(output, options.ToValueFormatterOptions(), cultureInfo).WriteTokenComment(type.MetadataToken); }
void WriteTypeName(DmdType type, KeywordType keywordType) { switch (keywordType) { case KeywordType.Boolean: OutputWrite("Boolean", DbgTextColor.Keyword); return; case KeywordType.Byte: OutputWrite("Byte", DbgTextColor.Keyword); return; case KeywordType.Char: OutputWrite("Char", DbgTextColor.Keyword); return; case KeywordType.Date: OutputWrite("Date", DbgTextColor.Keyword); return; case KeywordType.Decimal: OutputWrite("Decimal", DbgTextColor.Keyword); return; case KeywordType.Double: OutputWrite("Double", DbgTextColor.Keyword); return; case KeywordType.Integer: OutputWrite("Integer", DbgTextColor.Keyword); return; case KeywordType.Long: OutputWrite("Long", DbgTextColor.Keyword); return; case KeywordType.Object: OutputWrite("Object", DbgTextColor.Keyword); return; case KeywordType.SByte: OutputWrite("SByte", DbgTextColor.Keyword); return; case KeywordType.Short: OutputWrite("Short", DbgTextColor.Keyword); return; case KeywordType.Single: OutputWrite("Single", DbgTextColor.Keyword); return; case KeywordType.String: OutputWrite("String", DbgTextColor.Keyword); return; case KeywordType.UInteger: OutputWrite("UInteger", DbgTextColor.Keyword); return; case KeywordType.ULong: OutputWrite("ULong", DbgTextColor.Keyword); return; case KeywordType.UShort: OutputWrite("UShort", DbgTextColor.Keyword); return; case KeywordType.NoKeyword: break; default: throw new InvalidOperationException(); } WriteIdentifier(TypeFormatterUtils.RemoveGenericTick(type.MetadataName), TypeFormatterUtils.GetColor(type, canBeModule: true)); new VisualBasicPrimitiveValueFormatter(output, options.ToValueFormatterOptions(), cultureInfo).WriteTokenComment(type.MetadataToken); }