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