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