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