18 references to SyntaxDiagnosticInfo
Microsoft.CodeAnalysis.CSharp (17)
Errors\SyntaxDiagnosticInfo.cs (3)
30
:
this
(offset, width, code, Array.Empty<object>())
35
:
this
(0, 0, code, args)
46
return new
SyntaxDiagnosticInfo
(offset, this.Width, (ErrorCode)this.Code, this.Arguments);
Errors\XmlSyntaxDiagnosticInfo.cs (1)
26
:
base
(offset, width, ErrorCode.WRN_XMLParseError, args)
Parser\AbstractLexer.cs (1)
123
return new
SyntaxDiagnosticInfo
(offset, width, code, args);
Parser\DocumentationCommentParser.cs (4)
801
SyntaxDiagnosticInfo crefInfo = new
SyntaxDiagnosticInfo
(rawInfo.Offset, rawInfo.Width, ErrorCode.WRN_ErrorOverride, rawInfo, rawInfo.Code);
1013
SyntaxDiagnosticInfo crefInfo = new
SyntaxDiagnosticInfo
(offset, width, ErrorCode.WRN_ErrorOverride, rawInfo, rawInfo.Code);
1060
SyntaxDiagnosticInfo crefInfo = new
SyntaxDiagnosticInfo
(offset, width, ErrorCode.WRN_ErrorOverride, rawInfo, rawInfo.Code);
1103
SyntaxDiagnosticInfo crefInfo = new
SyntaxDiagnosticInfo
(offset, width, ErrorCode.WRN_ErrorOverride, rawInfo, rawInfo.Code);
Parser\SyntaxParser.cs (7)
626
return new
SyntaxDiagnosticInfo
(offset, width, code, SyntaxFacts.GetText(expected));
630
return new
SyntaxDiagnosticInfo
(offset, width, code, /*unused*/string.Empty, SyntaxFacts.GetText(actual));
838
return new
SyntaxDiagnosticInfo
(offset, width, code, args);
843
return new
SyntaxDiagnosticInfo
(node.GetLeadingTriviaWidth(), node.Width, code, args);
918
tokenDiagnostics[i] = new
SyntaxDiagnosticInfo
(d.Offset - leadingWidth, d.Width, (ErrorCode)d.Code, d.Arguments);
971
targetDiagnostics[i] = new
SyntaxDiagnosticInfo
(d.Offset + triviaWidth, d.Width, (ErrorCode)d.Code, d.Arguments);
985
new
SyntaxDiagnosticInfo
(newOffset, 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));