19 instantiations of SourceInfo
dotnet-svcutil-lib (19)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SourceInfo.cs (1)
51return new SourceInfo("((" + td.CSharpName + ")" + Source + ")", Arg, MemberInfo, td.Type, ILG);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationILGen.cs (1)
583SourceInfo info = new SourceInfo(source, null, null, null, ilg);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (17)
422SourceInfo source = new SourceInfo("p[" + i.ToString() + "]", null, null, pLengthLoc.LocalType.GetElementType(), ilg); 433specifiedSource = new SourceInfo("((bool)p[" + j.ToString() + "])", null, null, typeof(bool), ilg); 489specifiedSource = new SourceInfo("((bool)p[" + j.ToString() + "])", null, null, typeof(bool), ilg); 536WriteMember(new SourceInfo(source, source, null, null, ilg), enumSource, member.ElementsSortedByDerivation, member.Text, member.ChoiceIdentifier, member.TypeDesc, writeAccessors || hasWrapperElement); 601WriteMember(new SourceInfo("o", "o", null, typeof(object), ilg), null, new ElementAccessor[] { element }, null, null, mapping.TypeDesc, true); 932WriteMember(new SourceInfo("o", "o", null, null, ilg), null, mapping.ElementsSortedByDerivation, null, null, mapping.TypeDesc, true); 1335WriteEnumValue((EnumMapping)attribute.Mapping, new SourceInfo(aiVar, aiVar, null, arrayElementTypeDesc.Type, ilg), out argType); 1337WritePrimitiveValue(arrayElementTypeDesc, new SourceInfo(aiVar, aiVar, null, arrayElementTypeDesc.Type, ilg), out argType); 1351WriteAttribute(new SourceInfo(aiVar, aiVar, null, null, ilg), attribute, parent); 1514SourceInfo choiceSourceInfo = new SourceInfo(choiceSource, null, choice.MemberInfo, null, ilg); 1605WriteElements(new SourceInfo(arrayNamePlusI, null, null, arrayElementTypeDesc.Type, ilg), choiceName + "i", elements, text, choice, arrayNamePlusA, true, true); 1638WriteElements(new SourceInfo(arrayNamePlusI, null, null, arrayElementTypeDesc.Type, ilg), choiceName + "i", elements, text, choice, arrayNamePlusA, true, arrayElementTypeDesc.IsNullable); 1642WriteElements(new SourceInfo(RaCodeGen.GetStringForArrayMember(arrayName, iPlusArrayName, arrayTypeDesc), null, null, arrayElementTypeDesc.Type, ilg), null, elements, text, choice, arrayNamePlusA, true, arrayElementTypeDesc.IsNullable); 1833WriteElement(new SourceInfo("elem", null, null, elemLoc.LocalType, ilg), element, arrayName, writeAccessors); 1864WriteElement(new SourceInfo("elem", null, null, elemLoc.LocalType, ilg), unnamedAny, arrayName, writeAccessors); 2353RaCodeGen.WriteLocalDecl(variableName, new SourceInfo(initValue, initValue, null, type, ilg)); 2475return new SourceInfo(GetStringForMember(obj, member.Name, typeDesc), obj, memberInfo, member.TypeDesc.Type, ilg);
39 references to SourceInfo
dotnet-svcutil-lib (39)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SourceInfo.cs (8)
49public SourceInfo CastTo(TypeDesc td) 236public static implicit operator string(SourceInfo source) 241public static bool operator !=(SourceInfo a, SourceInfo b) 248public static bool operator ==(SourceInfo a, SourceInfo b) 259SourceInfo info = obj as SourceInfo;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationILGen.cs (1)
583SourceInfo info = new SourceInfo(source, null, null, null, ilg);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (30)
92private void WriteQualifiedNameElement(string name, string ns, object defaultValue, SourceInfo source, bool nullable, TypeMapping mapping) 126private void WriteEnumValue(EnumMapping mapping, SourceInfo source, out Type returnType) 148private void WritePrimitiveValue(TypeDesc typeDesc, SourceInfo source, out Type returnType) 194private void WritePrimitive(string method, string name, string ns, object defaultValue, SourceInfo source, TypeMapping mapping, bool writeXsiType, bool isElement, bool isNullable) 422SourceInfo source = new SourceInfo("p[" + i.ToString() + "]", null, null, pLengthLoc.LocalType.GetElementType(), ilg); 424SourceInfo specifiedSource = null; 479SourceInfo specifiedSource = null; 1208private void WriteMember(SourceInfo source, AttributeAccessor attribute, TypeDesc memberTypeDesc, string parent) 1437private void WriteAttribute(SourceInfo source, AttributeAccessor attribute, string parent) 1485private void WriteMember(SourceInfo source, string choiceSource, ElementAccessor[] elements, TextAccessor text, ChoiceIdentifierAccessor choice, TypeDesc memberTypeDesc, bool writeAccessors) 1496private void WriteArray(SourceInfo source, string choiceSource, ElementAccessor[] elements, TextAccessor text, ChoiceIdentifierAccessor choice, TypeDesc arrayTypeDesc) 1514SourceInfo choiceSourceInfo = new SourceInfo(choiceSource, null, choice.MemberInfo, null, ilg); 1648private void WriteElements(SourceInfo source, string enumSource, ElementAccessor[] elements, TextAccessor text, ChoiceIdentifierAccessor choice, string arrayName, bool writeAccessors, bool isNullable) 1714SourceInfo castedSource = source; 1727SourceInfo castedSource = source; 1910SourceInfo castedSource = source.CastTo(text.Mapping.TypeDesc); 1915SourceInfo castedSource = source.CastTo(text.Mapping.TypeDesc); 1953private void WriteText(SourceInfo source, TextAccessor text) 2008private void WriteElement(SourceInfo source, ElementAccessor element, string arrayName, bool writeAccessor) 2034SourceInfo castedSource = source.CastTo(element.Mapping.TypeDesc.BaseTypeDesc); 2188private void WriteElementCall(string func, Type cast, SourceInfo source, string name, string ns, bool isNullable, bool isAny) 2206private void WriteCheckDefault(SourceInfo source, object value, bool isNullable) 2281private void WriteChoiceTypeCheck(SourceInfo source, string fullTypeName, ChoiceIdentifierAccessor choice, string enumName, TypeDesc typeDesc) 2356private void WriteArrayLocalDecl(string typeName, string variableName, SourceInfo initValue, TypeDesc arrayTypeDesc) 2364private void WriteInstanceOf(SourceInfo source, Type type) 2469internal SourceInfo GetSourceForMember(string obj, MemberMapping member, TypeDesc typeDesc, CodeGenerator ilg) 2473internal SourceInfo GetSourceForMember(string obj, MemberMapping member, MemberInfo memberInfo, TypeDesc typeDesc, CodeGenerator ilg) 2586internal void WriteLocalDecl(string variableName, SourceInfo initValue) 2633internal void WriteInstanceOf(SourceInfo source, Type type, CodeGenerator ilg) 2644internal void WriteArrayLocalDecl(string typeName, string variableName, SourceInfo initValue, TypeDesc arrayTypeDesc)