22 implementations of LineNumber
Microsoft.Build (2)
ElementLocation\XmlAttributeWithLocation.cs (1)
45
public int
LineNumber
ElementLocation\XmlElementWithLocation.cs (1)
62
public int
LineNumber
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (1)
159
public virtual int
LineNumber
{
System.IO.Packaging (1)
System\IO\Packaging\XmlWrappingReader.cs (1)
156
public virtual int
LineNumber
System.Private.DataContractSerialization (3)
System\Runtime\Serialization\XmlSerializableReader.cs (1)
169
int IXmlLineInfo.
LineNumber
System\Xml\XmlDictionaryReader.cs (1)
1805
public int
LineNumber
System\Xml\XmlUTF8TextReader.cs (1)
1396
public int
LineNumber
System.Private.Xml (11)
System\Xml\Cache\XPathDocumentNavigator.cs (1)
956
public int
LineNumber
System\Xml\Core\XmlAsyncCheckReader.cs (1)
961
public virtual int
LineNumber
System\Xml\Core\XmlSubtreeReader.cs (1)
1176
int IXmlLineInfo.
LineNumber
System\Xml\Core\XmlTextReader.cs (1)
333
public int
LineNumber
{ get { return _impl.LineNumber; } }
System\Xml\Core\XmlTextReaderImpl.cs (1)
1906
public int
LineNumber
System\Xml\Core\XmlValidatingReader.cs (1)
259
public int
LineNumber
{ get { return _impl.LineNumber; } }
System\Xml\Core\XmlValidatingReaderImpl.cs (1)
778
public int
LineNumber
System\Xml\Core\XmlWrappingReader.cs (1)
141
public virtual int
LineNumber
System\Xml\Core\XsdCachingReader.cs (1)
610
int IXmlLineInfo.
LineNumber
System\Xml\Core\XsdValidatingReader.cs (1)
1890
public int
LineNumber
System\Xml\IXmlLineInfo.cs (1)
16
public virtual int
LineNumber
{ get { return 0; } }
System.Private.Xml.Linq (3)
System\Xml\Linq\XNodeReader.cs (1)
1000
int IXmlLineInfo.
LineNumber
System\Xml\Linq\XObject.cs (1)
390
int IXmlLineInfo.
LineNumber
System\Xml\XPath\XNodeNavigator.cs (1)
698
int IXmlLineInfo.
LineNumber
System.Xaml (1)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (1)
159
public virtual int
LineNumber
{
103 references to LineNumber
illink (1)
Linker.Steps\ProcessLinkerXmlBase.cs (1)
472
? new MessageOrigin (_xmlDocumentLocation, lineInfo.
LineNumber
, lineInfo.LinePosition, _resource?.Assembly)
Microsoft.AspNetCore.Rewrite (2)
IISUrlRewrite\InvalidUrlRewriteFormatException.cs (2)
23
LineNumber = xmlLineInfo.
LineNumber
;
30
return Resources.FormatError_UrlRewriteParseError(message, xmlLineInfo.
LineNumber
, xmlLineInfo.LinePosition);
Microsoft.Build (2)
ElementLocation\XmlDocumentWithLocation.cs (2)
204
return new XmlElementWithLocation(prefix, localName, namespaceURI, this, _reader.
LineNumber
, _reader.LinePosition);
225
return new XmlAttributeWithLocation(prefix, localName, namespaceURI, this, _reader.
LineNumber
, _reader.LinePosition);
Microsoft.Build.Tasks.Core (4)
AppConfig\AppConfig.cs (2)
49
lineNumber = info.
LineNumber
;
62
lineNumber = info.
LineNumber
;
RedistList.cs (1)
863
reader is IXmlLineInfo ? ((IXmlLineInfo)reader).
LineNumber
: 0));
ResourceHandling\MSBuildResXReader.cs (1)
200
log?.LogWarningWithCodeFromResources(null, resxFilename, ((IXmlLineInfo)elem).
LineNumber
, ((IXmlLineInfo)elem).LinePosition, 0, 0, "GenerateResource.BinaryFormatterUse", name, typename);
Microsoft.CodeAnalysis (1)
Diagnostic\XmlLocation.cs (1)
42
int lineNumber = Math.Max(xmlLineInfo.
LineNumber
- 1, 0);
Microsoft.Extensions.Configuration.Xml (4)
XmlStreamConfigurationProvider.cs (4)
138
var lineNumber = lineInfo?.
LineNumber
;
150
var lineNumber = lineInfo?.
LineNumber
;
196
SR.Format(SR.Msg_LineInfo, lineInfo.
LineNumber
, lineInfo.LinePosition);
212
var lineNumber = lineInfo?.
LineNumber
;
PresentationBuildTasks (6)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
861
lineNumber = xmlLineInfo.
LineNumber
;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (3)
5312
return _xmlLineInfo.
LineNumber
+ _parserContext.LineNumber - 1;
5316
return _xmlLineInfo.
LineNumber
;
5341
_xmlLineInfo.
LineNumber
== 1)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
1467
throw new XmlException(string.Format(CultureInfo.InvariantCulture, message, args), null, info == null ? 1 : info.
LineNumber
,
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (1)
161
return ( _readerAsIXmlLineInfo == null ) ? 0 : _readerAsIXmlLineInfo.
LineNumber
;
System.IO.Packaging (24)
System\IO\Packaging\PartBasedPackageProperties.cs (14)
390
null, ((IXmlLineInfo)reader).
LineNumber
, ((IXmlLineInfo)reader).LinePosition);
499
null, ((IXmlLineInfo)reader).
LineNumber
, ((IXmlLineInfo)reader).LinePosition);
506
null, ((IXmlLineInfo)reader).
LineNumber
, ((IXmlLineInfo)reader).LinePosition);
525
null, ((IXmlLineInfo)reader).
LineNumber
, ((IXmlLineInfo)reader).LinePosition);
532
null, ((IXmlLineInfo)reader).
LineNumber
, ((IXmlLineInfo)reader).LinePosition);
546
null, ((IXmlLineInfo)reader).
LineNumber
, ((IXmlLineInfo)reader).LinePosition);
554
null, ((IXmlLineInfo)reader).
LineNumber
, ((IXmlLineInfo)reader).LinePosition);
563
null, ((IXmlLineInfo)reader).
LineNumber
, ((IXmlLineInfo)reader).LinePosition);
578
null, ((IXmlLineInfo)reader).
LineNumber
, ((IXmlLineInfo)reader).LinePosition);
612
null, ((IXmlLineInfo)reader).
LineNumber
, ((IXmlLineInfo)reader).LinePosition);
621
null, ((IXmlLineInfo)reader).
LineNumber
, ((IXmlLineInfo)reader).LinePosition);
631
null, ((IXmlLineInfo)reader).
LineNumber
, ((IXmlLineInfo)reader).LinePosition);
649
null, ((IXmlLineInfo)reader).
LineNumber
, ((IXmlLineInfo)reader).LinePosition);
671
exc, ((IXmlLineInfo)reader).
LineNumber
, ((IXmlLineInfo)reader).LinePosition);
System\IO\Packaging\XmlCompatibilityReader.cs (1)
1409
throw new XmlException(string.Format(CultureInfo.InvariantCulture, message, args), null, info == null ? 1 : info.
LineNumber
,
System\IO\Packaging\XmlWrappingReader.cs (1)
160
return (_readerAsIXmlLineInfo == null) ? 0 : _readerAsIXmlLineInfo.
LineNumber
;
System\IO\Packaging\ZipPackage.cs (8)
989
throw new XmlException(SR.TypesTagHasExtraAttributes, null, ((IXmlLineInfo)reader).
LineNumber
, ((IXmlLineInfo)reader).LinePosition);
1026
throw new XmlException(SR.TypesXmlDoesNotMatchSchema, null, ((IXmlLineInfo)reader).
LineNumber
, ((IXmlLineInfo)reader).LinePosition);
1032
throw new XmlException(SR.TypesElementExpected, null, ((IXmlLineInfo)reader).
LineNumber
, ((IXmlLineInfo)reader).LinePosition);
1166
throw new XmlException(SR.DefaultTagDoesNotMatchSchema, null, ((IXmlLineInfo)reader).
LineNumber
, ((IXmlLineInfo)reader).LinePosition);
1193
throw new XmlException(SR.OverrideTagDoesNotMatchSchema, null, ((IXmlLineInfo)reader).
LineNumber
, ((IXmlLineInfo)reader).LinePosition);
1229
throw new XmlException(SR.Format(SR.ElementIsNotEmptyElement, elementName), null, ((IXmlLineInfo)reader).
LineNumber
, ((IXmlLineInfo)reader).LinePosition);
1281
throw new XmlException(SR.Format(SR.RequiredAttributeEmpty, tagName, attributeName), null, ((IXmlLineInfo)reader).
LineNumber
, ((IXmlLineInfo)reader).LinePosition);
1290
throw 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)
1029
return (iXmlLineInfo == null) ? 0 : iXmlLineInfo.
LineNumber
;
System\Runtime\Serialization\XmlSerializableReader.cs (1)
174
return (xmlLineInfo == null) ? _xmlReader.LineNumber : xmlLineInfo.
LineNumber
;
System\Xml\XmlDictionaryReader.cs (1)
1812
return lineInfo.
LineNumber
;
System\Xml\XmlExceptionHelper.cs (2)
36
s += " " + SR.Format(SR.XmlLineInfo, lineInfo.
LineNumber
, lineInfo.LinePosition);
48
s += " " + SR.Format(SR.XmlLineInfo, lineInfo.
LineNumber
, lineInfo.LinePosition);
System.Private.Xml (32)
System\Xml\Cache\XPathDocumentBuilder.cs (2)
706
lineNum = _lineInfo.
LineNumber
;
915
_lineNum = _lineInfo.
LineNumber
;
System\Xml\Core\ValidatingReaderNodeData.cs (1)
199
_lineNo = lineInfo.
LineNumber
;
System\Xml\Core\XmlAsyncCheckReader.cs (1)
965
return _readerAsIXmlLineInfo.
LineNumber
;
System\Xml\Core\XmlReader.cs (1)
1457
lineInfo.
LineNumber
.ToString(CultureInfo.InvariantCulture),
System\Xml\Core\XmlSubtreeReader.cs (1)
1184
return lineInfo.
LineNumber
;
System\Xml\Core\XmlValidatingReaderImpl.cs (1)
782
return ((IXmlLineInfo)_coreReader).
LineNumber
;
System\Xml\Core\XmlWrappingReader.cs (1)
145
return (readerAsIXmlLineInfo == null) ? 0 : readerAsIXmlLineInfo.
LineNumber
;
System\Xml\Core\XsdValidatingReader.cs (1)
1896
return _lineInfo.
LineNumber
;
System\Xml\IXmlLineInfo.cs (1)
51
return _lineInfo.
LineNumber
;
System\Xml\Schema\XmlSchemaValidator.cs (10)
1231
CompleteValidationError(_context, _eventHandler, _nsResolver, _sourceUriString, _positionInfo.
LineNumber
, _positionInfo.LinePosition, _schemaSet);
1379
ElementValidationError(elementName, _context, _eventHandler, _nsResolver, _sourceUriString, _positionInfo.
LineNumber
, _positionInfo.LinePosition, _schemaSet);
1916
_idRefListHead = new IdRefNode(_idRefListHead, name, _positionInfo.
LineNumber
, _positionInfo.LinePosition);
2244
constraintStructures[j].axisSelector.PushKS(_positionInfo.
LineNumber
, _positionInfo.LinePosition);
2809
SendValidationEvent(new XmlSchemaValidationException(code, args, _sourceUriString, _positionInfo.
LineNumber
, _positionInfo.LinePosition));
2814
SendValidationEvent(new XmlSchemaValidationException(code, arg, _sourceUriString, _positionInfo.
LineNumber
, _positionInfo.LinePosition));
2819
SendValidationEvent(new XmlSchemaValidationException(code, new string?[] { arg1, arg2 }, _sourceUriString, _positionInfo.
LineNumber
, _positionInfo.LinePosition));
2826
SendValidationEvent(new XmlSchemaValidationException(code, args, innerException, _sourceUriString, _positionInfo.
LineNumber
, _positionInfo.LinePosition), severity);
2832
SendValidationEvent(new XmlSchemaValidationException(code, args, innerException, _sourceUriString, _positionInfo.
LineNumber
, _positionInfo.LinePosition), XmlSeverityType.Error);
2849
SendValidationEvent(new XmlSchemaValidationException(code, msg, _sourceUriString, _positionInfo.
LineNumber
, _positionInfo.LinePosition), severity);
System\Xml\Serialization\XmlSerializationReader.cs (1)
1255
lineNumber = lineInfo.
LineNumber
;
System\Xml\Serialization\XmlSerializer.cs (1)
520
throw new InvalidOperationException(SR.Format(SR.XmlSerializeErrorDetails, lineInfo.
LineNumber
.ToString(CultureInfo.InvariantCulture), lineInfo.LinePosition.ToString(CultureInfo.InvariantCulture)), e);
System\Xml\XmlException.cs (2)
134
this(res, new string?[] { arg }, innerException, (lineInfo == null ? 0 : lineInfo.
LineNumber
), (lineInfo == null ? 0 : lineInfo.LinePosition), null)
142
this(res, args, null, (lineInfo == null ? 0 : lineInfo.
LineNumber
), (lineInfo == null ? 0 : lineInfo.LinePosition), sourceUri)
System\Xml\Xsl\Xslt\XsltInput.cs (8)
183
rec.start = new Location(_readerLineInfo.
LineNumber
, _readerLineInfo.LinePosition - PositionAdjustment(_reader.NodeType));
191
rec.end = new Location(_readerLineInfo.
LineNumber
, _readerLineInfo.LinePosition - PositionAdjustment(_reader.NodeType));
214
int line = _readerLineInfo.
LineNumber
;
254
rec.start = new Location(_readerLineInfo.
LineNumber
, _readerLineInfo.LinePosition - 1);
264
rec.end = new Location(_readerLineInfo.
LineNumber
, _readerLineInfo.LinePosition + 1);
304
rec.valueStart = new Location(_readerLineInfo.
LineNumber
, _readerLineInfo.LinePosition + correction);
334
rec.end = new Location(_readerLineInfo.
LineNumber
, _readerLineInfo.LinePosition + correction);
1085
loc = new Location(_readerLineInfo.
LineNumber
, _readerLineInfo.LinePosition);
System.Private.Xml.Linq (13)
System\Xml\Linq\XContainer.cs (8)
1027
e.SetLineInfo(_lineInfo.
LineNumber
, _lineInfo.LinePosition);
1036
a.SetLineInfo(_lineInfo.
LineNumber
, _lineInfo.LinePosition);
1062
e.SetEndElementLineInfo(_lineInfo.
LineNumber
, _lineInfo.LinePosition);
1116
newNode.SetLineInfo(_lineInfo.
LineNumber
, _lineInfo.LinePosition);
1141
e.SetLineInfo(_lineInfo.
LineNumber
, _lineInfo.LinePosition);
1152
a.SetLineInfo(_lineInfo.
LineNumber
, _lineInfo.LinePosition);
1178
e.SetEndElementLineInfo(_lineInfo.
LineNumber
, _lineInfo.LinePosition);
1232
newNode.SetLineInfo(_lineInfo.
LineNumber
, _lineInfo.LinePosition);
System\Xml\Linq\XDocument.cs (1)
496
d.SetLineInfo(li.
LineNumber
, li.LinePosition);
System\Xml\Linq\XElement.cs (2)
2064
SetLineInfo(li.
LineNumber
, li.LinePosition);
2074
a.SetLineInfo(li.
LineNumber
, li.LinePosition);
System\Xml\Linq\XNodeReader.cs (1)
1023
return li.
LineNumber
;
System\Xml\XPath\XNodeNavigator.cs (1)
705
return li.
LineNumber
;
System.ServiceModel.Syndication (2)
System\ServiceModel\Syndication\FeedUtils.cs (1)
17
error = $"{SR.Format(SR.ErrorInLine, lineInfo.
LineNumber
, lineInfo.LinePosition)} {error}";
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (1)
583
s += " " + SR.Format(SR.XmlLineInfo, lineInfo.
LineNumber
, lineInfo.LinePosition);
System.Windows.Forms (1)
System\Resources\ResXResourceReader.cs (1)
333
pt.Y = lineInfo.
LineNumber
;
System.Xaml (5)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
1467
throw new XmlException(string.Format(CultureInfo.InvariantCulture, message, args), null, info == null ? 1 : info.
LineNumber
,
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (1)
161
return ( _readerAsIXmlLineInfo == null ) ? 0 : _readerAsIXmlLineInfo.
LineNumber
;
System\Xaml\Parser\XamlAttribute.cs (1)
36
LineNumber = lineInfo.
LineNumber
;
System\Xaml\Parser\XamlScanner.cs (1)
866
e.SetLineInfo(_xmlLineInfo.
LineNumber
, _xmlLineInfo.LinePosition);
System\Xaml\Parser\XamlScannerNode.cs (1)
20
LineNumber = lineInfo.
LineNumber
;
VisualBasicSyntaxGenerator (1)
XML\ParseTreeDescription.vb (1)
67
fullMessage += String.Format("({0})", lineInfo.
LineNumber
)