11 references to WithDiagnosticsGreen
Microsoft.CodeAnalysis.CSharp (9)
Parser\LanguageParser_InterpolatedString.cs (1)
471result = result.WithDiagnosticsGreen(MoveDiagnostics(token.GetDiagnostics(), -prefix.Length));
Parser\Lexer.cs (3)
434token = token.WithDiagnosticsGreen(errors); 2014var token = SyntaxFactory.BadToken(null, text.ToString(), null).WithDiagnosticsGreen([error]); 2216trivia = trivia.WithDiagnosticsGreen(this.GetErrors(leadingTriviaWidth: 0));
Parser\SyntaxParser.cs (4)
747return node.WithDiagnosticsGreen(diagnostics); 754return node.WithDiagnosticsGreen(result); 1106kw = kw.WithDiagnosticsGreen(d); 1121identifier = identifier.WithDiagnosticsGreen(token.GetDiagnostics());
Syntax\InternalSyntax\SyntaxFirstTokenReplacer.cs (1)
81return node.WithDiagnosticsGreen(newDiagnostics);
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) })));