10 references to SyntaxDiagnosticInfo
Microsoft.CodeAnalysis.CSharp (8)
Errors\SyntaxDiagnosticInfo.cs (1)
40
:
this
(0, 0, code)
Parser\AbstractLexer.cs (1)
117
return new
SyntaxDiagnosticInfo
(offset, width, code);
Parser\DocumentationCommentParser.cs (3)
1012
SyntaxDiagnosticInfo rawInfo = new
SyntaxDiagnosticInfo
(offset, width, ErrorCode.ERR_OvlOperatorExpected);
1059
SyntaxDiagnosticInfo rawInfo = new
SyntaxDiagnosticInfo
(offset, width, ErrorCode.ERR_OvlOperatorExpected);
1102
SyntaxDiagnosticInfo rawInfo = new
SyntaxDiagnosticInfo
(offset, width, ErrorCode.ERR_OvlOperatorExpected);
Parser\SlidingTextWindow.cs (1)
658
return new
SyntaxDiagnosticInfo
(start - this.LexemeStartPosition,
Parser\SyntaxParser.cs (2)
634
return new
SyntaxDiagnosticInfo
(offset, width, code);
833
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) })));