195 references to Whitespace
Microsoft.Build (7)
Construction\ProjectElementContainer.cs (6)
530if (referenceSibling.XmlElement.PreviousSibling?.NodeType == XmlNodeType.Whitespace) 546if (child.XmlElement.PreviousSibling?.NodeType == XmlNodeType.Whitespace) 561if (XmlElement.FirstChild.NodeType == XmlNodeType.Whitespace) 580if (xmlElement.PreviousSibling?.NodeType != XmlNodeType.Whitespace) 616if (previousSibling?.NodeType == XmlNodeType.Whitespace) 628if (XmlElement.ChildNodes.Cast<XmlNode>().All(c => c.NodeType == XmlNodeType.Whitespace))
Xml\ProjectXmlUtilities.XmlElementChildIterator.cs (1)
83case XmlNodeType.Whitespace:
Microsoft.Build.Tasks.Core (6)
CodeTaskFactory.cs (4)
432bool hasInvalidChildNodes = HasInvalidChildNodes(referenceNodes[i], [XmlNodeType.Comment, XmlNodeType.Whitespace]); 462bool hasInvalidChildNodes = HasInvalidChildNodes(usingNodes[i], [XmlNodeType.Comment, XmlNodeType.Whitespace]); 512bool hasInvalidChildNodes = HasInvalidChildNodes(codeNodes[0], [XmlNodeType.Comment, XmlNodeType.Whitespace, XmlNodeType.Text, XmlNodeType.CDATA]); 535case XmlNodeType.Whitespace:
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
327.Where(i => i.NodeType != XmlNodeType.Comment && i.NodeType != XmlNodeType.Whitespace))
XamlTaskFactory\RelationsParser.cs (1)
594(node.NodeType != XmlNodeType.Whitespace) &&
Microsoft.Extensions.Configuration.Xml (1)
XmlStreamConfigurationProvider.cs (1)
161case XmlNodeType.Whitespace:
Microsoft.Maui.Controls.Build.Tasks (1)
XamlTask.cs (1)
50 if (reader.NodeType == XmlNodeType.Whitespace)
Microsoft.Maui.Controls.Xaml (5)
XamlLoader.cs (3)
68 if (reader.NodeType == XmlNodeType.Whitespace) 110 if (reader.NodeType == XmlNodeType.Whitespace) 151 if (reader.NodeType == XmlNodeType.Whitespace)
XamlParser.cs (2)
120 case XmlNodeType.Whitespace: 185 case XmlNodeType.Whitespace:
PresentationBuildTasks (6)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (6)
1246case XmlNodeType.Whitespace: 2091case XmlNodeType.Whitespace: 2151case XmlNodeType.Whitespace: 3797case XmlNodeType.Whitespace: 5056xmlNodeType == XmlNodeType.Whitespace || 5067case XmlNodeType.Whitespace:
System.Configuration.ConfigurationManager (8)
System\Configuration\BaseConfigurationRecord.cs (2)
3597if ((nodeType != XmlNodeType.Comment) && (nodeType != XmlNodeType.Whitespace)) 3627if ((nodeType != XmlNodeType.Comment) && (nodeType != XmlNodeType.Whitespace))
System\Configuration\HandlerBase.cs (1)
159if (node.NodeType == XmlNodeType.Comment || node.NodeType == XmlNodeType.Whitespace)
System\Configuration\XmlUtil.cs (5)
381if (Reader.NodeType == XmlNodeType.Whitespace) Reader.Skip(); 473if (Reader.NodeType != XmlNodeType.Whitespace) 562if (nodeType == XmlNodeType.Whitespace) utilWriter.Write(Reader.Value); 952(Reader.NodeType == XmlNodeType.Whitespace)) 1025case XmlNodeType.Whitespace:
System.Data.Common (25)
System\Data\DataSet.cs (7)
1800while (reader.NodeType == XmlNodeType.Whitespace) 1845while (reader.NodeType == XmlNodeType.Whitespace) 2218while (!reader.EOF && reader.NodeType == XmlNodeType.Whitespace) 2483if (reader.NodeType == XmlNodeType.Whitespace) 2498if (reader.NodeType == XmlNodeType.Whitespace) 2509if (reader.NodeType == XmlNodeType.Whitespace) 2514Debug.Assert(reader.NodeType != XmlNodeType.Whitespace, "Should not be on Whitespace node");
System\Data\DataTable.cs (2)
6272while (reader.NodeType == XmlNodeType.Whitespace) 6334if (reader.NodeType == XmlNodeType.Whitespace)
System\Data\XmlDataLoader.cs (6)
142while (n != null && (n.NodeType == XmlNodeType.Whitespace || !IsTextLikeNode(n.NodeType))) 176while (n.NodeType == XmlNodeType.Whitespace) 269case XmlNodeType.Whitespace: 799case XmlNodeType.Whitespace: // This actually could be 1034case XmlNodeType.Whitespace: // This actually could be 1246case XmlNodeType.Whitespace:
System\Data\XMLDiffLoader.cs (2)
435if (row.NodeType == XmlNodeType.Text || row.NodeType == XmlNodeType.Whitespace || row.NodeType == XmlNodeType.SignificantWhitespace) 459while (reader.NodeType == XmlNodeType.Whitespace || reader.NodeType == XmlNodeType.SignificantWhitespace)
System\Xml\DataPointer.cs (1)
512case XmlNodeType.Whitespace:
System\Xml\RegionIterator.cs (2)
169while (n.NodeType == XmlNodeType.Whitespace) 190if (n.NodeType != XmlNodeType.Whitespace)
System\Xml\XmlDataDocument.cs (4)
1068XmlNodeType.Whitespace => CreateWhitespace(dp.Value), 1090case XmlNodeType.Whitespace: 1109case XmlNodeType.Whitespace: 2330while (n != null && n.NodeType == XmlNodeType.Whitespace)
System\Xml\XPathNodePointer.cs (1)
58case XmlNodeType.Whitespace:
System.Private.DataContractSerialization (8)
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
1029case XmlNodeType.Whitespace:
System\Xml\XmlBaseReader.cs (3)
223_whitespaceTextNode.NodeType = XmlNodeType.Whitespace; 1961case XmlNodeType.Whitespace: 2480: base(XmlNodeType.Whitespace,
System\Xml\XmlDictionaryReader.cs (2)
399case XmlNodeType.Whitespace: 549nodeType == XmlNodeType.Whitespace ||
System\Xml\XmlDictionaryWriter.cs (1)
392if (nodeType == XmlNodeType.Text || nodeType == XmlNodeType.Whitespace || nodeType == XmlNodeType.SignificantWhitespace)
System\Xml\XmlExceptionHelper.cs (1)
72case XmlNodeType.Whitespace:
System.Private.Xml (117)
System\Xml\BinaryXml\XmlBinaryReader.cs (3)
488case XmlNodeType.Whitespace: 3502return _xmlspacePreserve ? XmlNodeType.SignificantWhitespace : XmlNodeType.Whitespace; 3564return XmlNodeType.Whitespace;
System\Xml\Core\ReadContentAsBinaryHelper.cs (1)
421case XmlNodeType.Whitespace:
System\Xml\Core\ReadContentAsBinaryHelperAsync.cs (1)
343case XmlNodeType.Whitespace:
System\Xml\Core\XmlCharCheckingReader.cs (2)
204case XmlNodeType.Whitespace: 325case XmlNodeType.Whitespace:
System\Xml\Core\XmlCharCheckingReaderAsync.cs (2)
66case XmlNodeType.Whitespace: 186case XmlNodeType.Whitespace:
System\Xml\Core\XmlReader.cs (6)
1156case XmlNodeType.Whitespace: 1319Debug.Assert(0 != (IsTextualNodeBitmap & (1 << (int)XmlNodeType.Whitespace))); 1346Debug.Assert(0 != (CanReadContentAsBitmap & (1 << (int)XmlNodeType.Whitespace))); 1373Debug.Assert(0 != (HasValueBitmap & (1 << (int)XmlNodeType.Whitespace))); 1476case XmlNodeType.Whitespace: 1794case XmlNodeType.Whitespace:
System\Xml\Core\XmlReaderAsync.cs (2)
230case XmlNodeType.Whitespace: 332case XmlNodeType.Whitespace:
System\Xml\Core\XmlTextReaderImpl.cs (3)
7867return XmlNodeType.Whitespace; 8957case XmlNodeType.Whitespace: 9122Debug.Assert(_curNode.type == XmlNodeType.Whitespace && newNodeType == XmlNodeType.SignificantWhitespace, "Incorrect node type change!");
System\Xml\Core\XmlTextReaderImplAsync.cs (1)
5333case XmlNodeType.Whitespace:
System\Xml\Core\XmlValidatingReaderImpl.cs (2)
976type != XmlNodeType.Whitespace && type != XmlNodeType.SignificantWhitespace && 1098case XmlNodeType.Whitespace:
System\Xml\Core\XmlWriter.cs (1)
391case XmlNodeType.Whitespace:
System\Xml\Core\XmlWriterAsync.cs (2)
327case XmlNodeType.Whitespace: 390case XmlNodeType.Whitespace:
System\Xml\Core\XsdCachingReader.cs (1)
428case XmlNodeType.Whitespace:
System\Xml\Core\XsdCachingReaderAsync.cs (1)
60case XmlNodeType.Whitespace:
System\Xml\Core\XsdValidatingReader.cs (5)
226if (nodeType == XmlNodeType.Whitespace && (_validator.CurrentContentType == XmlSchemaContentType.TextOnly || _validator.CurrentContentType == XmlSchemaContentType.Mixed)) 2012case XmlNodeType.Whitespace: 2538case XmlNodeType.Whitespace: 2606case XmlNodeType.Whitespace: 2667case XmlNodeType.Whitespace:
System\Xml\Core\XsdValidatingReaderAsync.cs (2)
506case XmlNodeType.Whitespace: 876case XmlNodeType.Whitespace:
System\Xml\Dom\DocumentSchemaValidator.cs (2)
306case XmlNodeType.Whitespace: 743case XmlNodeType.Whitespace:
System\Xml\Dom\DocumentXPathNavigator.cs (10)
59case XmlNodeType.Whitespace: 175case XmlNodeType.Whitespace: 1074case XmlNodeType.Whitespace: 1547case XmlNodeType.Whitespace: 1570case XmlNodeType.Whitespace: 1620case XmlNodeType.Whitespace: 1680case XmlNodeType.Whitespace: 1739case XmlNodeType.Whitespace: 2045case XmlNodeType.Whitespace: 2113case XmlNodeType.Whitespace:
System\Xml\Dom\XmlCDataSection.cs (1)
54case XmlNodeType.Whitespace:
System\Xml\Dom\XmlCharacterData.cs (1)
206case XmlNodeType.Whitespace:
System\Xml\Dom\XmlDocument.cs (7)
468case XmlNodeType.Whitespace: 579case XmlNodeType.Whitespace: 799case XmlNodeType.Whitespace: 836case XmlNodeType.Whitespace: 1014case XmlNodeType.Whitespace: 1157case XmlNodeType.Whitespace: 1254return XmlNodeType.Whitespace;
System\Xml\Dom\XmlDocumentFragment.cs (1)
136case XmlNodeType.Whitespace:
System\Xml\Dom\XmlElement.cs (1)
225case XmlNodeType.Whitespace:
System\Xml\Dom\XmlEntity.cs (1)
97type == XmlNodeType.Whitespace ||
System\Xml\Dom\XmlEntityReference.cs (1)
140case XmlNodeType.Whitespace:
System\Xml\Dom\XmlLoader.cs (2)
185case XmlNodeType.Whitespace: 518case XmlNodeType.Whitespace:
System\Xml\Dom\XmlNode.cs (8)
743case XmlNodeType.Whitespace: 793|| firstNode.NodeType == XmlNodeType.Whitespace 796|| secondNode.NodeType == XmlNodeType.Whitespace); 805if (firstNode.NodeType == XmlNodeType.Whitespace) 807if (secondNode.NodeType == XmlNodeType.Whitespace) 907|| child.NodeType == XmlNodeType.Whitespace || child.NodeType == XmlNodeType.SignificantWhitespace) 935case XmlNodeType.Whitespace: 1476case XmlNodeType.Whitespace:
System\Xml\Dom\XmlNodeReader.cs (1)
180case XmlNodeType.Whitespace:
System\Xml\Dom\XmlSignificantWhiteSpace.cs (1)
55case XmlNodeType.Whitespace:
System\Xml\Dom\XmlText.cs (1)
58case XmlNodeType.Whitespace:
System\Xml\Dom\XmlWhitespace.cs (2)
42return XmlNodeType.Whitespace; 56case XmlNodeType.Whitespace:
System\Xml\Schema\DtdValidator.cs (1)
69case XmlNodeType.Whitespace:
System\Xml\Schema\Inference\Infer.cs (2)
693if (_xtr.NodeType == XmlNodeType.Whitespace) 782do { _xtr.Read(); } while ((!_xtr.EOF) && ((_xtr.NodeType == XmlNodeType.CDATA) || (_xtr.NodeType == XmlNodeType.Text) || (_xtr.NodeType == XmlNodeType.Comment) || (_xtr.NodeType == XmlNodeType.ProcessingInstruction) || (_xtr.NodeType == XmlNodeType.Whitespace) || (_xtr.NodeType == XmlNodeType.SignificantWhitespace) || (_xtr.NodeType == XmlNodeType.XmlDeclaration)));
System\Xml\Schema\Parser.cs (1)
315case XmlNodeType.Whitespace:
System\Xml\Schema\XdrValidator.cs (1)
76case XmlNodeType.Whitespace:
System\Xml\Schema\XsdValidator.cs (1)
113case XmlNodeType.Whitespace:
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (1)
680Reader.NodeType == XmlNodeType.Whitespace ||
System\Xml\Serialization\XmlSerializationReader.cs (4)
1204if (_r.NodeType == XmlNodeType.None || _r.NodeType == XmlNodeType.Whitespace) 1234if (unknownNode.NodeType != XmlNodeType.None && unknownNode.NodeType != XmlNodeType.Whitespace && _events.OnUnknownNode != null) 1406while (_r.NodeType == XmlNodeType.Whitespace) _r.Skip(); 1867while (_r.NodeType == XmlNodeType.Whitespace) _r.Skip();
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
2292ilg.Ldc(XmlNodeType.Whitespace);
System\Xml\XPath\XPathDocument.cs (2)
246goto case XmlNodeType.Whitespace; 249case XmlNodeType.Whitespace:
System\Xml\XPath\XPathNavigator.cs (1)
2093case XmlNodeType.Whitespace:
System\Xml\XPath\XPathNavigatorReader.cs (1)
54XmlNodeType.Whitespace, // XPathNodeType.Whitespace
System\Xml\Xsl\Runtime\WhitespaceRuleReader.cs (2)
109goto case XmlNodeType.Whitespace; 121case XmlNodeType.Whitespace:
System\Xml\Xsl\Xslt\XsltInput.cs (7)
122while (MoveToNextSibling() && _nodeType == XmlNodeType.Whitespace) ; 202_reader.NodeType == XmlNodeType.Whitespace || _reader.NodeType == XmlNodeType.SignificantWhitespace || 258Debug.Assert(_reader.NodeType == XmlNodeType.Text || _reader.NodeType == XmlNodeType.Whitespace || _reader.NodeType == XmlNodeType.SignificantWhitespace); 394case XmlNodeType.Whitespace: 430/*default: */ XmlNodeType.Whitespace 441Debug.Assert(_nodeType == XmlNodeType.Text || _nodeType == XmlNodeType.Whitespace || _nodeType == XmlNodeType.SignificantWhitespace); 456case XmlNodeType.Whitespace:
System\Xml\Xsl\Xslt\XsltLoader.cs (7)
464case XmlNodeType.Whitespace: 1108case XmlNodeType.Whitespace: 1452case XmlNodeType.Whitespace: 1499case XmlNodeType.Whitespace: 1712case XmlNodeType.Whitespace: 2028case XmlNodeType.Whitespace: 3061if (_input.NodeType != XmlNodeType.Whitespace)
System\Xml\Xsl\XsltOld\NavigatorOutput.cs (1)
65case XmlNodeType.Whitespace:
System\Xml\Xsl\XsltOld\ReaderOutput.cs (4)
341_currentInfo.NodeType = XmlNodeType.Whitespace; 342goto case XmlNodeType.Whitespace; 346case XmlNodeType.Whitespace: 411case XmlNodeType.Whitespace:
System\Xml\Xsl\XsltOld\SequentialOutput.cs (3)
373case XmlNodeType.Whitespace: 431case XmlNodeType.Whitespace: 480case XmlNodeType.Whitespace:
System\Xml\Xsl\XsltOld\TextOnlyOutput.cs (1)
54case XmlNodeType.Whitespace:
System\Xml\Xsl\XsltOld\WriterOutput.cs (1)
41case XmlNodeType.Whitespace:
System.Private.Xml.Linq (9)
System\Xml\Linq\XContainer.cs (4)
928case XmlNodeType.Whitespace: 984case XmlNodeType.Whitespace: 1074case XmlNodeType.Whitespace: 1190case XmlNodeType.Whitespace:
System\Xml\Linq\XNode.cs (2)
435case XmlNodeType.Whitespace: 483case XmlNodeType.Whitespace:
System\Xml\Linq\XNodeReader.cs (2)
296return XmlNodeType.Whitespace; 302return XmlNodeType.Whitespace;
System\Xml\XPath\XNodeNavigator.cs (1)
931if (text.GetParent() is XDocument) throw new ArgumentException(SR.Format(SR.Argument_CreateNavigator, XmlNodeType.Whitespace));
System.ServiceModel.Syndication (1)
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (1)
608case XmlNodeType.Whitespace:
System.Xaml (1)
System\Xaml\Parser\XamlScanner.cs (1)
194case XmlNodeType.Whitespace: