261 references to WithDiagnosticsGreen
Microsoft.CodeAnalysis.CSharp (259)
Parser\LanguageParser_InterpolatedString.cs (4)
61result = result.WithDiagnosticsGreen([error]); 112interpolationNode = interpolationNode.WithDiagnosticsGreen(new[] { indentationError }); 229? node.WithDiagnosticsGreen(new[] { indentationError }) 468result = 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 (247)
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); 6770newNode = newNode.WithDiagnosticsGreen(diags); 6873newNode = newNode.WithDiagnosticsGreen(diags); 6986newNode = newNode.WithDiagnosticsGreen(diags); 7081newNode = newNode.WithDiagnosticsGreen(diags); 7248newNode = newNode.WithDiagnosticsGreen(diags); 7325newNode = newNode.WithDiagnosticsGreen(diags); 7401newNode = newNode.WithDiagnosticsGreen(diags); 7486newNode = newNode.WithDiagnosticsGreen(diags); 7571newNode = newNode.WithDiagnosticsGreen(diags); 7647newNode = newNode.WithDiagnosticsGreen(diags); 7741newNode = newNode.WithDiagnosticsGreen(diags); 7827newNode = newNode.WithDiagnosticsGreen(diags); 7892newNode = newNode.WithDiagnosticsGreen(diags); 7989newNode = newNode.WithDiagnosticsGreen(diags); 8077newNode = newNode.WithDiagnosticsGreen(diags); 8153newNode = newNode.WithDiagnosticsGreen(diags); 8229newNode = newNode.WithDiagnosticsGreen(diags); 8305newNode = newNode.WithDiagnosticsGreen(diags); 8381newNode = newNode.WithDiagnosticsGreen(diags); 8457newNode = newNode.WithDiagnosticsGreen(diags); 8587newNode = newNode.WithDiagnosticsGreen(diags); 8681newNode = newNode.WithDiagnosticsGreen(diags); 8775newNode = newNode.WithDiagnosticsGreen(diags); 8860newNode = newNode.WithDiagnosticsGreen(diags); 8924newNode = newNode.WithDiagnosticsGreen(diags); 9009newNode = newNode.WithDiagnosticsGreen(diags); 9086newNode = newNode.WithDiagnosticsGreen(diags); 9150newNode = newNode.WithDiagnosticsGreen(diags); 9235newNode = newNode.WithDiagnosticsGreen(diags); 9311newNode = newNode.WithDiagnosticsGreen(diags); 9423newNode = newNode.WithDiagnosticsGreen(diags); 9508newNode = newNode.WithDiagnosticsGreen(diags); 9585newNode = newNode.WithDiagnosticsGreen(diags); 9710newNode = newNode.WithDiagnosticsGreen(diags); 9786newNode = newNode.WithDiagnosticsGreen(diags); 9863newNode = newNode.WithDiagnosticsGreen(diags); 9967newNode = newNode.WithDiagnosticsGreen(diags); 10095newNode = newNode.WithDiagnosticsGreen(diags); 10308newNode = newNode.WithDiagnosticsGreen(diags); 10457newNode = newNode.WithDiagnosticsGreen(diags); 10542newNode = newNode.WithDiagnosticsGreen(diags); 10646newNode = newNode.WithDiagnosticsGreen(diags); 10722newNode = newNode.WithDiagnosticsGreen(diags); 10798newNode = newNode.WithDiagnosticsGreen(diags); 10861newNode = newNode.WithDiagnosticsGreen(diags); 10955newNode = newNode.WithDiagnosticsGreen(diags); 11049newNode = newNode.WithDiagnosticsGreen(diags); 11134newNode = newNode.WithDiagnosticsGreen(diags); 11240newNode = newNode.WithDiagnosticsGreen(diags); 11385newNode = newNode.WithDiagnosticsGreen(diags); 11479newNode = newNode.WithDiagnosticsGreen(diags); 11573newNode = newNode.WithDiagnosticsGreen(diags); 11685newNode = newNode.WithDiagnosticsGreen(diags); 11797newNode = newNode.WithDiagnosticsGreen(diags); 11918newNode = newNode.WithDiagnosticsGreen(diags); 12039newNode = newNode.WithDiagnosticsGreen(diags); 12178newNode = newNode.WithDiagnosticsGreen(diags); 12380newNode = newNode.WithDiagnosticsGreen(diags); 12574newNode = newNode.WithDiagnosticsGreen(diags); 12737newNode = newNode.WithDiagnosticsGreen(diags); 12903newNode = newNode.WithDiagnosticsGreen(diags); 13024newNode = newNode.WithDiagnosticsGreen(diags); 13118newNode = newNode.WithDiagnosticsGreen(diags); 13212newNode = newNode.WithDiagnosticsGreen(diags); 13333newNode = newNode.WithDiagnosticsGreen(diags); 13493newNode = newNode.WithDiagnosticsGreen(diags); 13573newNode = newNode.WithDiagnosticsGreen(diags); 13761newNode = newNode.WithDiagnosticsGreen(diags); 13862newNode = newNode.WithDiagnosticsGreen(diags); 13994newNode = newNode.WithDiagnosticsGreen(diags); 14084newNode = newNode.WithDiagnosticsGreen(diags); 14162newNode = newNode.WithDiagnosticsGreen(diags); 14274newNode = newNode.WithDiagnosticsGreen(diags); 14377newNode = newNode.WithDiagnosticsGreen(diags); 14507newNode = newNode.WithDiagnosticsGreen(diags); 14619newNode = newNode.WithDiagnosticsGreen(diags); 14722newNode = newNode.WithDiagnosticsGreen(diags); 14816newNode = newNode.WithDiagnosticsGreen(diags); 14892newNode = newNode.WithDiagnosticsGreen(diags); 15032newNode = newNode.WithDiagnosticsGreen(diags); 15133newNode = newNode.WithDiagnosticsGreen(diags); 15290newNode = newNode.WithDiagnosticsGreen(diags); 15536newNode = newNode.WithDiagnosticsGreen(diags); 15711newNode = newNode.WithDiagnosticsGreen(diags); 15828newNode = newNode.WithDiagnosticsGreen(diags); 15907newNode = newNode.WithDiagnosticsGreen(diags); 15997newNode = newNode.WithDiagnosticsGreen(diags); 16095newNode = newNode.WithDiagnosticsGreen(diags); 16200newNode = newNode.WithDiagnosticsGreen(diags); 16278newNode = newNode.WithDiagnosticsGreen(diags); 16376newNode = newNode.WithDiagnosticsGreen(diags); 16482newNode = newNode.WithDiagnosticsGreen(diags); 16796newNode = newNode.WithDiagnosticsGreen(diags); 17054newNode = newNode.WithDiagnosticsGreen(diags); 17312newNode = newNode.WithDiagnosticsGreen(diags); 17586newNode = newNode.WithDiagnosticsGreen(diags); 17792newNode = newNode.WithDiagnosticsGreen(diags); 17974newNode = newNode.WithDiagnosticsGreen(diags); 18096newNode = newNode.WithDiagnosticsGreen(diags); 18326newNode = newNode.WithDiagnosticsGreen(diags); 18414newNode = newNode.WithDiagnosticsGreen(diags); 18493newNode = newNode.WithDiagnosticsGreen(diags); 18569newNode = newNode.WithDiagnosticsGreen(diags); 18676newNode = newNode.WithDiagnosticsGreen(diags); 18779newNode = newNode.WithDiagnosticsGreen(diags); 18867newNode = newNode.WithDiagnosticsGreen(diags); 18932newNode = newNode.WithDiagnosticsGreen(diags); 18997newNode = newNode.WithDiagnosticsGreen(diags); 19084newNode = newNode.WithDiagnosticsGreen(diags); 19177newNode = newNode.WithDiagnosticsGreen(diags); 19306newNode = newNode.WithDiagnosticsGreen(diags); 19427newNode = newNode.WithDiagnosticsGreen(diags); 19503newNode = newNode.WithDiagnosticsGreen(diags); 19761newNode = newNode.WithDiagnosticsGreen(diags); 19987newNode = newNode.WithDiagnosticsGreen(diags); 20213newNode = newNode.WithDiagnosticsGreen(diags); 20400newNode = newNode.WithDiagnosticsGreen(diags); 20488newNode = newNode.WithDiagnosticsGreen(diags); 20667newNode = newNode.WithDiagnosticsGreen(diags); 20892newNode = newNode.WithDiagnosticsGreen(diags); 20969newNode = newNode.WithDiagnosticsGreen(diags); 21145newNode = newNode.WithDiagnosticsGreen(diags); 21339newNode = newNode.WithDiagnosticsGreen(diags); 21433newNode = newNode.WithDiagnosticsGreen(diags); 21596newNode = newNode.WithDiagnosticsGreen(diags); 21710newNode = newNode.WithDiagnosticsGreen(diags); 21807newNode = newNode.WithDiagnosticsGreen(diags); 21981newNode = newNode.WithDiagnosticsGreen(diags); 22087newNode = newNode.WithDiagnosticsGreen(diags); 22199newNode = newNode.WithDiagnosticsGreen(diags); 22271newNode = newNode.WithDiagnosticsGreen(diags); 22356newNode = newNode.WithDiagnosticsGreen(diags); 22443newNode = newNode.WithDiagnosticsGreen(diags); 22535newNode = newNode.WithDiagnosticsGreen(diags); 22646newNode = newNode.WithDiagnosticsGreen(diags); 22758newNode = newNode.WithDiagnosticsGreen(diags); 22847newNode = newNode.WithDiagnosticsGreen(diags); 22965newNode = newNode.WithDiagnosticsGreen(diags); 23090newNode = newNode.WithDiagnosticsGreen(diags); 23209newNode = newNode.WithDiagnosticsGreen(diags); 23308newNode = newNode.WithDiagnosticsGreen(diags); 23417newNode = newNode.WithDiagnosticsGreen(diags); 23524newNode = newNode.WithDiagnosticsGreen(diags); 23627newNode = newNode.WithDiagnosticsGreen(diags); 23712newNode = newNode.WithDiagnosticsGreen(diags); 23815newNode = newNode.WithDiagnosticsGreen(diags); 23900newNode = newNode.WithDiagnosticsGreen(diags); 23976newNode = newNode.WithDiagnosticsGreen(diags); 24109newNode = newNode.WithDiagnosticsGreen(diags); 24212newNode = newNode.WithDiagnosticsGreen(diags); 24315newNode = newNode.WithDiagnosticsGreen(diags); 24387newNode = newNode.WithDiagnosticsGreen(diags); 24481newNode = newNode.WithDiagnosticsGreen(diags); 24584newNode = newNode.WithDiagnosticsGreen(diags); 24678newNode = newNode.WithDiagnosticsGreen(diags); 24840newNode = newNode.WithDiagnosticsGreen(diags); 24949newNode = newNode.WithDiagnosticsGreen(diags); 25044newNode = newNode.WithDiagnosticsGreen(diags); 25134newNode = newNode.WithDiagnosticsGreen(diags); 25224newNode = newNode.WithDiagnosticsGreen(diags); 25314newNode = newNode.WithDiagnosticsGreen(diags); 25404newNode = newNode.WithDiagnosticsGreen(diags); 25494newNode = newNode.WithDiagnosticsGreen(diags); 25584newNode = newNode.WithDiagnosticsGreen(diags); 25683newNode = newNode.WithDiagnosticsGreen(diags); 25782newNode = newNode.WithDiagnosticsGreen(diags); 25916newNode = newNode.WithDiagnosticsGreen(diags); 26019newNode = newNode.WithDiagnosticsGreen(diags); 26163newNode = newNode.WithDiagnosticsGreen(diags); 26289newNode = newNode.WithDiagnosticsGreen(diags); 26415newNode = newNode.WithDiagnosticsGreen(diags); 26514newNode = newNode.WithDiagnosticsGreen(diags); 26613newNode = newNode.WithDiagnosticsGreen(diags); 26703newNode = newNode.WithDiagnosticsGreen(diags); 26811newNode = newNode.WithDiagnosticsGreen(diags); 26928newNode = 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) })));