7 writes to _coreReader
dotnet-svcutil-lib (7)
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReader.cs (6)
135
_coreReader
= reader;
2037
_coreReader
= GetCachingReader();
2448
_coreReader
= cachingReader.GetCoreReader();
2502
_coreReader
= GetCachingReader();
2559
_coreReader
= GetCachingReader();
2619
_coreReader
= cachingReader.GetCoreReader(); //re-switch the core-reader after caching reader is done
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReaderAsync.cs (1)
613
_coreReader
= GetCachingReader();
126 references to _coreReader
dotnet-svcutil-lib (126)
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReader.cs (87)
138
_coreReaderNameTable =
_coreReader
.NameTable;
206
XmlReaderSettings settings =
_coreReader
.Settings;
234
XmlNodeType nodeType =
_coreReader
.NodeType;
259
return
_coreReader
.Name;
272
return
_coreReader
.LocalName;
285
return
_coreReader
.NamespaceURI;
298
return
_coreReader
.Prefix;
311
return
_coreReader
.HasValue;
324
return
_coreReader
.Value;
337
return
_coreReader
.Depth;
346
return
_coreReader
.BaseURI;
355
return
_coreReader
.IsEmptyElement;
369
return
_coreReader
.IsDefault; //This is DTD Default attribute
378
return
_coreReader
.QuoteChar;
387
return
_coreReader
.XmlSpace;
396
return
_coreReader
.XmlLang;
1098
string attValue =
_coreReader
.GetAttribute(name);
1114
string attValue =
_coreReader
.GetAttribute(name, namespaceURI);
1142
return
_coreReader
.GetAttribute(i);
1156
if (
_coreReader
.MoveToAttribute(name))
1193
if (
_coreReader
.MoveToAttribute(name, ns))
1238
_coreReader
.MoveToAttribute(i);
1266
if (
_coreReader
.MoveToFirstAttribute())
1303
bool moveTo =
_coreReader
.MoveToNextAttribute();
1338
if (
_coreReader
.MoveToElement() || (int)_validationState < 0)
1353
if (
_coreReader
.Read())
1361
if (
_coreReader
.EOF)
1401
if (
_coreReader
.ReadState == ReadState.Interactive)
1425
return
_coreReader
.EOF;
1432
_coreReader
.Close();
1441
return (_validationState == ValidatingReaderState.Init) ? ReadState.Initial :
_coreReader
.ReadState;
1452
if (
_coreReader
.IsEmptyElement)
1459
if ((_xmlSchemaInfo.IsUnionType || _xmlSchemaInfo.IsDefault) &&
_coreReader
is XsdCachingReader)
1463
_coreReader
.Skip();
1517
return
_coreReader
.ReadAttributeValue();
1644
if (!
_coreReader
.IsEmptyElement)
1691
if (
_coreReader
.IsEmptyElement)
1722
if (!
_coreReader
.IsEmptyElement)
1869
return
_coreReader
.Value;
1909
switch (
_coreReader
.NodeType)
1938
_validator.SetDtdSchemaInfo(
_coreReader
.DtdInfo);
1954
if (_processInlineSchema && IsXSDRoot(
_coreReader
.LocalName,
_coreReader
.NamespaceURI) &&
_coreReader
.Depth > 0)
1957
_attributeCount = _coreReaderAttributeCount =
_coreReader
.AttributeCount;
1958
if (!
_coreReader
.IsEmptyElement)
1961
_inlineSchemaParser.StartParsing(
_coreReader
, null);
1986
if (
_coreReader
.MoveToFirstAttribute())
1990
string objectNs =
_coreReader
.NamespaceURI;
1991
string objectName =
_coreReader
.LocalName;
1996
xsiSchemaLocation =
_coreReader
.Value;
2000
xsiNoNamespaceSL =
_coreReader
.Value;
2004
xsiType =
_coreReader
.Value;
2008
xsiNil =
_coreReader
.Value;
2011
if (_manageNamespaces && Ref.Equal(
_coreReader
.NamespaceURI, _nsXmlNs))
2013
_nsManager.AddNamespace(
_coreReader
.Prefix.Length == 0 ? string.Empty :
_coreReader
.LocalName,
_coreReader
.Value);
2015
} while (
_coreReader
.MoveToNextAttribute());
2016
_coreReader
.MoveToElement();
2018
_validator.ValidateElement(
_coreReader
.LocalName,
_coreReader
.NamespaceURI, _xmlSchemaInfo, xsiType, xsiNil, xsiSchemaLocation, xsiNoNamespaceSL);
2021
if (
_coreReader
.IsEmptyElement)
2036
int depth =
_coreReader
.Depth;
2051
_attributeCount = _coreReaderAttributeCount =
_coreReader
.AttributeCount;
2055
if (
_coreReader
.MoveToFirstAttribute())
2059
string localName =
_coreReader
.LocalName;
2060
string ns =
_coreReader
.NamespaceURI;
2077
} while (
_coreReader
.MoveToNextAttribute());
2079
_coreReader
.MoveToElement();
2176
_currentAttrIndex =
_coreReader
.AttributeCount + i;
2216
if (
_coreReader
.Read())
2218
if (
_coreReader
.NodeType == XmlNodeType.Element)
2220
_attributeCount = _coreReaderAttributeCount =
_coreReader
.AttributeCount;
2295
XsdCachingReader cachingReader =
_coreReader
as XsdCachingReader;
2392
while (
_coreReader
.Read())
2398
switch (
_coreReader
.NodeType)
2445
XsdCachingReader cachingReader =
_coreReader
as XsdCachingReader;
2450
Debug.Assert(
_coreReader
.NodeType == XmlNodeType.EndElement);
2456
while (
_coreReader
.Read())
2458
switch (
_coreReader
.NodeType)
2499
XsdCachingReader cachedReader =
_coreReader
as XsdCachingReader;
2509
if (
_coreReader
.Read())
2511
switch (
_coreReader
.NodeType)
2556
XsdCachingReader cachedReader =
_coreReader
as XsdCachingReader;
2596
_cachingReader = new XsdCachingReader(
_coreReader
, _lineInfo, new CachingEventHandler(CachingCallBack));
2600
_cachingReader.Reset(
_coreReader
);
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReaderAsync.cs (39)
32
return
_coreReader
.GetValueAsync();
230
if (
_coreReader
.EOF)
253
if (
_coreReader
.EOF)
287
Task<bool> readTask =
_coreReader
.ReadAsync();
320
if (
_coreReader
.ReadState == ReadState.Interactive)
345
if (
_coreReader
.IsEmptyElement)
352
if ((_xmlSchemaInfo.IsUnionType || _xmlSchemaInfo.IsDefault) &&
_coreReader
is XsdCachingReader)
356
await
_coreReader
.SkipAsync().ConfigureAwait(false);
485
switch (
_coreReader
.NodeType)
512
_validator.SetDtdSchemaInfo(
_coreReader
.DtdInfo);
530
if (_processInlineSchema && IsXSDRoot(
_coreReader
.LocalName,
_coreReader
.NamespaceURI) &&
_coreReader
.Depth > 0)
533
_attributeCount = _coreReaderAttributeCount =
_coreReader
.AttributeCount;
534
if (!
_coreReader
.IsEmptyElement)
537
await _inlineSchemaParser.StartParsingAsync(
_coreReader
, null).ConfigureAwait(false);
562
if (
_coreReader
.MoveToFirstAttribute())
566
string objectNs =
_coreReader
.NamespaceURI;
567
string objectName =
_coreReader
.LocalName;
572
xsiSchemaLocation =
_coreReader
.Value;
576
xsiNoNamespaceSL =
_coreReader
.Value;
580
xsiType =
_coreReader
.Value;
584
xsiNil =
_coreReader
.Value;
587
if (_manageNamespaces && Ref.Equal(
_coreReader
.NamespaceURI, _nsXmlNs))
589
_nsManager.AddNamespace(
_coreReader
.Prefix.Length == 0 ? string.Empty :
_coreReader
.LocalName,
_coreReader
.Value);
591
} while (
_coreReader
.MoveToNextAttribute());
592
_coreReader
.MoveToElement();
594
_validator.ValidateElement(
_coreReader
.LocalName,
_coreReader
.NamespaceURI, _xmlSchemaInfo, xsiType, xsiNil, xsiSchemaLocation, xsiNoNamespaceSL);
597
if (
_coreReader
.IsEmptyElement)
612
int depth =
_coreReader
.Depth;
628
if (await
_coreReader
.ReadAsync().ConfigureAwait(false))
630
if (
_coreReader
.NodeType == XmlNodeType.Element)
632
_attributeCount = _coreReaderAttributeCount =
_coreReader
.AttributeCount;
716
XsdCachingReader cachingReader =
_coreReader
as XsdCachingReader;
824
while (await
_coreReader
.ReadAsync().ConfigureAwait(false))
830
switch (
_coreReader
.NodeType)