12 references to WithDiagnosticsGreen
Microsoft.CodeAnalysis.CSharp (10)
Parser\LanguageParser_InterpolatedString.cs (2)
45
.
WithDiagnosticsGreen
(diagnostics);
598
result = result.
WithDiagnosticsGreen
(MoveDiagnostics(token.GetDiagnostics(), -prefix.Length));
Parser\Lexer.cs (3)
419
token = token.
WithDiagnosticsGreen
(errors);
1995
var token = SyntaxFactory.BadToken(null, text.ToString(), null).
WithDiagnosticsGreen
([error]);
2197
trivia = trivia.
WithDiagnosticsGreen
(this.GetErrors());
Parser\SyntaxParser.cs (4)
738
return node.
WithDiagnosticsGreen
(diagnostics);
745
return node.
WithDiagnosticsGreen
(result);
1114
kw = kw.
WithDiagnosticsGreen
(d);
1129
identifier = identifier.
WithDiagnosticsGreen
(token.GetDiagnostics());
Syntax\InternalSyntax\SyntaxFirstTokenReplacer.cs (1)
81
return node.
WithDiagnosticsGreen
(newDiagnostics);
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) })));