1 write to XmlReader
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (1)
138
XmlReader
= xmlReader;
111 references to XmlReader
PresentationBuildTasks (111)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\StyleXamlParser.cs (2)
90
_startingDepth = TokenReader.
XmlReader
.Depth;
410
string xmlNamespace = TokenReader.
XmlReader
.LookupNamespace(prefix);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\TemplateXamlParser.cs (2)
77
_startingDepth = TokenReader.
XmlReader
.Depth;
458
string xmlNamespace = TokenReader.
XmlReader
.LookupNamespace(prefix);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (107)
172
return
XmlReader
.LookupNamespace(prefix);
370
Debug.Assert(null !=
XmlReader
);
375
XmlReader
.Read(); // first time thru get to the first start tag.
388
switch (
XmlReader
.NodeType)
480
if (ControllingXamlParser.GetElementType(
XmlReader
, $"{localName}Extension",
488
return ControllingXamlParser.GetElementType(
XmlReader
, localName,
495
if (ControllingXamlParser.GetElementType(
XmlReader
, localName,
503
return ControllingXamlParser.GetElementType(
XmlReader
, $"{localName}Extension",
545
AddNodeToCollection(new XamlDocumentEndNode(LineNumber, LinePosition,
XmlReader
.Depth));
614
AddNodeToCollection(new XamlUnknownTagEndNode(LineNumber, LinePosition,
XmlReader
.Depth,
640
typeFullName, elementType, serializerType,
XmlReader
.IsEmptyElement,
649
int depth =
XmlReader
.Depth;
734
XamlPropertyComplexEndNode(LineNumber, LinePosition,
XmlReader
.Depth));
760
LineNumber, LinePosition,
XmlReader
.Depth, propertyMember,
777
LineNumber, LinePosition,
XmlReader
.Depth, propertyMember,
828
XmlReader
.Depth,
855
LineNumber, LinePosition,
XmlReader
.Depth, propertyMember,
890
LineNumber, LinePosition,
XmlReader
.Depth, propertyMember,
929
AddNodeToCollection(new XamlXmlnsPropertyNode(LineNumber, LinePosition,
XmlReader
.Depth,
938
AddNodeToCollection(new XamlPIMappingNode(LineNumber, LinePosition,
XmlReader
.Depth,
948
AddNodeToCollection(new XamlClrEventNode(LineNumber, LinePosition,
XmlReader
.Depth,
973
new XamlPropertyArrayEndNode(LineNumber, LinePosition,
XmlReader
.Depth));
998
new XamlPropertyIListEndNode(LineNumber, LinePosition,
XmlReader
.Depth));
1023
new XamlPropertyIDictionaryEndNode(LineNumber, LinePosition,
XmlReader
.Depth));
1043
new XamlDefTagNode(LineNumber, LinePosition,
XmlReader
.Depth,
1044
XmlReader
.IsEmptyElement,
XmlReader
, defTagName));
1061
AddNodeToCollection(new XamlDefAttributeNode(LineNumber, LinePosition,
XmlReader
.Depth,
1070
AddNodeToCollection(new XamlPresentationOptionsAttributeNode(LineNumber, LinePosition,
XmlReader
.Depth,
1083
AddNodeToCollection(new XamlDefAttributeKeyTypeNode(LineNumber, LinePosition,
XmlReader
.Depth,
1232
ThrowException(nameof(SR.ParserEmptyComplexProp),
XmlReader
.Name);
1245
while (readNextNode &&
XmlReader
.Read())
1247
switch (
XmlReader
.NodeType)
1259
string collapsedText = CollapseText(
XmlReader
.Value,
1281
XmlReader
.LocalName);
1313
XmlReader
.Read();
1330
XmlReader
.NodeType.ToString());
1856
string namespacePrefix =
XmlReader
.Prefix;
1861
attributeNamespaceUri !=
XmlReader
.LookupNamespace(""))
1955
bool isEmptyElement =
XmlReader
.IsEmptyElement;
2076
CompileBamlTag(
XmlReader
.NodeType, ref endTagHasBeenRead);
2092
switch (
XmlReader
.NodeType)
2098
CompileText(
XmlReader
.NodeType,
XmlReader
.Value);
2099
XmlReader
.Read(); // move to the next node.
2104
XmlReader
.Read(); // move to the next node.
2109
ThrowException(nameof(SR.ParserEntityReference),
XmlReader
.Name);
2113
XmlReader
.Read();
2135
bool isEmpty =
XmlReader
.IsEmptyElement;
2141
WriteDefTag(
XmlReader
.Name);
2158
CompileText(
XmlReader
.NodeType,
XmlReader
.Value);
2171
XmlReader
.Read();
2208
bool moreAttributes =
XmlReader
.MoveToFirstAttribute();
2214
string attribName =
XmlReader
.Name;
2215
string attribLocalName =
XmlReader
.LocalName;
2216
string attributeNamespaceUri =
XmlReader
.LookupNamespace(
XmlReader
.Prefix);
2217
string attribValue =
XmlReader
.Value;
2280
moreAttributes =
XmlReader
.MoveToNextAttribute();
2342
bool moreAttributes =
XmlReader
.MoveToFirstAttribute();
2345
string attribName =
XmlReader
.Name;
2350
string attribValue =
XmlReader
.Value;
2361
moreAttributes =
XmlReader
.MoveToNextAttribute();
2363
XmlReader
.MoveToElement();
2734
attribNamespaceURI =
XmlReader
.LookupNamespace(prefix);
2745
attribNamespaceURI =
XmlReader
.LookupNamespace("");
2778
bool moreAttributes =
XmlReader
.MoveToFirstAttribute();
2797
string attribLocalName =
XmlReader
.LocalName;
2798
string attribName =
XmlReader
.Name;
2799
string attribPrefix =
XmlReader
.Prefix;
2800
string attribValue =
XmlReader
.Value;
2931
moreAttributes =
XmlReader
.MoveToNextAttribute();
2942
ArrayList xamlNodes = _extensionParser.CompileDictionaryKeys(complexDefAttributesList,
XmlReader
.Depth);
2954
ArrayList xamlNodes = _extensionParser.CompileAttributes(markupExtensionList,
XmlReader
.Depth);
3065
string valueNamespaceURI =
XmlReader
.LookupNamespace(prefix);
3577
int depth =
XmlReader
.Depth;
3585
string localName =
XmlReader
.LocalName;
3586
string prefix =
XmlReader
.Prefix;
3587
string namespaceURI =
XmlReader
.NamespaceURI;
3597
isEmptyElement =
XmlReader
.IsEmptyElement;
3809
CompileText(
XmlReader
.NodeType,
XmlReader
.Value);
3849
XmlReader
.Read();
3899
string text =
XmlReader
.ReadInnerXml();
3974
int attributeCount =
XmlReader
.AttributeCount;
3979
if(
XmlReader
.GetAttribute(DefinitionUid, DefinitionNamespaceURI) != null)
4081
bool isEmptyElement =
XmlReader
.IsEmptyElement;
4275
if (
XmlReader
.AttributeCount > 0)
4282
while (
XmlReader
.MoveToNextAttribute() &&
4285
if (
XmlReader
.LocalName == DefinitionUid &&
4286
XmlReader
.NamespaceURI == DefinitionNamespaceURI)
4493
string localName =
XmlReader
.LocalName;
4628
int depth =
XmlReader
.Depth;
4714
WriteText(textValue, null,
XmlReader
.Depth); // Text for IAddChild::AddText()
4774
WriteText(textValue, null,
XmlReader
.Depth); // Text for object/string/IList ContentProperty
4787
WriteText(textValue, converterType,
XmlReader
.Depth); // Text for TypeConverter
4805
WriteText(textValue, converterType,
XmlReader
.Depth); // Text for TypeConverter
5027
WriteText(textValue, null,
XmlReader
.Depth); // Text for (Complex collection property)::Add()
5119
WriteText(textValue, null,
XmlReader
.Depth); // Text for property IList::Add()
5150
WriteText( textValue, null,
XmlReader
.Depth ); // Text saved for Unknown purposes.
5226
if ((
XmlReader
.EOF) || ((ParseLoopState != ParserState.Uninitialized) &&
5227
0 ==
XmlReader
.Depth &&
XmlReader
.NodeType == XmlNodeType.None))
5273
Debug.Assert(null !=
XmlReader
, "XmlReader is not yet set");
5275
XmlCompatibilityReader xmlCompatReader =
XmlReader
as XmlCompatibilityReader;
5283
XmlTextReader xmlTextReader =
XmlReader
as XmlTextReader;