14 references to SyntaxDiagnosticInfo
Microsoft.CodeAnalysis.CSharp (13)
Errors\SyntaxDiagnosticInfo.cs (3)
40
:
this
(offset, width, code, Array.Empty<object>())
45
:
this
(0, 0, code, args)
56
return new
SyntaxDiagnosticInfo
(offset, this.Width, (ErrorCode)this.Code, this.Arguments);
Errors\XmlSyntaxDiagnosticInfo.cs (1)
21
:
base
(offset, width, ErrorCode.WRN_XMLParseError, args)
Parser\AbstractLexer.cs (1)
100
return new
SyntaxDiagnosticInfo
(offset, width, code, args);
Parser\DocumentationCommentParser.cs (2)
796
SyntaxDiagnosticInfo crefInfo = new
SyntaxDiagnosticInfo
(rawInfo.Offset, rawInfo.Width, ErrorCode.WRN_ErrorOverride, rawInfo, rawInfo.Code);
1041
SyntaxDiagnosticInfo crefInfo = new
SyntaxDiagnosticInfo
(offset, width, ErrorCode.WRN_ErrorOverride, rawInfo, rawInfo.Code);
Parser\SyntaxParser.cs (5)
679
return new
SyntaxDiagnosticInfo
(offset, width, code, SyntaxFacts.GetText(expected));
683
return new
SyntaxDiagnosticInfo
(offset, width, code, /*unused*/string.Empty, SyntaxFacts.GetText(actual));
943
return new
SyntaxDiagnosticInfo
(offset, width, code, args);
948
return new
SyntaxDiagnosticInfo
(offset: 0, node.Width, code, args);
1094
new
SyntaxDiagnosticInfo
(finalDiagnosticOffset, diagnostic.Width, (ErrorCode)diagnostic.Code, diagnostic.Arguments));
Syntax\InternalSyntax\SyntaxFirstTokenReplacer.cs (1)
75
new
SyntaxDiagnosticInfo
(
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
121
verifyWithSeverity(new
SyntaxDiagnosticInfo
(1, 2, ErrorCode.ERR_DuplicateTypeParameter, args));