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