22 implementations of LinePosition
Microsoft.Build (2)
ElementLocation\XmlAttributeWithLocation.cs (1)
56public int LinePosition
ElementLocation\XmlElementWithLocation.cs (1)
73public int LinePosition
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (1)
165public virtual int LinePosition {
System.IO.Packaging (1)
System\IO\Packaging\XmlWrappingReader.cs (1)
164public virtual int LinePosition
System.Private.DataContractSerialization (3)
System\Runtime\Serialization\XmlSerializableReader.cs (1)
178int IXmlLineInfo.LinePosition
System\Xml\XmlDictionaryReader.cs (1)
1816public int LinePosition
System\Xml\XmlUTF8TextReader.cs (1)
1406public int LinePosition
System.Private.Xml (11)
System\Xml\Cache\XPathDocumentNavigator.cs (1)
971public int LinePosition
System\Xml\Core\XmlAsyncCheckReader.cs (1)
969public virtual int LinePosition
System\Xml\Core\XmlSubtreeReader.cs (1)
1191int IXmlLineInfo.LinePosition
System\Xml\Core\XmlTextReader.cs (1)
335public int LinePosition { get { return _impl.LinePosition; } }
System\Xml\Core\XmlTextReaderImpl.cs (1)
1915public int LinePosition
System\Xml\Core\XmlValidatingReader.cs (1)
261public int LinePosition { get { return _impl.LinePosition; } }
System\Xml\Core\XmlValidatingReaderImpl.cs (1)
787public int LinePosition
System\Xml\Core\XmlWrappingReader.cs (1)
149public virtual int LinePosition
System\Xml\Core\XsdCachingReader.cs (1)
618int IXmlLineInfo.LinePosition
System\Xml\Core\XsdValidatingReader.cs (1)
1903public int LinePosition
System\Xml\IXmlLineInfo.cs (1)
17public virtual int LinePosition { get { return 0; } }
System.Private.Xml.Linq (3)
System\Xml\Linq\XNodeReader.cs (1)
1030int IXmlLineInfo.LinePosition
System\Xml\Linq\XObject.cs (1)
400int IXmlLineInfo.LinePosition
System\Xml\XPath\XNodeNavigator.cs (1)
711int IXmlLineInfo.LinePosition
System.Xaml (1)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (1)
165public virtual int LinePosition {
100 references to LinePosition
illink (1)
Microsoft.AspNetCore.Rewrite (2)
IISUrlRewrite\InvalidUrlRewriteFormatException.cs (2)
24LinePosition = xmlLineInfo.LinePosition; 30return Resources.FormatError_UrlRewriteParseError(message, xmlLineInfo.LineNumber, xmlLineInfo.LinePosition);
Microsoft.Build (2)
ElementLocation\XmlDocumentWithLocation.cs (2)
204return new XmlElementWithLocation(prefix, localName, namespaceURI, this, _reader.LineNumber, _reader.LinePosition); 225return new XmlAttributeWithLocation(prefix, localName, namespaceURI, this, _reader.LineNumber, _reader.LinePosition);
Microsoft.Build.Tasks.Core (3)
AppConfig\AppConfig.cs (2)
50linePosition = info.LinePosition; 63linePosition = info.LinePosition;
ResourceHandling\MSBuildResXReader.cs (1)
200log?.LogWarningWithCodeFromResources(null, resxFilename, ((IXmlLineInfo)elem).LineNumber, ((IXmlLineInfo)elem).LinePosition, 0, 0, "GenerateResource.BinaryFormatterUse", name, typename);
Microsoft.CodeAnalysis (2)
Diagnostic\XmlLocation.cs (2)
39Debug.Assert(xmlLineInfo.LinePosition != 0); 43int columnNumber = Math.Max(xmlLineInfo.LinePosition - 1, 0);
Microsoft.Extensions.Configuration.Xml (4)
XmlStreamConfigurationProvider.cs (4)
139var linePosition = lineInfo?.LinePosition; 151var linePosition = lineInfo?.LinePosition; 196SR.Format(SR.Msg_LineInfo, lineInfo.LineNumber, lineInfo.LinePosition); 213var linePosition = lineInfo?.LinePosition;
PresentationBuildTasks (4)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (2)
5343return _xmlLineInfo.LinePosition + _parserContext.LinePosition; 5347return _xmlLineInfo.LinePosition;
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
1468info == null ? 1 : info.LinePosition);
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (1)
167return ( _readerAsIXmlLineInfo == null ) ? 0 : _readerAsIXmlLineInfo.LinePosition;
System.IO.Packaging (24)
System\IO\Packaging\PartBasedPackageProperties.cs (14)
390null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition); 499null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition); 506null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition); 525null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition); 532null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition); 546null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition); 554null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition); 563null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition); 578null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition); 612null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition); 621null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition); 631null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition); 649null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition); 671exc, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition);
System\IO\Packaging\XmlCompatibilityReader.cs (1)
1410info == null ? 1 : info.LinePosition);
System\IO\Packaging\XmlWrappingReader.cs (1)
168return (_readerAsIXmlLineInfo == null) ? 0 : _readerAsIXmlLineInfo.LinePosition;
System\IO\Packaging\ZipPackage.cs (8)
989throw new XmlException(SR.TypesTagHasExtraAttributes, null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition); 1026throw new XmlException(SR.TypesXmlDoesNotMatchSchema, null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition); 1032throw new XmlException(SR.TypesElementExpected, null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition); 1166throw new XmlException(SR.DefaultTagDoesNotMatchSchema, null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition); 1193throw new XmlException(SR.OverrideTagDoesNotMatchSchema, null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition); 1229throw new XmlException(SR.Format(SR.ElementIsNotEmptyElement, elementName), null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition); 1281throw new XmlException(SR.Format(SR.RequiredAttributeEmpty, tagName, attributeName), null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition); 1290throw new XmlException(SR.Format(SR.RequiredAttributeMissing, tagName, attributeName), null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition);
System.Private.DataContractSerialization (5)
System\Runtime\Serialization\XmlReaderDelegator.cs (1)
1038return (iXmlLineInfo == null) ? 0 : iXmlLineInfo.LinePosition;
System\Runtime\Serialization\XmlSerializableReader.cs (1)
183return (xmlLineInfo == null) ? _xmlReader.LinePosition : xmlLineInfo.LinePosition;
System\Xml\XmlDictionaryReader.cs (1)
1823return lineInfo.LinePosition;
System\Xml\XmlExceptionHelper.cs (2)
36s += " " + SR.Format(SR.XmlLineInfo, lineInfo.LineNumber, lineInfo.LinePosition); 48s += " " + SR.Format(SR.XmlLineInfo, lineInfo.LineNumber, lineInfo.LinePosition);
System.Private.Xml (32)
System\Xml\Cache\XPathDocumentBuilder.cs (2)
707linePos = _lineInfo.LinePosition; 916_linePos = _lineInfo.LinePosition;
System\Xml\Core\ValidatingReaderNodeData.cs (1)
200_linePos = lineInfo.LinePosition;
System\Xml\Core\XmlAsyncCheckReader.cs (1)
973return _readerAsIXmlLineInfo.LinePosition;
System\Xml\Core\XmlReader.cs (1)
1458lineInfo.LinePosition.ToString(CultureInfo.InvariantCulture)
System\Xml\Core\XmlSubtreeReader.cs (1)
1199return lineInfo.LinePosition;
System\Xml\Core\XmlValidatingReaderImpl.cs (1)
791return ((IXmlLineInfo)_coreReader).LinePosition;
System\Xml\Core\XmlWrappingReader.cs (1)
153return (readerAsIXmlLineInfo == null) ? 0 : readerAsIXmlLineInfo.LinePosition;
System\Xml\Core\XsdValidatingReader.cs (1)
1909return _lineInfo.LinePosition;
System\Xml\IXmlLineInfo.cs (1)
59return _lineInfo.LinePosition;
System\Xml\Schema\XmlSchemaValidator.cs (10)
1231CompleteValidationError(_context, _eventHandler, _nsResolver, _sourceUriString, _positionInfo.LineNumber, _positionInfo.LinePosition, _schemaSet); 1379ElementValidationError(elementName, _context, _eventHandler, _nsResolver, _sourceUriString, _positionInfo.LineNumber, _positionInfo.LinePosition, _schemaSet); 1916_idRefListHead = new IdRefNode(_idRefListHead, name, _positionInfo.LineNumber, _positionInfo.LinePosition); 2244constraintStructures[j].axisSelector.PushKS(_positionInfo.LineNumber, _positionInfo.LinePosition); 2809SendValidationEvent(new XmlSchemaValidationException(code, args, _sourceUriString, _positionInfo.LineNumber, _positionInfo.LinePosition)); 2814SendValidationEvent(new XmlSchemaValidationException(code, arg, _sourceUriString, _positionInfo.LineNumber, _positionInfo.LinePosition)); 2819SendValidationEvent(new XmlSchemaValidationException(code, new string?[] { arg1, arg2 }, _sourceUriString, _positionInfo.LineNumber, _positionInfo.LinePosition)); 2826SendValidationEvent(new XmlSchemaValidationException(code, args, innerException, _sourceUriString, _positionInfo.LineNumber, _positionInfo.LinePosition), severity); 2832SendValidationEvent(new XmlSchemaValidationException(code, args, innerException, _sourceUriString, _positionInfo.LineNumber, _positionInfo.LinePosition), XmlSeverityType.Error); 2849SendValidationEvent(new XmlSchemaValidationException(code, msg, _sourceUriString, _positionInfo.LineNumber, _positionInfo.LinePosition), severity);
System\Xml\Serialization\XmlSerializationReader.cs (1)
1256linePosition = lineInfo.LinePosition;
System\Xml\Serialization\XmlSerializer.cs (1)
520throw new InvalidOperationException(SR.Format(SR.XmlSerializeErrorDetails, lineInfo.LineNumber.ToString(CultureInfo.InvariantCulture), lineInfo.LinePosition.ToString(CultureInfo.InvariantCulture)), e);
System\Xml\XmlException.cs (2)
134this(res, new string?[] { arg }, innerException, (lineInfo == null ? 0 : lineInfo.LineNumber), (lineInfo == null ? 0 : lineInfo.LinePosition), null) 142this(res, args, null, (lineInfo == null ? 0 : lineInfo.LineNumber), (lineInfo == null ? 0 : lineInfo.LinePosition), sourceUri)
System\Xml\Xsl\Xslt\XsltInput.cs (8)
183rec.start = new Location(_readerLineInfo.LineNumber, _readerLineInfo.LinePosition - PositionAdjustment(_reader.NodeType)); 191rec.end = new Location(_readerLineInfo.LineNumber, _readerLineInfo.LinePosition - PositionAdjustment(_reader.NodeType)); 215int pos = _readerLineInfo.LinePosition; 254rec.start = new Location(_readerLineInfo.LineNumber, _readerLineInfo.LinePosition - 1); 264rec.end = new Location(_readerLineInfo.LineNumber, _readerLineInfo.LinePosition + 1); 304rec.valueStart = new Location(_readerLineInfo.LineNumber, _readerLineInfo.LinePosition + correction); 334rec.end = new Location(_readerLineInfo.LineNumber, _readerLineInfo.LinePosition + correction); 1085loc = new Location(_readerLineInfo.LineNumber, _readerLineInfo.LinePosition);
System.Private.Xml.Linq (13)
System\Xml\Linq\XContainer.cs (8)
1027e.SetLineInfo(_lineInfo.LineNumber, _lineInfo.LinePosition); 1036a.SetLineInfo(_lineInfo.LineNumber, _lineInfo.LinePosition); 1062e.SetEndElementLineInfo(_lineInfo.LineNumber, _lineInfo.LinePosition); 1116newNode.SetLineInfo(_lineInfo.LineNumber, _lineInfo.LinePosition); 1141e.SetLineInfo(_lineInfo.LineNumber, _lineInfo.LinePosition); 1152a.SetLineInfo(_lineInfo.LineNumber, _lineInfo.LinePosition); 1178e.SetEndElementLineInfo(_lineInfo.LineNumber, _lineInfo.LinePosition); 1232newNode.SetLineInfo(_lineInfo.LineNumber, _lineInfo.LinePosition);
System\Xml\Linq\XDocument.cs (1)
496d.SetLineInfo(li.LineNumber, li.LinePosition);
System\Xml\Linq\XElement.cs (2)
2064SetLineInfo(li.LineNumber, li.LinePosition); 2074a.SetLineInfo(li.LineNumber, li.LinePosition);
System\Xml\Linq\XNodeReader.cs (1)
1053return li.LinePosition;
System\Xml\XPath\XNodeNavigator.cs (1)
718return li.LinePosition;
System.ServiceModel.Syndication (2)
System\ServiceModel\Syndication\FeedUtils.cs (1)
17error = $"{SR.Format(SR.ErrorInLine, lineInfo.LineNumber, lineInfo.LinePosition)} {error}";
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (1)
583s += " " + SR.Format(SR.XmlLineInfo, lineInfo.LineNumber, lineInfo.LinePosition);
System.Windows.Forms (1)
System\Resources\ResXResourceReader.cs (1)
334pt.X = lineInfo.LinePosition;
System.Xaml (5)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
1468info == null ? 1 : info.LinePosition);
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (1)
167return ( _readerAsIXmlLineInfo == null ) ? 0 : _readerAsIXmlLineInfo.LinePosition;
System\Xaml\Parser\XamlAttribute.cs (1)
37LinePosition = lineInfo.LinePosition;
System\Xaml\Parser\XamlScanner.cs (1)
866e.SetLineInfo(_xmlLineInfo.LineNumber, _xmlLineInfo.LinePosition);
System\Xaml\Parser\XamlScannerNode.cs (1)
21LinePosition = lineInfo.LinePosition;