21 instantiations of SourceInfo
System.Xml (21)
System\Xml\Serialization\SourceInfo.cs (1)
51return new SourceInfo("((" + td.CSharpName + ")" + Source + ")", Arg, MemberInfo, td.Type, ILG);
System\Xml\Serialization\XmlSerializationILGen.cs (1)
576SourceInfo info = new SourceInfo(source, null, null, null, ilg);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (2)
2239WriteLocalDecl(a, new SourceInfo(member.Source, member.Source, member.Mapping.MemberInfo, member.Mapping.TypeDesc.Type, ilg)); 3583RaCodeGen.WriteArrayLocalDecl(typeName, variableName, new SourceInfo(initValue, initValue, null, arrayTypeDesc.Type, ilg), arrayTypeDesc);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (17)
383SourceInfo source = new SourceInfo("p[" + i.ToString(CultureInfo.InvariantCulture) + "]", null, null, pLengthLoc.LocalType.GetElementType(), ilg); 391specifiedSource = new SourceInfo("((bool)p[" + j.ToString(CultureInfo.InvariantCulture) + "])", null, null, typeof(bool), ilg); 441specifiedSource = new SourceInfo("((bool)p[" + j.ToString(CultureInfo.InvariantCulture) + "])", null, null, typeof(bool), ilg); 484WriteMember(new SourceInfo(source, source, null, null, ilg), enumSource, member.ElementsSortedByDerivation, member.Text, member.ChoiceIdentifier, member.TypeDesc, writeAccessors || hasWrapperElement); 544WriteMember(new SourceInfo("o", "o", null, typeof(object), ilg), null, new ElementAccessor[] { element }, null, null, mapping.TypeDesc, true); 856WriteMember(new SourceInfo("o", "o", null, null, ilg), null, mapping.ElementsSortedByDerivation, null, null, mapping.TypeDesc, true); 1228WriteEnumValue((EnumMapping)attribute.Mapping, new SourceInfo(aiVar, aiVar, null, arrayElementTypeDesc.Type, ilg), out argType); 1230WritePrimitiveValue(arrayElementTypeDesc, new SourceInfo(aiVar, aiVar, null, arrayElementTypeDesc.Type, ilg), out argType); 1243WriteAttribute(new SourceInfo(aiVar, aiVar, null, null, ilg), attribute, parent); 1389SourceInfo choiceSourceInfo = new SourceInfo(choiceSource, null, choice.MemberInfo, null, ilg); 1479WriteElements(new SourceInfo(arrayNamePlusI, null, null, arrayElementTypeDesc.Type, ilg), choiceName + "i", elements, text, choice, arrayNamePlusA, true, true); 1509WriteElements(new SourceInfo(arrayNamePlusI, null, null, arrayElementTypeDesc.Type, ilg), choiceName + "i", elements, text, choice, arrayNamePlusA, true, arrayElementTypeDesc.IsNullable); 1512WriteElements(new SourceInfo(RaCodeGen.GetStringForArrayMember(arrayName, iPlusArrayName, arrayTypeDesc), null, null, arrayElementTypeDesc.Type, ilg), null, elements, text, choice, arrayNamePlusA, true, arrayElementTypeDesc.IsNullable); 1686WriteElement(new SourceInfo("elem", null, null, elemLoc.LocalType, ilg), element, arrayName, writeAccessors); 1714WriteElement(new SourceInfo("elem", null, null, elemLoc.LocalType, ilg), unnamedAny, arrayName, writeAccessors); 2154RaCodeGen.WriteLocalDecl(variableName, new SourceInfo(initValue, initValue, null, type, ilg)); 2259return new SourceInfo(GetStringForMember(obj, member.Name, typeDesc), obj, memberInfo, member.TypeDesc.Type, ilg);
40 references to SourceInfo
System.Xml (40)
System\Xml\Serialization\SourceInfo.cs (8)
50public SourceInfo CastTo(TypeDesc td) { 208public static implicit operator string(SourceInfo source) { 212public static bool operator !=(SourceInfo a, SourceInfo b) { 218public static bool operator ==(SourceInfo a, SourceInfo b) { 227SourceInfo info = obj as SourceInfo;
System\Xml\Serialization\XmlSerializationILGen.cs (1)
576SourceInfo info = new SourceInfo(source, null, null, null, ilg);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
3588void WriteLocalDecl(string variableName, SourceInfo initValue) {
System\Xml\Serialization\XmlSerializationWriterILGen.cs (30)
84void WriteQualifiedNameElement(string name, string ns, object defaultValue, SourceInfo source, bool nullable, TypeMapping mapping) { 114void WriteEnumValue(EnumMapping mapping, SourceInfo source, out Type returnType) { 135void WritePrimitiveValue(TypeDesc typeDesc, SourceInfo source, out Type returnType) { 175void WritePrimitive(string method, string name, string ns, object defaultValue, SourceInfo source, TypeMapping mapping, bool writeXsiType, bool isElement, bool isNullable) { 383SourceInfo source = new SourceInfo("p[" + i.ToString(CultureInfo.InvariantCulture) + "]", null, null, pLengthLoc.LocalType.GetElementType(), ilg); 385SourceInfo specifiedSource = null; 434SourceInfo specifiedSource = null; 1110void WriteMember(SourceInfo source, AttributeAccessor attribute, TypeDesc memberTypeDesc, string parent) { 1323void WriteAttribute(SourceInfo source, AttributeAccessor attribute, string parent) { 1364void WriteMember(SourceInfo source, string choiceSource, ElementAccessor[] elements, TextAccessor text, ChoiceIdentifierAccessor choice, TypeDesc memberTypeDesc, bool writeAccessors) { 1374void WriteArray(SourceInfo source, string choiceSource, ElementAccessor[] elements, TextAccessor text, ChoiceIdentifierAccessor choice, TypeDesc arrayTypeDesc) { 1389SourceInfo choiceSourceInfo = new SourceInfo(choiceSource, null, choice.MemberInfo, null, ilg); 1518void WriteElements(SourceInfo source, string enumSource, ElementAccessor[] elements, TextAccessor text, ChoiceIdentifierAccessor choice, string arrayName, bool writeAccessors, bool isNullable) { 1576SourceInfo castedSource = source; 1588SourceInfo castedSource = source; 1756SourceInfo castedSource = source.CastTo(text.Mapping.TypeDesc); 1760SourceInfo castedSource = source.CastTo(text.Mapping.TypeDesc); 1796void WriteText(SourceInfo source, TextAccessor text) { 1845void WriteElement(SourceInfo source, ElementAccessor element, string arrayName, bool writeAccessor) { 1867SourceInfo castedSource = source.CastTo(element.Mapping.TypeDesc.BaseTypeDesc); 2002void WriteElementCall(string func, Type cast, SourceInfo source, string name, string ns, bool isNullable, bool isAny) { 2019void WriteCheckDefault(SourceInfo source, object value, bool isNullable) { 2087void WriteChoiceTypeCheck(SourceInfo source, string fullTypeName, ChoiceIdentifierAccessor choice, string enumName, TypeDesc typeDesc) { 2157void WriteArrayLocalDecl(string typeName, string variableName, SourceInfo initValue, TypeDesc arrayTypeDesc) { 2163void WriteInstanceOf(SourceInfo source, Type type) { 2253internal SourceInfo GetSourceForMember(string obj, MemberMapping member, TypeDesc typeDesc, CodeGenerator ilg) 2257internal SourceInfo GetSourceForMember(string obj, MemberMapping member, MemberInfo memberInfo, TypeDesc typeDesc, CodeGenerator ilg) 2368internal void WriteLocalDecl(string variableName, SourceInfo initValue) { 2406internal void WriteInstanceOf(SourceInfo source, Type type, CodeGenerator ilg) { 2417internal void WriteArrayLocalDecl(string typeName, string variableName, SourceInfo initValue, TypeDesc arrayTypeDesc) {