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