12 references to WithDiagnosticsGreen
Microsoft.CodeAnalysis.CSharp (10)
Parser\LanguageParser_InterpolatedString.cs (4)
65
result = result.
WithDiagnosticsGreen
(MoveDiagnostics(new[] { error }, originalToken.GetLeadingTrivia()?.FullWidth ?? 0));
117
interpolationNode = interpolationNode.
WithDiagnosticsGreen
(new[] { indentationError });
234
? node.
WithDiagnosticsGreen
(new[] { indentationError })
469
result = result.
WithDiagnosticsGreen
(MoveDiagnostics(token.GetDiagnostics(), -prefix.Length));
Parser\Lexer.cs (2)
425
token = token.
WithDiagnosticsGreen
(errors);
2550
trivia = trivia.
WithDiagnosticsGreen
(this.GetErrors(leadingTriviaWidth: 0));
Parser\SyntaxParser.cs (3)
711
return node.
WithDiagnosticsGreen
(diagnostics);
718
return node.
WithDiagnosticsGreen
(result);
1057
kw = kw.
WithDiagnosticsGreen
(d);
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) })));