15 instantiations of CodeGenerator
dotnet-svcutil-lib (15)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationILGen.cs (10)
147
ilg = new
CodeGenerator
(serializerContractTypeBuilder);
227
ilg = new
CodeGenerator
(serializerContractTypeBuilder);
277
ilg = new
CodeGenerator
(baseSerializerTypeBuilder);
317
ilg = new
CodeGenerator
(typedSerializerTypeBuilder);
354
ilg = new
CodeGenerator
(typedSerializerTypeBuilder);
380
ilg = new
CodeGenerator
(typedSerializerTypeBuilder);
434
ilg = new
CodeGenerator
(serializerContractTypeBuilder);
486
ilg = new
CodeGenerator
(serializerContractTypeBuilder);
505
ilg = new
CodeGenerator
(serializerContractTypeBuilder);
533
ilg = new
CodeGenerator
(serializerContractTypeBuilder);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (5)
86
ilg = new
CodeGenerator
(this.typeBuilder);
362
ilg = new
CodeGenerator
(this.typeBuilder);
559
ilg = new
CodeGenerator
(this.typeBuilder);
619
ilg = new
CodeGenerator
(this.typeBuilder);
955
ilg = new
CodeGenerator
(this.typeBuilder);
195 references to CodeGenerator
dotnet-svcutil-lib (195)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (2)
36
CodeGenerator
.ValidateIdentifiers(codeNamespace);
261
CodeGenerator
.ValidateIdentifiers(codeClass);
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeGenerator.cs (4)
332
CodeGenerator
.AssertHasInterface(varType, typeof(ICollection));
336
CodeGenerator
.InstanceBindingFlags,
338
CodeGenerator
.EmptyTypeArray,
2329
public WhileState(
CodeGenerator
ilg)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeIdentifier.cs (1)
163
if (!
CodeGenerator
.IsValidLanguageIndependentIdentifier(ident))
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapCodeExporter.cs (1)
177
CodeGenerator
.ValidateIdentifiers(codeClass);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SourceInfo.cs (10)
27
CodeGenerator
.InstanceBindingFlags,
38
public readonly
CodeGenerator
ILG;
40
public SourceInfo(string source, string arg, MemberInfo memberInfo, Type type,
CodeGenerator
ilg)
77
if (
CodeGenerator
.IsNullableGenericType(eType))
104
CodeGenerator
.InstanceBindingFlags,
118
if (
CodeGenerator
.IsNullableGenericType(eType))
157
if (
CodeGenerator
.IsNullableGenericType(varType) &&
176
if (
CodeGenerator
.IsNullableGenericType(memberType))
223
CodeGenerator
.InstanceBindingFlags,
225
CodeGenerator
.EmptyTypeArray,
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (1)
639
CodeGenerator
.ValidateIdentifiers(codeClass);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (1)
488
if (!
CodeGenerator
.IsValidLanguageIndependentIdentifier(provider.MethodName))
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (2)
447
CodeGenerator
.ValidateIdentifiers(new CodeTypeReference(typeName));
465
CodeGenerator
.ValidateIdentifiers(ns);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationILGen.cs (45)
35
protected
CodeGenerator
ilg;
158
CodeGenerator
.EmptyTypeArray,
159
CodeGenerator
.EmptyStringArray,
160
CodeGenerator
.PublicOverrideMethodAttributes | MethodAttributes.SpecialName);
169
ConstructorInfo Hashtable_ctor = typeof(Hashtable).GetConstructor(
CodeGenerator
.EmptyTypeArray);
206
CodeGenerator
.InstanceBindingFlags,
233
CodeGenerator
.PublicOverrideMethodAttributes);
268
TypeBuilder baseSerializerTypeBuilder =
CodeGenerator
.CreateTypeBuilder(
273
CodeGenerator
.EmptyTypeArray);
275
ConstructorInfo readerCtor = CreatedTypes[readerClass].GetConstructor(
CodeGenerator
.EmptyTypeArray);
280
CodeGenerator
.EmptyTypeArray,
281
CodeGenerator
.EmptyStringArray,
282
CodeGenerator
.ProtectedOverrideMethodAttributes);
286
ConstructorInfo writerCtor = CreatedTypes[writerClass].GetConstructor(
CodeGenerator
.EmptyTypeArray);
290
CodeGenerator
.EmptyTypeArray,
291
CodeGenerator
.EmptyStringArray,
292
CodeGenerator
.ProtectedOverrideMethodAttributes);
309
TypeBuilder typedSerializerTypeBuilder =
CodeGenerator
.CreateTypeBuilder(
314
CodeGenerator
.EmptyTypeArray
323
CodeGenerator
.PublicOverrideMethodAttributes
336
CodeGenerator
.InstanceBindingFlags,
360
CodeGenerator
.ProtectedOverrideMethodAttributes);
363
CodeGenerator
.InstanceBindingFlags,
386
CodeGenerator
.ProtectedOverrideMethodAttributes);
389
CodeGenerator
.InstanceBindingFlags,
391
CodeGenerator
.EmptyTypeArray,
399
typedSerializerTypeBuilder.DefineDefaultConstructor(
CodeGenerator
.PublicMethodAttributes);
412
CodeGenerator
.InstanceBindingFlags,
420
ConstructorInfo ctor = CreatedTypes[(string)serializers[key]].GetConstructor(
CodeGenerator
.EmptyTypeArray);
440
CodeGenerator
.PublicOverrideMethodAttributes);
459
ConstructorInfo ctor = CreatedTypes[(string)serializers[xmlMappings[i].Key]].GetConstructor(
CodeGenerator
.EmptyTypeArray);
478
TypeBuilder serializerContractTypeBuilder =
CodeGenerator
.CreateTypeBuilder(
483
CodeGenerator
.EmptyTypeArray
496
CodeGenerator
.EmptyTypeArray,
497
CodeGenerator
.EmptyStringArray,
498
CodeGenerator
.PublicOverrideMethodAttributes | MethodAttributes.SpecialName);
500
ConstructorInfo ctor = CreatedTypes[readerType].GetConstructor(
CodeGenerator
.EmptyTypeArray);
515
CodeGenerator
.EmptyTypeArray,
516
CodeGenerator
.EmptyStringArray,
517
CodeGenerator
.PublicOverrideMethodAttributes | MethodAttributes.SpecialName);
519
ctor = CreatedTypes[writerType].GetConstructor(
CodeGenerator
.EmptyTypeArray);
531
ConstructorInfo baseCtor = typeof(XmlSerializerImplementation).GetConstructor(
CodeGenerator
.EmptyTypeArray);
537
CodeGenerator
.EmptyTypeArray,
538
CodeGenerator
.EmptyStringArray,
539
CodeGenerator
.PublicMethodAttributes | MethodAttributes.RTSpecialName | MethodAttributes.SpecialName
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (128)
26
this.typeBuilder =
CodeGenerator
.CreateTypeBuilder(
31
CodeGenerator
.EmptyTypeArray);
66
CodeGenerator
.PublicMethodAttributes);
87
ilg.BeginMethod(typeof(void), "InitCallbacks",
CodeGenerator
.EmptyTypeArray,
CodeGenerator
.EmptyStringArray,
88
CodeGenerator
.ProtectedOverrideMethodAttributes);
97
throw
CodeGenerator
.NotSupported("XmlQualifiedName DefaultValue not supported. Fail in WriteValue()");
113
CodeGenerator
.InstanceBindingFlags,
122
throw
CodeGenerator
.NotSupported("XmlQualifiedName DefaultValue not supported. Fail in WriteValue()");
139
CodeGenerator
.PrivateMethodAttributes,
162
CodeGenerator
.StaticBindingFlags,
174
BindingFlags bindingFlags =
CodeGenerator
.StaticBindingFlags;
177
bindingFlags =
CodeGenerator
.InstanceBindingFlags;
267
CodeGenerator
.InstanceBindingFlags,
284
CodeGenerator
.InstanceBindingFlags,
299
CodeGenerator
.InstanceBindingFlags,
321
CodeGenerator
.InstanceBindingFlags,
323
CodeGenerator
.EmptyTypeArray,
333
CodeGenerator
.InstanceBindingFlags,
368
CodeGenerator
.PublicMethodAttributes
373
CodeGenerator
.InstanceBindingFlags,
375
CodeGenerator
.EmptyTypeArray,
383
CodeGenerator
.InstanceBindingFlags,
385
CodeGenerator
.EmptyTypeArray,
565
CodeGenerator
.PublicMethodAttributes
570
CodeGenerator
.InstanceBindingFlags,
572
CodeGenerator
.EmptyTypeArray,
592
CodeGenerator
.InstanceBindingFlags,
594
CodeGenerator
.EmptyTypeArray,
625
CodeGenerator
.PrivateMethodAttributes);
698
CodeGenerator
.StaticBindingFlags,
720
CodeGenerator
.StaticBindingFlags,
722
CodeGenerator
.EmptyTypeArray,
727
CodeGenerator
.InstanceBindingFlags,
734
CodeGenerator
.InstanceBindingFlags,
795
CodeGenerator
.PrivateMethodAttributes,
827
CodeGenerator
.InstanceBindingFlags,
829
CodeGenerator
.EmptyTypeArray,
834
CodeGenerator
.InstanceBindingFlags,
846
CodeGenerator
.InstanceBindingFlags,
857
CodeGenerator
.PrivateMethodAttributes,
863
CodeGenerator
.InstanceBindingFlags,
878
CodeGenerator
.InstanceBindingFlags,
880
CodeGenerator
.EmptyTypeArray,
903
CodeGenerator
.InstanceBindingFlags,
905
CodeGenerator
.EmptyTypeArray,
910
CodeGenerator
.InstanceBindingFlags,
922
CodeGenerator
.InstanceBindingFlags,
936
CodeGenerator
.InstanceBindingFlags,
938
CodeGenerator
.EmptyTypeArray,
975
CodeGenerator
.PrivateMethodAttributes);
984
CodeGenerator
.InstanceBindingFlags,
1004
CodeGenerator
.InstanceBindingFlags,
1006
CodeGenerator
.EmptyTypeArray,
1025
CodeGenerator
.InstanceBindingFlags,
1042
CodeGenerator
.InstanceBindingFlags,
1062
CodeGenerator
.InstanceBindingFlags,
1099
CodeGenerator
.InstanceBindingFlags,
1111
CodeGenerator
.InstanceBindingFlags,
1231
CodeGenerator
.InstanceBindingFlags,
1233
CodeGenerator
.EmptyTypeArray,
1238
CodeGenerator
.InstanceBindingFlags,
1253
ConstructorInfo StringBuilder_ctor = typeof(StringBuilder).GetConstructor(
CodeGenerator
.EmptyTypeArray);
1263
throw
CodeGenerator
.NotSupported("CDF15337, DDB176069: Also fail in whidbey IEnumerable member with XmlAttributeAttribute");
1292
CodeGenerator
.InstanceBindingFlags,
1294
CodeGenerator
.EmptyTypeArray,
1299
CodeGenerator
.InstanceBindingFlags,
1317
CodeGenerator
.InstanceBindingFlags,
1340
CodeGenerator
.InstanceBindingFlags,
1354
throw
CodeGenerator
.NotSupported("CDF15337, DDB176069: Also fail in whidbey IEnumerable member with XmlAttributeAttribute");
1364
CodeGenerator
.InstanceBindingFlags,
1366
CodeGenerator
.EmptyTypeArray,
1371
CodeGenerator
.InstanceBindingFlags,
1373
CodeGenerator
.EmptyTypeArray,
1384
CodeGenerator
.InstanceBindingFlags,
1386
CodeGenerator
.EmptyTypeArray,
1406
CodeGenerator
.InstanceBindingFlags,
1408
CodeGenerator
.EmptyTypeArray,
1416
CodeGenerator
.InstanceBindingFlags,
1447
CodeGenerator
.InstanceBindingFlags,
1536
CodeGenerator
.InstanceBindingFlags,
1569
CodeGenerator
.InstancePublicBindingFlags,
1571
CodeGenerator
.EmptyTypeArray,
1586
CodeGenerator
.InstanceBindingFlags,
1588
CodeGenerator
.EmptyTypeArray,
1610
CodeGenerator
.InstanceBindingFlags,
1612
CodeGenerator
.EmptyTypeArray,
1799
CodeGenerator
.InstanceBindingFlags,
1801
CodeGenerator
.EmptyTypeArray,
1806
CodeGenerator
.InstanceBindingFlags,
1808
CodeGenerator
.EmptyTypeArray,
1816
CodeGenerator
.StaticBindingFlags,
1841
CodeGenerator
.InstanceBindingFlags,
1870
CodeGenerator
.InstanceBindingFlags,
1879
CodeGenerator
.InstanceBindingFlags,
1881
CodeGenerator
.EmptyTypeArray,
1886
CodeGenerator
.InstanceBindingFlags,
1888
CodeGenerator
.EmptyTypeArray,
1935
CodeGenerator
.InstanceBindingFlags,
1970
CodeGenerator
.InstanceBindingFlags,
1985
CodeGenerator
.InstanceBindingFlags,
1992
CodeGenerator
.InstanceBindingFlags,
1994
CodeGenerator
.EmptyTypeArray,
2018
CodeGenerator
.InstanceBindingFlags,
2020
CodeGenerator
.EmptyTypeArray,
2050
throw
CodeGenerator
.NotSupported("Unreachable: IsUnbounded is never set true!");
2130
CodeGenerator
.PrivateMethodAttributes,
2169
CodeGenerator
.InstanceBindingFlags,
2192
CodeGenerator
.InstanceBindingFlags,
2223
CodeGenerator
.InstanceBindingFlags,
2225
CodeGenerator
.EmptyTypeArray,
2267
CodeGenerator
.StaticBindingFlags,
2299
CodeGenerator
.InstanceBindingFlags,
2329
CodeGenerator
.InstanceBindingFlags,
2452
internal void ILGenForEnumLongValue(
CodeGenerator
ilg, string variable)
2469
internal SourceInfo GetSourceForMember(string obj, MemberMapping member, TypeDesc typeDesc,
CodeGenerator
ilg)
2473
internal SourceInfo GetSourceForMember(string obj, MemberMapping member, MemberInfo memberInfo, TypeDesc typeDesc,
CodeGenerator
ilg)
2492
internal void ILGenForEnumMember(
CodeGenerator
ilg, Type type, string memberName)
2506
internal void ILGenForCreateInstance(
CodeGenerator
ilg, Type type, bool ctorInaccessible, bool cast)
2510
ConstructorInfo ctor = type.GetConstructor(
CodeGenerator
.EmptyTypeArray);
2527
internal void ILGenForCreateInstance(
CodeGenerator
ilg, Type type, Type cast, bool nonPublic)
2532
FieldInfo DBNull_Value = typeof(DBNull).GetField("Value",
CodeGenerator
.StaticBindingFlags);
2546
CodeGenerator
.StaticBindingFlags,
2571
CodeGenerator
.StaticBindingFlags,
2627
internal void WriteCreateInstance(string source, bool ctorInaccessible, Type type,
CodeGenerator
ilg)
2633
internal void WriteInstanceOf(SourceInfo source, Type type,
CodeGenerator
ilg)
2656
internal void WriteTypeCompare(string variable, Type type,
CodeGenerator
ilg)
2664
internal void WriteArrayTypeCompare(string variable, Type arrayType,
CodeGenerator
ilg)