9 references to SyntaxDiagnosticInfo
Microsoft.CodeAnalysis.CSharp (7)
Errors\SyntaxDiagnosticInfo.cs (1)
35
:
this
(0, 0, code)
Parser\AbstractLexer.cs (1)
120
return new
SyntaxDiagnosticInfo
(offset, width, code);
Parser\DocumentationCommentParser.cs (1)
1042
SyntaxDiagnosticInfo rawInfo = new
SyntaxDiagnosticInfo
(offset, width, ErrorCode.ERR_OvlOperatorExpected);
Parser\Lexer.cs (2)
2008
var error = new
SyntaxDiagnosticInfo
(offset: 0, width: 1, code: ErrorCode.ERR_BadDirectivePlacement);
4856
return new
SyntaxDiagnosticInfo
(start - this.LexemeStartPosition,
Parser\SyntaxParser.cs (2)
670
return new
SyntaxDiagnosticInfo
(offset, width, code);
875
return new
SyntaxDiagnosticInfo
(offset, width, code);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Diagnostics\LocationsTests.cs (2)
557
var nodeWithBadError = node.Green.WithDiagnosticsGreen(new DiagnosticInfo[] { new
SyntaxDiagnosticInfo
(10, 10, ErrorCode.ERR_NoBaseClass) }).CreateRed();
586
var nodeWithBadError = SyntaxFactory.IdentifierName(new SyntaxToken(node.Node.WithDiagnosticsGreen(new DiagnosticInfo[] { new
SyntaxDiagnosticInfo
(10, 10, ErrorCode.ERR_NoBaseClass) })));