411 references to Output
System.CodeDom (411)
Microsoft\VisualBasic\VBCodeGenerator.cs (325)
290
Indentation indentObj = new Indentation((ExposedTabStringIndentedTextWriter)
Output
, Indent + 1);
399
Output
.Write(":=");
401
((ICodeGenerator)this).GenerateCodeFromExpression(arg.Value, ((ExposedTabStringIndentedTextWriter)
Output
).InnerWriter, Options);
422
Output
.Write(", ");
426
Output
.Write(' ');
432
Output
.Write(prefix);
437
Output
.Write(GetTypeOutput(current.AttributeType));
439
Output
.Write('(');
450
Output
.Write(", ");
456
Output
.Write(')');
459
Output
.Write(' ');
464
Output
.WriteLine();
478
Output
.Write("ByVal ");
482
Output
.Write("ByRef ");
489
Output
.Write("CType(Nothing, " + GetTypeOutput(e.Type) + ")");
503
Output
.Write("");
511
Output
.Write("Shared ");
515
Output
.Write("Const ");
518
Output
.Write("");
528
Output
.Write("Friend ");
531
Output
.Write("Friend ");
534
Output
.Write("Protected ");
537
Output
.Write("Protected Friend ");
540
Output
.Write("Private ");
543
Output
.Write("Public ");
553
Output
.Write("Shadows ");
563
Output
.Write("MustOverride ");
566
Output
.Write("");
574
Output
.Write("Shared ");
578
Output
.Write("Overrides ");
581
Output
.Write("Private ");
589
Output
.Write("Overridable ");
604
Output
.Write("<>");
607
Output
.Write("Is");
610
Output
.Write("OrElse");
613
Output
.Write("AndAlso");
616
Output
.Write('=');
619
Output
.Write("Mod");
622
Output
.Write("Or");
625
Output
.Write("And");
635
Output
.Write("(Not (");
637
Output
.Write(") Is ");
638
Output
.Write(NullToken);
639
Output
.Write(')');
673
Output
.Write(CreateEscapedIdentifier(ident));
678
Output
.Write(GetTypeOutputWithoutArrayPostFix(typeRef));
685
Output
.Write("Shadows ");
692
Output
.Write("Partial ");
699
Output
.Write("Public ");
702
Output
.Write("Private ");
706
Output
.Write("Protected ");
711
Output
.Write("Friend ");
714
Output
.Write("Protected Friend ");
720
Output
.Write("Structure ");
724
Output
.Write("Enum ");
735
Output
.Write("Module ");
741
Output
.Write("NotInheritable ");
745
Output
.Write("MustInherit ");
747
Output
.Write("Class ");
751
Output
.Write("Interface ");
764
Output
.Write(" As ");
796
Output
.Write(GetArrayPostfix(typeRef));
803
Output
.Write("Do While ");
805
Output
.WriteLine();
810
Output
.WriteLine("Loop");
817
Output
.Write("Global.Microsoft.VisualBasic.ChrW(" + ((IConvertible)e.Value).ToInt32(CultureInfo.InvariantCulture).ToString(CultureInfo.InvariantCulture) + ")");
821
Output
.Write("CSByte(");
822
Output
.Write(((sbyte)e.Value).ToString(CultureInfo.InvariantCulture));
823
Output
.Write(')');
827
Output
.Write(((ushort)e.Value).ToString(CultureInfo.InvariantCulture));
828
Output
.Write("US");
832
Output
.Write(((uint)e.Value).ToString(CultureInfo.InvariantCulture));
833
Output
.Write("UI");
837
Output
.Write(((ulong)e.Value).ToString(CultureInfo.InvariantCulture));
838
Output
.Write("UL");
848
Output
.Write("Throw");
851
Output
.Write(' ');
854
Output
.WriteLine();
860
Output
.Write("New ");
866
Output
.Write(typeName);
874
Output
.Write("()");
877
Output
.Write(" {");
881
Output
.Write('}');
890
Output
.Write(typeName);
891
Output
.Write('(');
896
Output
.Write(typeName.AsSpan(0, index + 1));
905
Output
.Write('(');
907
Output
.Write(") - 1");
911
Output
.Write(e.Size - 1);
916
Output
.Write(')');
921
Output
.Write(typeName.AsSpan(index + 1));
927
Output
.Write(" {}");
933
Output
.Write("MyBase");
938
Output
.Write("CType(");
940
Output
.Write(',');
943
Output
.Write(')');
948
Output
.Write("AddressOf ");
950
Output
.Write('.');
959
Output
.Write('.');
969
Output
.Write("Single.NaN");
973
Output
.Write("Single.NegativeInfinity");
977
Output
.Write("Single.PositiveInfinity");
981
Output
.Write(s.ToString(CultureInfo.InvariantCulture));
982
Output
.Write('!');
990
Output
.Write("Double.NaN");
994
Output
.Write("Double.NegativeInfinity");
998
Output
.Write("Double.PositiveInfinity");
1002
Output
.Write(d.ToString("R", CultureInfo.InvariantCulture));
1004
Output
.Write('R');
1010
Output
.Write(d.ToString(CultureInfo.InvariantCulture));
1011
Output
.Write('D');
1031
Output
.Write(".Item");
1034
Output
.Write('(');
1044
Output
.Write(", ");
1048
Output
.Write(')');
1054
Output
.Write('(');
1064
Output
.Write(", ");
1068
Output
.Write(')');
1073
Output
.Write(e.Value);
1082
Output
.Write('(');
1084
Output
.Write(')');
1093
Output
.Write('.');
1094
Output
.Write(e.MethodName);
1103
Output
.Write(GetTypeArgumentsOutput(e.TypeArguments));
1113
Output
.Write('.');
1116
Output
.Write(e.EventName + "Event");
1120
Output
.Write(e.EventName);
1137
Output
.Write('.');
1149
Output
.Write("RaiseEvent ");
1161
Output
.Write('(');
1163
Output
.Write(')');
1169
Output
.Write("New ");
1172
Output
.Write('(');
1174
Output
.Write(')');
1189
Output
.Write("value");
1194
Output
.Write("Me");
1200
Output
.WriteLine();
1234
Output
.Write(commentLineStart);
1244
Output
.Write(' ');
1249
Output
.Write(value[i]);
1255
Output
.Write('\n');
1258
((ExposedTabStringIndentedTextWriter)
Output
).InternalOutputTabs();
1259
Output
.Write(commentLineStart);
1264
((ExposedTabStringIndentedTextWriter)
Output
).InternalOutputTabs();
1265
Output
.Write(commentLineStart);
1270
Output
.Write(commentLineStart);
1274
Output
.WriteLine();
1281
Output
.Write("Return ");
1283
Output
.WriteLine();
1287
Output
.WriteLine("Return");
1293
Output
.Write("If ");
1295
Output
.WriteLine(" Then");
1303
Output
.Write("Else");
1304
Output
.WriteLine();
1309
Output
.WriteLine("End If");
1314
Output
.WriteLine("Try ");
1321
Output
.Write("Catch ");
1323
Output
.WriteLine();
1332
Output
.WriteLine("Finally");
1337
Output
.WriteLine("End Try");
1343
Output
.Write(" = ");
1345
Output
.WriteLine();
1350
Output
.Write("AddHandler ");
1352
Output
.Write(", ");
1354
Output
.WriteLine();
1359
Output
.Write("RemoveHandler ");
1361
Output
.Write(", ");
1363
Output
.WriteLine();
1368
Output
.WriteLine(e.Value);
1373
Output
.Write("goto ");
1374
Output
.WriteLine(e.Label);
1380
Output
.Write(e.Label);
1381
Output
.WriteLine(':');
1393
Output
.Write("Dim ");
1403
Output
.Write('(');
1407
Output
.Write('(');
1409
Output
.Write(") - 1");
1413
Output
.Write(eAsArrayCreate.Size - 1);
1416
Output
.Write(')');
1421
Output
.Write(" As ");
1432
Output
.Write(" = ");
1436
Output
.WriteLine();
1440
Output
.WriteLine();
1441
Output
.Write("#ExternalSource(\"");
1442
Output
.Write(e.FileName);
1443
Output
.Write("\",");
1444
Output
.Write(e.LineNumber);
1445
Output
.WriteLine(')');
1450
Output
.WriteLine();
1451
Output
.WriteLine("#End ExternalSource");
1472
Output
.Write("Event ");
1477
Output
.Write(" Implements ");
1487
Output
.Write(" , ");
1490
Output
.Write('.');
1496
Output
.Write(" Implements ");
1498
Output
.Write('.');
1502
Output
.WriteLine();
1519
Output
.Write(" = ");
1522
Output
.WriteLine();
1537
Output
.Write("WithEvents ");
1543
Output
.Write(" = ");
1546
Output
.WriteLine();
1576
Output
.Write(e.Text);
1604
Output
.Write("Overloads ");
1622
Output
.Write("Sub ");
1626
Output
.Write("Function ");
1633
Output
.Write('(');
1635
Output
.Write(')');
1639
Output
.Write(" As ");
1650
Output
.Write(" Implements ");
1660
Output
.Write(" , ");
1663
Output
.Write('.');
1669
Output
.Write(" Implements ");
1671
Output
.Write('.');
1674
Output
.WriteLine();
1685
Output
.WriteLine("End Sub");
1689
Output
.WriteLine("End Function");
1703
Output
.WriteLine("Public Shared Sub Main()");
1709
Output
.WriteLine("End Sub");
1757
Output
.Write("Overloads ");
1770
Output
.Write("Default ");
1776
Output
.Write("ReadOnly ");
1781
Output
.Write("WriteOnly ");
1783
Output
.Write("Property ");
1785
Output
.Write('(');
1790
Output
.Write(')');
1791
Output
.Write(" As ");
1797
Output
.Write(" Implements ");
1807
Output
.Write(" , ");
1810
Output
.Write('.');
1816
Output
.Write(" Implements ");
1818
Output
.Write('.');
1822
Output
.WriteLine();
1830
Output
.WriteLine("Get");
1839
Output
.WriteLine("End Get");
1844
Output
.WriteLine("Set");
1850
Output
.WriteLine("End Set");
1854
Output
.WriteLine("End Property");
1865
Output
.Write('.');
1866
Output
.Write(e.PropertyName);
1884
Output
.Write("Sub New(");
1886
Output
.WriteLine(')');
1894
Output
.Write("Me.New(");
1896
Output
.Write(')');
1897
Output
.WriteLine();
1901
Output
.Write("MyBase.New(");
1903
Output
.Write(')');
1904
Output
.WriteLine();
1909
Output
.WriteLine("MyBase.New");
1914
Output
.WriteLine("End Sub");
1926
Output
.WriteLine("Shared Sub New()");
1930
Output
.WriteLine("End Sub");
1935
Output
.Write("GetType(");
1936
Output
.Write(GetTypeOutput(e.Type));
1937
Output
.Write(')');
1952
Output
.Write("Public ");
1961
Output
.Write("Delegate Function ");
1963
Output
.Write("Delegate Sub ");
1965
Output
.Write('(');
1967
Output
.Write(')');
1970
Output
.Write(" As ");
1974
Output
.WriteLine();
1988
Output
.Write(" As ");
1992
Output
.WriteLine();
2024
Output
.WriteLine();
2025
Output
.Write("Inherits ");
2030
Output
.WriteLine();
2031
Output
.Write("Implements ");
2036
Output
.Write(", ");
2041
Output
.WriteLine();
2052
Output
.Write("(Of ");
2062
Output
.Write(", ");
2064
Output
.Write(typeParameters[i].Name);
2068
Output
.Write(')');
2088
Output
.Write(" As ");
2091
Output
.Write(" {");
2103
Output
.Write(", ");
2105
Output
.Write(GetTypeOutput(typeRef));
2112
Output
.Write(", ");
2115
Output
.Write("New");
2120
Output
.Write('}');
2153
Output
.WriteLine(ending);
2163
Output
.WriteLine();
2206
Output
.WriteLine("'------------------------------------------------------------------------------");
2207
Output
.Write("' <");
2208
Output
.WriteLine(SR.AutoGen_Comment_Line1);
2209
Output
.Write("' ");
2210
Output
.WriteLine(SR.AutoGen_Comment_Line2);
2211
Output
.WriteLine("'");
2212
Output
.Write("' ");
2213
Output
.WriteLine(SR.AutoGen_Comment_Line4);
2214
Output
.Write("' ");
2215
Output
.WriteLine(SR.AutoGen_Comment_Line5);
2216
Output
.Write("' </");
2217
Output
.WriteLine(SR.AutoGen_Comment_Line1);
2218
Output
.WriteLine("'------------------------------------------------------------------------------");
2219
Output
.WriteLine();
2222
Output
.WriteLine("Option Strict Off");
2224
Output
.WriteLine("Option Strict On");
2227
Output
.WriteLine("Option Explicit Off");
2229
Output
.WriteLine("Option Explicit On");
2231
Output
.WriteLine();
2256
Output
.Write("Imports ");
2258
Output
.WriteLine();
2289
Output
.Write("#ExternalChecksum(\"");
2290
Output
.Write(checksumPragma.FileName);
2291
Output
.Write("\",\"");
2292
Output
.Write(checksumPragma.ChecksumAlgorithmId.ToString("B", CultureInfo.InvariantCulture));
2293
Output
.Write("\",\"");
2298
Output
.Write(b.ToString("X2"));
2301
Output
.WriteLine("\")");
2313
Output
.Write("#Region \"");
2314
Output
.Write(regionDirective.RegionText);
2315
Output
.WriteLine("\"");
2319
Output
.WriteLine("#End Region");
2327
Output
.Write("Namespace ");
2333
Output
.Write('.');
2336
Output
.WriteLine();
2346
Output
.WriteLine("End Namespace");
2352
Output
.Write("Imports ");
2354
Output
.WriteLine();
2359
Output
.Write('<');
2364
Output
.Write('>');
2587
Output
.Write(st);
2588
Output
.WriteLine(" _");
System\CodeDom\Compiler\CodeGenerator.cs (86)
111
Output
.WriteLine();
184
Output
.WriteLine();
208
Output
.WriteLine();
246
Output
.WriteLine();
449
Output
.WriteLine();
484
Output
.WriteLine();
634
Output
.WriteLine();
671
Output
.WriteLine();
710
Output
.WriteLine();
727
Output
.WriteLine(e.Value);
749
Output
.WriteLine();
789
Output
.WriteLine();
815
Output
.WriteLine();
853
Output
.WriteLine();
1013
Output
.Write(current.Name);
1014
Output
.Write('(');
1025
Output
.Write(", ");
1031
Output
.Write(')');
1046
Output
.Write('=');
1058
Output
.Write("out ");
1061
Output
.Write("ref ");
1071
Output
.Write("new ");
1080
Output
.Write("static ");
1083
Output
.Write("const ");
1095
Output
.Write("internal ");
1098
Output
.Write("internal "); /*FamANDAssem*/
1101
Output
.Write("protected ");
1104
Output
.Write("protected internal ");
1107
Output
.Write("private ");
1110
Output
.Write("public ");
1120
Output
.Write("new ");
1127
Output
.Write("abstract ");
1130
Output
.Write("");
1133
Output
.Write("static ");
1136
Output
.Write("override ");
1143
Output
.Write("virtual ");
1161
Output
.Write("public ");
1164
Output
.Write("private ");
1170
Output
.Write("struct ");
1174
Output
.Write("enum ");
1183
Output
.Write("sealed ");
1187
Output
.Write("abstract ");
1189
Output
.Write("class ");
1192
Output
.Write("interface ");
1201
Output
.Write(' ');
1205
protected virtual void OutputIdentifier(string ident) =>
Output
.Write(ident);
1227
Output
.Write(", ");
1239
Output
.Write('+');
1242
Output
.Write('-');
1245
Output
.Write('*');
1248
Output
.Write('/');
1251
Output
.Write('%');
1254
Output
.Write('=');
1257
Output
.Write("!=");
1260
Output
.Write("==");
1263
Output
.Write("==");
1266
Output
.Write('|');
1269
Output
.Write('&');
1272
Output
.Write("||");
1275
Output
.Write("&&");
1278
Output
.Write('<');
1281
Output
.Write("<=");
1284
Output
.Write('>');
1287
Output
.Write(">=");
1313
Output
.Write(", ");
1338
Output
.Write('(');
1341
Output
.Write(' ');
1359
Output
.Write(' ');
1362
Output
.Write(')');
1370
protected virtual void ContinueOnNewLine(string st) =>
Output
.WriteLine(st);
1396
Output
.Write(' ');
1423
Output
.Write(NullToken);
1427
Output
.Write(QuoteSnippetString((string)e.Value));
1431
Output
.Write("'" + e.Value.ToString() + "'");
1435
Output
.Write(((byte)e.Value).ToString(CultureInfo.InvariantCulture));
1439
Output
.Write(((short)e.Value).ToString(CultureInfo.InvariantCulture));
1443
Output
.Write(((int)e.Value).ToString(CultureInfo.InvariantCulture));
1447
Output
.Write(((long)e.Value).ToString(CultureInfo.InvariantCulture));
1465
Output
.Write("true");
1469
Output
.Write("false");
1478
protected virtual void GenerateSingleFloatValue(float s) =>
Output
.Write(s.ToString("R", CultureInfo.InvariantCulture));
1480
protected virtual void GenerateDoubleValue(double d) =>
Output
.Write(d.ToString("R", CultureInfo.InvariantCulture));
1482
protected virtual void GenerateDecimalValue(decimal d) =>
Output
.Write(d.ToString(CultureInfo.InvariantCulture));
1511
Output
.Write("typeof(");
1513
Output
.Write(')');
1563
Output
.WriteLine(e.Value);