263 references to WithDiagnosticsGreen
Microsoft.CodeAnalysis.CSharp (261)
Parser\LanguageParser_InterpolatedString.cs (5)
45.WithDiagnosticsGreen(diagnostics); 160result = result.WithDiagnosticsGreen([error]); 214interpolationNode = interpolationNode.WithDiagnosticsGreen([indentationError]); 342? node.WithDiagnosticsGreen([indentationError]) 598result = result.WithDiagnosticsGreen(MoveDiagnostics(token.GetDiagnostics(), -prefix.Length));
Parser\Lexer.cs (3)
419token = token.WithDiagnosticsGreen(errors); 1995var token = SyntaxFactory.BadToken(null, text.ToString(), null).WithDiagnosticsGreen([error]); 2197trivia = trivia.WithDiagnosticsGreen(this.GetErrors());
Parser\SyntaxParser.cs (4)
738return node.WithDiagnosticsGreen(diagnostics); 745return node.WithDiagnosticsGreen(result); 1114kw = kw.WithDiagnosticsGreen(d); 1129identifier = identifier.WithDiagnosticsGreen(token.GetDiagnostics());
Syntax.xml.Internal.Generated.cs (248)
93newNode = newNode.WithDiagnosticsGreen(diags); 182newNode = newNode.WithDiagnosticsGreen(diags); 261newNode = newNode.WithDiagnosticsGreen(diags); 359newNode = newNode.WithDiagnosticsGreen(diags); 448newNode = newNode.WithDiagnosticsGreen(diags); 527newNode = newNode.WithDiagnosticsGreen(diags); 615newNode = newNode.WithDiagnosticsGreen(diags); 709newNode = newNode.WithDiagnosticsGreen(diags); 788newNode = newNode.WithDiagnosticsGreen(diags); 895newNode = newNode.WithDiagnosticsGreen(diags); 993newNode = newNode.WithDiagnosticsGreen(diags); 1081newNode = newNode.WithDiagnosticsGreen(diags); 1179newNode = newNode.WithDiagnosticsGreen(diags); 1244newNode = newNode.WithDiagnosticsGreen(diags); 1323newNode = newNode.WithDiagnosticsGreen(diags); 1420newNode = newNode.WithDiagnosticsGreen(diags); 1508newNode = newNode.WithDiagnosticsGreen(diags); 1573newNode = newNode.WithDiagnosticsGreen(diags); 1669newNode = newNode.WithDiagnosticsGreen(diags); 1746newNode = newNode.WithDiagnosticsGreen(diags); 1862newNode = newNode.WithDiagnosticsGreen(diags); 1960newNode = newNode.WithDiagnosticsGreen(diags); 2039newNode = newNode.WithDiagnosticsGreen(diags); 2118newNode = newNode.WithDiagnosticsGreen(diags); 2197newNode = newNode.WithDiagnosticsGreen(diags); 2286newNode = newNode.WithDiagnosticsGreen(diags); 2375newNode = newNode.WithDiagnosticsGreen(diags); 2454newNode = newNode.WithDiagnosticsGreen(diags); 2519newNode = newNode.WithDiagnosticsGreen(diags); 2626newNode = newNode.WithDiagnosticsGreen(diags); 2691newNode = newNode.WithDiagnosticsGreen(diags); 2780newNode = newNode.WithDiagnosticsGreen(diags); 2869newNode = newNode.WithDiagnosticsGreen(diags); 2978newNode = newNode.WithDiagnosticsGreen(diags); 3057newNode = newNode.WithDiagnosticsGreen(diags); 3122newNode = newNode.WithDiagnosticsGreen(diags); 3187newNode = newNode.WithDiagnosticsGreen(diags); 3252newNode = newNode.WithDiagnosticsGreen(diags); 3351newNode = newNode.WithDiagnosticsGreen(diags); 3450newNode = newNode.WithDiagnosticsGreen(diags); 3569newNode = newNode.WithDiagnosticsGreen(diags); 3668newNode = newNode.WithDiagnosticsGreen(diags); 3767newNode = newNode.WithDiagnosticsGreen(diags); 3866newNode = newNode.WithDiagnosticsGreen(diags); 3965newNode = newNode.WithDiagnosticsGreen(diags); 4044newNode = newNode.WithDiagnosticsGreen(diags); 4123newNode = newNode.WithDiagnosticsGreen(diags); 4238newNode = newNode.WithDiagnosticsGreen(diags); 4336newNode = newNode.WithDiagnosticsGreen(diags); 4443newNode = newNode.WithDiagnosticsGreen(diags); 4536newNode = newNode.WithDiagnosticsGreen(diags); 4615newNode = newNode.WithDiagnosticsGreen(diags); 4693newNode = newNode.WithDiagnosticsGreen(diags); 4792newNode = newNode.WithDiagnosticsGreen(diags); 4961newNode = newNode.WithDiagnosticsGreen(diags); 5139newNode = newNode.WithDiagnosticsGreen(diags); 5215newNode = newNode.WithDiagnosticsGreen(diags); 5392newNode = newNode.WithDiagnosticsGreen(diags); 5490newNode = newNode.WithDiagnosticsGreen(diags); 5610newNode = newNode.WithDiagnosticsGreen(diags); 5727newNode = newNode.WithDiagnosticsGreen(diags); 5813newNode = newNode.WithDiagnosticsGreen(diags); 5900newNode = newNode.WithDiagnosticsGreen(diags); 6008newNode = newNode.WithDiagnosticsGreen(diags); 6106newNode = newNode.WithDiagnosticsGreen(diags); 6224newNode = newNode.WithDiagnosticsGreen(diags); 6322newNode = newNode.WithDiagnosticsGreen(diags); 6421newNode = newNode.WithDiagnosticsGreen(diags); 6516newNode = newNode.WithDiagnosticsGreen(diags); 6592newNode = newNode.WithDiagnosticsGreen(diags); 6668newNode = newNode.WithDiagnosticsGreen(diags); 6744newNode = newNode.WithDiagnosticsGreen(diags); 6846newNode = newNode.WithDiagnosticsGreen(diags); 6949newNode = newNode.WithDiagnosticsGreen(diags); 7062newNode = newNode.WithDiagnosticsGreen(diags); 7157newNode = newNode.WithDiagnosticsGreen(diags); 7324newNode = newNode.WithDiagnosticsGreen(diags); 7401newNode = newNode.WithDiagnosticsGreen(diags); 7477newNode = newNode.WithDiagnosticsGreen(diags); 7562newNode = newNode.WithDiagnosticsGreen(diags); 7647newNode = newNode.WithDiagnosticsGreen(diags); 7723newNode = newNode.WithDiagnosticsGreen(diags); 7817newNode = newNode.WithDiagnosticsGreen(diags); 7903newNode = newNode.WithDiagnosticsGreen(diags); 7968newNode = newNode.WithDiagnosticsGreen(diags); 8065newNode = newNode.WithDiagnosticsGreen(diags); 8153newNode = newNode.WithDiagnosticsGreen(diags); 8229newNode = newNode.WithDiagnosticsGreen(diags); 8305newNode = newNode.WithDiagnosticsGreen(diags); 8381newNode = newNode.WithDiagnosticsGreen(diags); 8457newNode = newNode.WithDiagnosticsGreen(diags); 8533newNode = newNode.WithDiagnosticsGreen(diags); 8663newNode = newNode.WithDiagnosticsGreen(diags); 8757newNode = newNode.WithDiagnosticsGreen(diags); 8851newNode = newNode.WithDiagnosticsGreen(diags); 8936newNode = newNode.WithDiagnosticsGreen(diags); 9000newNode = newNode.WithDiagnosticsGreen(diags); 9085newNode = newNode.WithDiagnosticsGreen(diags); 9162newNode = newNode.WithDiagnosticsGreen(diags); 9226newNode = newNode.WithDiagnosticsGreen(diags); 9311newNode = newNode.WithDiagnosticsGreen(diags); 9387newNode = newNode.WithDiagnosticsGreen(diags); 9499newNode = newNode.WithDiagnosticsGreen(diags); 9584newNode = newNode.WithDiagnosticsGreen(diags); 9661newNode = newNode.WithDiagnosticsGreen(diags); 9786newNode = newNode.WithDiagnosticsGreen(diags); 9862newNode = newNode.WithDiagnosticsGreen(diags); 9939newNode = newNode.WithDiagnosticsGreen(diags); 10043newNode = newNode.WithDiagnosticsGreen(diags); 10171newNode = newNode.WithDiagnosticsGreen(diags); 10384newNode = newNode.WithDiagnosticsGreen(diags); 10533newNode = newNode.WithDiagnosticsGreen(diags); 10618newNode = newNode.WithDiagnosticsGreen(diags); 10722newNode = newNode.WithDiagnosticsGreen(diags); 10798newNode = newNode.WithDiagnosticsGreen(diags); 10874newNode = newNode.WithDiagnosticsGreen(diags); 10937newNode = newNode.WithDiagnosticsGreen(diags); 11031newNode = newNode.WithDiagnosticsGreen(diags); 11125newNode = newNode.WithDiagnosticsGreen(diags); 11210newNode = newNode.WithDiagnosticsGreen(diags); 11316newNode = newNode.WithDiagnosticsGreen(diags); 11461newNode = newNode.WithDiagnosticsGreen(diags); 11555newNode = newNode.WithDiagnosticsGreen(diags); 11649newNode = newNode.WithDiagnosticsGreen(diags); 11761newNode = newNode.WithDiagnosticsGreen(diags); 11873newNode = newNode.WithDiagnosticsGreen(diags); 11994newNode = newNode.WithDiagnosticsGreen(diags); 12115newNode = newNode.WithDiagnosticsGreen(diags); 12254newNode = newNode.WithDiagnosticsGreen(diags); 12456newNode = newNode.WithDiagnosticsGreen(diags); 12650newNode = newNode.WithDiagnosticsGreen(diags); 12813newNode = newNode.WithDiagnosticsGreen(diags); 12979newNode = newNode.WithDiagnosticsGreen(diags); 13100newNode = newNode.WithDiagnosticsGreen(diags); 13194newNode = newNode.WithDiagnosticsGreen(diags); 13288newNode = newNode.WithDiagnosticsGreen(diags); 13409newNode = newNode.WithDiagnosticsGreen(diags); 13569newNode = newNode.WithDiagnosticsGreen(diags); 13649newNode = newNode.WithDiagnosticsGreen(diags); 13837newNode = newNode.WithDiagnosticsGreen(diags); 13938newNode = newNode.WithDiagnosticsGreen(diags); 14070newNode = newNode.WithDiagnosticsGreen(diags); 14160newNode = newNode.WithDiagnosticsGreen(diags); 14238newNode = newNode.WithDiagnosticsGreen(diags); 14350newNode = newNode.WithDiagnosticsGreen(diags); 14453newNode = newNode.WithDiagnosticsGreen(diags); 14583newNode = newNode.WithDiagnosticsGreen(diags); 14695newNode = newNode.WithDiagnosticsGreen(diags); 14798newNode = newNode.WithDiagnosticsGreen(diags); 14892newNode = newNode.WithDiagnosticsGreen(diags); 14968newNode = newNode.WithDiagnosticsGreen(diags); 15108newNode = newNode.WithDiagnosticsGreen(diags); 15209newNode = newNode.WithDiagnosticsGreen(diags); 15366newNode = newNode.WithDiagnosticsGreen(diags); 15612newNode = newNode.WithDiagnosticsGreen(diags); 15787newNode = newNode.WithDiagnosticsGreen(diags); 15904newNode = newNode.WithDiagnosticsGreen(diags); 15983newNode = newNode.WithDiagnosticsGreen(diags); 16073newNode = newNode.WithDiagnosticsGreen(diags); 16171newNode = newNode.WithDiagnosticsGreen(diags); 16276newNode = newNode.WithDiagnosticsGreen(diags); 16354newNode = newNode.WithDiagnosticsGreen(diags); 16452newNode = newNode.WithDiagnosticsGreen(diags); 16558newNode = newNode.WithDiagnosticsGreen(diags); 16872newNode = newNode.WithDiagnosticsGreen(diags); 17130newNode = newNode.WithDiagnosticsGreen(diags); 17388newNode = newNode.WithDiagnosticsGreen(diags); 17662newNode = newNode.WithDiagnosticsGreen(diags); 17868newNode = newNode.WithDiagnosticsGreen(diags); 18050newNode = newNode.WithDiagnosticsGreen(diags); 18172newNode = newNode.WithDiagnosticsGreen(diags); 18402newNode = newNode.WithDiagnosticsGreen(diags); 18490newNode = newNode.WithDiagnosticsGreen(diags); 18569newNode = newNode.WithDiagnosticsGreen(diags); 18645newNode = newNode.WithDiagnosticsGreen(diags); 18752newNode = newNode.WithDiagnosticsGreen(diags); 18855newNode = newNode.WithDiagnosticsGreen(diags); 18943newNode = newNode.WithDiagnosticsGreen(diags); 19008newNode = newNode.WithDiagnosticsGreen(diags); 19073newNode = newNode.WithDiagnosticsGreen(diags); 19160newNode = newNode.WithDiagnosticsGreen(diags); 19253newNode = newNode.WithDiagnosticsGreen(diags); 19382newNode = newNode.WithDiagnosticsGreen(diags); 19503newNode = newNode.WithDiagnosticsGreen(diags); 19579newNode = newNode.WithDiagnosticsGreen(diags); 19837newNode = newNode.WithDiagnosticsGreen(diags); 20063newNode = newNode.WithDiagnosticsGreen(diags); 20289newNode = newNode.WithDiagnosticsGreen(diags); 20476newNode = newNode.WithDiagnosticsGreen(diags); 20564newNode = newNode.WithDiagnosticsGreen(diags); 20743newNode = newNode.WithDiagnosticsGreen(diags); 20968newNode = newNode.WithDiagnosticsGreen(diags); 21045newNode = newNode.WithDiagnosticsGreen(diags); 21221newNode = newNode.WithDiagnosticsGreen(diags); 21415newNode = newNode.WithDiagnosticsGreen(diags); 21509newNode = newNode.WithDiagnosticsGreen(diags); 21672newNode = newNode.WithDiagnosticsGreen(diags); 21786newNode = newNode.WithDiagnosticsGreen(diags); 21883newNode = newNode.WithDiagnosticsGreen(diags); 22057newNode = newNode.WithDiagnosticsGreen(diags); 22163newNode = newNode.WithDiagnosticsGreen(diags); 22275newNode = newNode.WithDiagnosticsGreen(diags); 22347newNode = newNode.WithDiagnosticsGreen(diags); 22432newNode = newNode.WithDiagnosticsGreen(diags); 22519newNode = newNode.WithDiagnosticsGreen(diags); 22611newNode = newNode.WithDiagnosticsGreen(diags); 22722newNode = newNode.WithDiagnosticsGreen(diags); 22834newNode = newNode.WithDiagnosticsGreen(diags); 22923newNode = newNode.WithDiagnosticsGreen(diags); 23041newNode = newNode.WithDiagnosticsGreen(diags); 23166newNode = newNode.WithDiagnosticsGreen(diags); 23285newNode = newNode.WithDiagnosticsGreen(diags); 23384newNode = newNode.WithDiagnosticsGreen(diags); 23493newNode = newNode.WithDiagnosticsGreen(diags); 23600newNode = newNode.WithDiagnosticsGreen(diags); 23703newNode = newNode.WithDiagnosticsGreen(diags); 23788newNode = newNode.WithDiagnosticsGreen(diags); 23891newNode = newNode.WithDiagnosticsGreen(diags); 23976newNode = newNode.WithDiagnosticsGreen(diags); 24052newNode = newNode.WithDiagnosticsGreen(diags); 24185newNode = newNode.WithDiagnosticsGreen(diags); 24288newNode = newNode.WithDiagnosticsGreen(diags); 24391newNode = newNode.WithDiagnosticsGreen(diags); 24463newNode = newNode.WithDiagnosticsGreen(diags); 24557newNode = newNode.WithDiagnosticsGreen(diags); 24660newNode = newNode.WithDiagnosticsGreen(diags); 24754newNode = newNode.WithDiagnosticsGreen(diags); 24916newNode = newNode.WithDiagnosticsGreen(diags); 25025newNode = newNode.WithDiagnosticsGreen(diags); 25120newNode = newNode.WithDiagnosticsGreen(diags); 25210newNode = newNode.WithDiagnosticsGreen(diags); 25300newNode = newNode.WithDiagnosticsGreen(diags); 25390newNode = newNode.WithDiagnosticsGreen(diags); 25480newNode = newNode.WithDiagnosticsGreen(diags); 25570newNode = newNode.WithDiagnosticsGreen(diags); 25660newNode = newNode.WithDiagnosticsGreen(diags); 25759newNode = newNode.WithDiagnosticsGreen(diags); 25858newNode = newNode.WithDiagnosticsGreen(diags); 25992newNode = newNode.WithDiagnosticsGreen(diags); 26095newNode = newNode.WithDiagnosticsGreen(diags); 26239newNode = newNode.WithDiagnosticsGreen(diags); 26365newNode = newNode.WithDiagnosticsGreen(diags); 26491newNode = newNode.WithDiagnosticsGreen(diags); 26590newNode = newNode.WithDiagnosticsGreen(diags); 26689newNode = newNode.WithDiagnosticsGreen(diags); 26779newNode = newNode.WithDiagnosticsGreen(diags); 26887newNode = newNode.WithDiagnosticsGreen(diags); 27004newNode = newNode.WithDiagnosticsGreen(diags);
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) })));