26 implementations of LineNumber
Microsoft.Build (2)
ElementLocation\XmlAttributeWithLocation.cs (1)
45public int LineNumber
ElementLocation\XmlElementWithLocation.cs (1)
62public int LineNumber
Microsoft.Maui.Controls (1)
XmlLineInfo.cs (1)
31 public int LineNumber { get; }
Microsoft.Maui.Controls.SourceGen (2)
src\Controls\src\Core\XmlLineInfo.cs (1)
31 public int LineNumber { get; }
src\Controls\src\Xaml\XamlNode.cs (1)
100 public int LineNumber { get; set; }
Microsoft.Maui.Controls.Xaml (1)
XamlNode.cs (1)
100 public int LineNumber { get; set; }
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (1)
159public virtual int LineNumber {
System.IO.Packaging (1)
System\IO\Packaging\XmlWrappingReader.cs (1)
156public virtual int LineNumber
System.Private.DataContractSerialization (3)
System\Runtime\Serialization\XmlSerializableReader.cs (1)
169int IXmlLineInfo.LineNumber
System\Xml\XmlDictionaryReader.cs (1)
1805public int LineNumber
System\Xml\XmlUTF8TextReader.cs (1)
1396public int LineNumber
System.Private.Xml (11)
System\Xml\Cache\XPathDocumentNavigator.cs (1)
956public int LineNumber
System\Xml\Core\XmlAsyncCheckReader.cs (1)
961public virtual int LineNumber
System\Xml\Core\XmlSubtreeReader.cs (1)
1176int IXmlLineInfo.LineNumber
System\Xml\Core\XmlTextReader.cs (1)
333public int LineNumber { get { return _impl.LineNumber; } }
System\Xml\Core\XmlTextReaderImpl.cs (1)
1906public int LineNumber
System\Xml\Core\XmlValidatingReader.cs (1)
259public int LineNumber { get { return _impl.LineNumber; } }
System\Xml\Core\XmlValidatingReaderImpl.cs (1)
778public int LineNumber
System\Xml\Core\XmlWrappingReader.cs (1)
141public virtual int LineNumber
System\Xml\Core\XsdCachingReader.cs (1)
610int IXmlLineInfo.LineNumber
System\Xml\Core\XsdValidatingReader.cs (1)
1890public int LineNumber
System\Xml\IXmlLineInfo.cs (1)
16public virtual int LineNumber { get { return 0; } }
System.Private.Xml.Linq (3)
System\Xml\Linq\XNodeReader.cs (1)
1000int IXmlLineInfo.LineNumber
System\Xml\Linq\XObject.cs (1)
390int IXmlLineInfo.LineNumber
System\Xml\XPath\XNodeNavigator.cs (1)
698int IXmlLineInfo.LineNumber
System.Xaml (1)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (1)
159public virtual int LineNumber {
131 references to LineNumber
illink (1)
Microsoft.AspNetCore.Rewrite (2)
IISUrlRewrite\InvalidUrlRewriteFormatException.cs (2)
23LineNumber = xmlLineInfo.LineNumber; 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 (4)
AppConfig\AppConfig.cs (2)
49lineNumber = info.LineNumber; 62lineNumber = info.LineNumber;
RedistList.cs (1)
863reader is IXmlLineInfo ? ((IXmlLineInfo)reader).LineNumber : 0));
ResourceHandling\MSBuildResXReader.cs (1)
200log?.LogWarningWithCodeFromResources(null, resxFilename, ((IXmlLineInfo)elem).LineNumber, ((IXmlLineInfo)elem).LinePosition, 0, 0, "GenerateResource.BinaryFormatterUse", name, typename);
Microsoft.CodeAnalysis (1)
Diagnostic\XmlLocation.cs (1)
42int lineNumber = Math.Max(xmlLineInfo.LineNumber - 1, 0);
Microsoft.Extensions.Configuration.Xml (4)
XmlStreamConfigurationProvider.cs (4)
138var lineNumber = lineInfo?.LineNumber; 150var lineNumber = lineInfo?.LineNumber; 196SR.Format(SR.Msg_LineInfo, lineInfo.LineNumber, lineInfo.LinePosition); 212var lineNumber = lineInfo?.LineNumber;
Microsoft.Maui.Controls (1)
XamlParseException.cs (1)
60 return string.Format("Position {0}:{1}. {2}", xmlinfo.LineNumber, xmlinfo.LinePosition, message);
Microsoft.Maui.Controls.Build.Tasks (11)
BuildException.cs (1)
40 var position = xmlinfo == null || !xmlinfo.HasLineInfo() ? "" : $"({xmlinfo.LineNumber},{xmlinfo.LinePosition})";
ExpandMarkupsVisitor.cs (1)
201 : new ElementNode(type, "", nsResolver, xmlLineInfo.LineNumber, xmlLineInfo.LinePosition);
NodeILExtensions.cs (1)
451 yield return Create(Ldc_I4, xmlLineInfo.LineNumber);
SetPropertiesVisitor.cs (4)
644 context.LoggingHelper.LogWarningOrError(BuildExceptionCode.BindingPropertyNotFound, context.XamlFilePath, lineInfo.LineNumber, lineInfo.LinePosition, 0, 0, p, previousPartTypeRef); 1174 context.LoggingHelper.LogWarningOrError(BuildExceptionCode.ObsoleteProperty, context.XamlFilePath, iXmlLineInfo.LineNumber, iXmlLineInfo.LinePosition, 0, 0, localName); 1541 context.LoggingHelper.LogWarningOrError(BuildExceptionCode.ObsoleteProperty, context.XamlFilePath, iXmlLineInfo.LineNumber, iXmlLineInfo.LinePosition, 0, 0, localName); 1546 context.LoggingHelper.LogWarningOrError(BuildExceptionCode.ObsoleteProperty, context.XamlFilePath, iXmlLineInfo.LineNumber, iXmlLineInfo.LinePosition, 0, 0, localName);
XamlCTask.cs (3)
297 LoggingHelper.LogError("XamlC", null, xpe.HelpLink, xamlFilePath, xpe.XmlInfo.LineNumber, xpe.XmlInfo.LinePosition, 0, 0, xpe.UnformattedMessage); 313 LoggingHelper.LogError("XamlC", be.Code.Code, be.HelpLink, xamlFilePath, be.XmlInfo?.LineNumber ?? 0, be.XmlInfo?.LinePosition ?? 0, 0, 0, ErrorMessages.ResourceManager.GetString(be.Code.ErrorMessageKey), be.MessageArgs); 315 LoggingHelper.LogError("XamlC", null, xpe.HelpLink, xamlFilePath, xpe.XmlInfo.LineNumber, xpe.XmlInfo.LinePosition, 0, 0, xpe.Message);
XamlTask.cs (1)
59 var rootnode = new ILRootNode(xmlType, typeReference, reader as IXmlNamespaceResolver, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition);
Microsoft.Maui.Controls.SourceGen (1)
src\Controls\src\Core\XamlParseException.cs (1)
60 return string.Format("Position {0}:{1}. {2}", xmlinfo.LineNumber, xmlinfo.LinePosition, message);
Microsoft.Maui.Controls.Xaml (15)
ApplyPropertiesVisitor.cs (1)
379 VisualDiagnostics.RegisterSourceInfo(target, new Uri($"{path};assembly={assemblyName}", UriKind.Relative), lineInfo.LineNumber, lineInfo.LinePosition);
CreateValuesVisitor.cs (2)
173 VisualDiagnostics.RegisterSourceInfo(value, new Uri($"{path};assembly={assemblyName}", UriKind.Relative), ((IXmlLineInfo)node).LineNumber, ((IXmlLineInfo)node).LinePosition); 192 VisualDiagnostics.RegisterSourceInfo(rnode.Root, new Uri($"{path};assembly={assemblyName}", UriKind.Relative), ((IXmlLineInfo)node).LineNumber, ((IXmlLineInfo)node).LinePosition);
ExpandMarkupsVisitor.cs (1)
206 : new ElementNode(xmltype, null, nsResolver, xmlLineInfo.LineNumber, xmlLineInfo.LinePosition);
IXmlLineInfoExtensions.cs (1)
9return new XmlLineInfo(xmlLineInfo.LineNumber, xmlLineInfo.LinePosition);
XamlLoader.cs (3)
78 var rootnode = new RuntimeRootNode(new XmlType(reader.NamespaceURI, reader.Name, null), view, (IXmlNamespaceResolver)reader) { LineNumber = ((IXmlLineInfo)reader).LineNumber, LinePosition = ((IXmlLineInfo)reader).LinePosition }; 121 var rootnode = new RuntimeRootNode(new XmlType(reader.NamespaceURI, reader.Name, typeArguments), null, (IXmlNamespaceResolver)reader) { LineNumber = ((IXmlLineInfo)reader).LineNumber, LinePosition = ((IXmlLineInfo)reader).LinePosition }; 162 RootNode rootNode = new RuntimeRootNode(new XmlType(reader.NamespaceURI, reader.Name, null), null, (IXmlNamespaceResolver)reader) { LineNumber = ((IXmlLineInfo)reader).LineNumber, LinePosition = ((IXmlLineInfo)reader).LinePosition };
XamlParser.cs (6)
156 return new ListNode(nodes, (IXmlNamespaceResolver)reader, ((IXmlLineInfo)reader).LineNumber, 170 reader as IXmlNamespaceResolver, elementXmlInfo.LineNumber, elementXmlInfo.LinePosition); 181 node = new ValueNode(reader.Value.Trim(), (IXmlNamespaceResolver)reader, ((IXmlLineInfo)reader).LineNumber, 322 return new ValueNode(valueString.Substring(2), (IXmlNamespaceResolver)reader, ((IXmlLineInfo)reader).LineNumber, 327 return new MarkupNode(valueString.Trim(), reader as IXmlNamespaceResolver, ((IXmlLineInfo)reader).LineNumber, 330 return new ValueNode(value, (IXmlNamespaceResolver)reader, ((IXmlLineInfo)reader).LineNumber,
XamlServiceProvider.cs (1)
332 new XmlLineInfo(((IXmlLineInfo)node).LineNumber, ((IXmlLineInfo)node).LinePosition),
PresentationBuildTasks (6)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
857lineNumber = xmlLineInfo.LineNumber;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (3)
5306return _xmlLineInfo.LineNumber + _parserContext.LineNumber - 1; 5310return _xmlLineInfo.LineNumber; 5335_xmlLineInfo.LineNumber == 1)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
1465throw new XmlException(string.Format(CultureInfo.InvariantCulture, message, args), null, info is null ? 1 : info.LineNumber,
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (1)
161return ( _readerAsIXmlLineInfo is null ) ? 0 : _readerAsIXmlLineInfo.LineNumber;
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)
1409throw new XmlException(string.Format(CultureInfo.InvariantCulture, message, args), null, info == null ? 1 : info.LineNumber,
System\IO\Packaging\XmlWrappingReader.cs (1)
160return (_readerAsIXmlLineInfo == null) ? 0 : _readerAsIXmlLineInfo.LineNumber;
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)
1029return (iXmlLineInfo == null) ? 0 : iXmlLineInfo.LineNumber;
System\Runtime\Serialization\XmlSerializableReader.cs (1)
174return (xmlLineInfo == null) ? _xmlReader.LineNumber : xmlLineInfo.LineNumber;
System\Xml\XmlDictionaryReader.cs (1)
1812return lineInfo.LineNumber;
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)
706lineNum = _lineInfo.LineNumber; 915_lineNum = _lineInfo.LineNumber;
System\Xml\Core\ValidatingReaderNodeData.cs (1)
199_lineNo = lineInfo.LineNumber;
System\Xml\Core\XmlAsyncCheckReader.cs (1)
965return _readerAsIXmlLineInfo.LineNumber;
System\Xml\Core\XmlReader.cs (1)
1457lineInfo.LineNumber.ToString(CultureInfo.InvariantCulture),
System\Xml\Core\XmlSubtreeReader.cs (1)
1184return lineInfo.LineNumber;
System\Xml\Core\XmlValidatingReaderImpl.cs (1)
782return ((IXmlLineInfo)_coreReader).LineNumber;
System\Xml\Core\XmlWrappingReader.cs (1)
145return (readerAsIXmlLineInfo == null) ? 0 : readerAsIXmlLineInfo.LineNumber;
System\Xml\Core\XsdValidatingReader.cs (1)
1896return _lineInfo.LineNumber;
System\Xml\IXmlLineInfo.cs (1)
51return _lineInfo.LineNumber;
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)
1255lineNumber = lineInfo.LineNumber;
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)); 214int line = _readerLineInfo.LineNumber; 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)
1023return li.LineNumber;
System\Xml\XPath\XNodeNavigator.cs (1)
705return li.LineNumber;
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)
332pt.Y = lineInfo.LineNumber;
System.Xaml (5)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
1465throw new XmlException(string.Format(CultureInfo.InvariantCulture, message, args), null, info is null ? 1 : info.LineNumber,
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (1)
161return ( _readerAsIXmlLineInfo is null ) ? 0 : _readerAsIXmlLineInfo.LineNumber;
System\Xaml\Parser\XamlAttribute.cs (1)
34LineNumber = lineInfo.LineNumber;
System\Xaml\Parser\XamlScanner.cs (1)
863e.SetLineInfo(_xmlLineInfo.LineNumber, _xmlLineInfo.LinePosition);
System\Xaml\Parser\XamlScannerNode.cs (1)
19LineNumber = lineInfo.LineNumber;
VisualBasicSyntaxGenerator (1)
XML\ParseTreeDescription.vb (1)
67fullMessage += String.Format("({0})", lineInfo.LineNumber)