261 references to WithDiagnosticsGreen
Microsoft.CodeAnalysis.CSharp (259)
Parser\LanguageParser_InterpolatedString.cs (4)
65result = result.WithDiagnosticsGreen(MoveDiagnostics(new[] { error }, originalToken.GetLeadingTrivia()?.FullWidth ?? 0)); 117interpolationNode = interpolationNode.WithDiagnosticsGreen(new[] { indentationError }); 234? node.WithDiagnosticsGreen(new[] { indentationError }) 471result = result.WithDiagnosticsGreen(MoveDiagnostics(token.GetDiagnostics(), -prefix.Length));
Parser\Lexer.cs (3)
434token = token.WithDiagnosticsGreen(errors); 2010var token = SyntaxFactory.BadToken(null, text.ToString(), null).WithDiagnosticsGreen([error]); 2212trivia = 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.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); 9966newNode = newNode.WithDiagnosticsGreen(diags); 10094newNode = newNode.WithDiagnosticsGreen(diags); 10307newNode = newNode.WithDiagnosticsGreen(diags); 10456newNode = newNode.WithDiagnosticsGreen(diags); 10541newNode = newNode.WithDiagnosticsGreen(diags); 10645newNode = newNode.WithDiagnosticsGreen(diags); 10721newNode = newNode.WithDiagnosticsGreen(diags); 10797newNode = newNode.WithDiagnosticsGreen(diags); 10860newNode = newNode.WithDiagnosticsGreen(diags); 10954newNode = newNode.WithDiagnosticsGreen(diags); 11048newNode = newNode.WithDiagnosticsGreen(diags); 11133newNode = newNode.WithDiagnosticsGreen(diags); 11239newNode = newNode.WithDiagnosticsGreen(diags); 11384newNode = newNode.WithDiagnosticsGreen(diags); 11478newNode = newNode.WithDiagnosticsGreen(diags); 11572newNode = newNode.WithDiagnosticsGreen(diags); 11684newNode = newNode.WithDiagnosticsGreen(diags); 11796newNode = newNode.WithDiagnosticsGreen(diags); 11917newNode = newNode.WithDiagnosticsGreen(diags); 12038newNode = newNode.WithDiagnosticsGreen(diags); 12177newNode = newNode.WithDiagnosticsGreen(diags); 12379newNode = newNode.WithDiagnosticsGreen(diags); 12573newNode = newNode.WithDiagnosticsGreen(diags); 12736newNode = newNode.WithDiagnosticsGreen(diags); 12902newNode = newNode.WithDiagnosticsGreen(diags); 13023newNode = newNode.WithDiagnosticsGreen(diags); 13117newNode = newNode.WithDiagnosticsGreen(diags); 13211newNode = newNode.WithDiagnosticsGreen(diags); 13332newNode = newNode.WithDiagnosticsGreen(diags); 13492newNode = newNode.WithDiagnosticsGreen(diags); 13572newNode = newNode.WithDiagnosticsGreen(diags); 13760newNode = newNode.WithDiagnosticsGreen(diags); 13861newNode = newNode.WithDiagnosticsGreen(diags); 13993newNode = newNode.WithDiagnosticsGreen(diags); 14083newNode = newNode.WithDiagnosticsGreen(diags); 14161newNode = newNode.WithDiagnosticsGreen(diags); 14273newNode = newNode.WithDiagnosticsGreen(diags); 14376newNode = newNode.WithDiagnosticsGreen(diags); 14506newNode = newNode.WithDiagnosticsGreen(diags); 14618newNode = newNode.WithDiagnosticsGreen(diags); 14721newNode = newNode.WithDiagnosticsGreen(diags); 14815newNode = newNode.WithDiagnosticsGreen(diags); 14891newNode = newNode.WithDiagnosticsGreen(diags); 15031newNode = newNode.WithDiagnosticsGreen(diags); 15132newNode = newNode.WithDiagnosticsGreen(diags); 15289newNode = newNode.WithDiagnosticsGreen(diags); 15535newNode = newNode.WithDiagnosticsGreen(diags); 15710newNode = newNode.WithDiagnosticsGreen(diags); 15827newNode = newNode.WithDiagnosticsGreen(diags); 15906newNode = newNode.WithDiagnosticsGreen(diags); 15996newNode = newNode.WithDiagnosticsGreen(diags); 16094newNode = newNode.WithDiagnosticsGreen(diags); 16199newNode = newNode.WithDiagnosticsGreen(diags); 16277newNode = newNode.WithDiagnosticsGreen(diags); 16375newNode = newNode.WithDiagnosticsGreen(diags); 16481newNode = newNode.WithDiagnosticsGreen(diags); 16795newNode = newNode.WithDiagnosticsGreen(diags); 17053newNode = newNode.WithDiagnosticsGreen(diags); 17311newNode = newNode.WithDiagnosticsGreen(diags); 17585newNode = newNode.WithDiagnosticsGreen(diags); 17791newNode = newNode.WithDiagnosticsGreen(diags); 17973newNode = newNode.WithDiagnosticsGreen(diags); 18095newNode = newNode.WithDiagnosticsGreen(diags); 18325newNode = newNode.WithDiagnosticsGreen(diags); 18413newNode = newNode.WithDiagnosticsGreen(diags); 18492newNode = newNode.WithDiagnosticsGreen(diags); 18568newNode = newNode.WithDiagnosticsGreen(diags); 18675newNode = newNode.WithDiagnosticsGreen(diags); 18778newNode = newNode.WithDiagnosticsGreen(diags); 18866newNode = newNode.WithDiagnosticsGreen(diags); 18931newNode = newNode.WithDiagnosticsGreen(diags); 18996newNode = newNode.WithDiagnosticsGreen(diags); 19083newNode = newNode.WithDiagnosticsGreen(diags); 19176newNode = newNode.WithDiagnosticsGreen(diags); 19305newNode = newNode.WithDiagnosticsGreen(diags); 19426newNode = newNode.WithDiagnosticsGreen(diags); 19502newNode = newNode.WithDiagnosticsGreen(diags); 19760newNode = newNode.WithDiagnosticsGreen(diags); 19986newNode = newNode.WithDiagnosticsGreen(diags); 20212newNode = newNode.WithDiagnosticsGreen(diags); 20399newNode = newNode.WithDiagnosticsGreen(diags); 20487newNode = newNode.WithDiagnosticsGreen(diags); 20666newNode = newNode.WithDiagnosticsGreen(diags); 20891newNode = newNode.WithDiagnosticsGreen(diags); 20968newNode = newNode.WithDiagnosticsGreen(diags); 21144newNode = newNode.WithDiagnosticsGreen(diags); 21338newNode = newNode.WithDiagnosticsGreen(diags); 21432newNode = newNode.WithDiagnosticsGreen(diags); 21595newNode = newNode.WithDiagnosticsGreen(diags); 21709newNode = newNode.WithDiagnosticsGreen(diags); 21806newNode = newNode.WithDiagnosticsGreen(diags); 21980newNode = newNode.WithDiagnosticsGreen(diags); 22086newNode = newNode.WithDiagnosticsGreen(diags); 22198newNode = newNode.WithDiagnosticsGreen(diags); 22270newNode = newNode.WithDiagnosticsGreen(diags); 22355newNode = newNode.WithDiagnosticsGreen(diags); 22442newNode = newNode.WithDiagnosticsGreen(diags); 22534newNode = newNode.WithDiagnosticsGreen(diags); 22645newNode = newNode.WithDiagnosticsGreen(diags); 22757newNode = newNode.WithDiagnosticsGreen(diags); 22846newNode = newNode.WithDiagnosticsGreen(diags); 22964newNode = newNode.WithDiagnosticsGreen(diags); 23089newNode = newNode.WithDiagnosticsGreen(diags); 23208newNode = newNode.WithDiagnosticsGreen(diags); 23307newNode = newNode.WithDiagnosticsGreen(diags); 23416newNode = newNode.WithDiagnosticsGreen(diags); 23523newNode = newNode.WithDiagnosticsGreen(diags); 23626newNode = newNode.WithDiagnosticsGreen(diags); 23711newNode = newNode.WithDiagnosticsGreen(diags); 23814newNode = newNode.WithDiagnosticsGreen(diags); 23899newNode = newNode.WithDiagnosticsGreen(diags); 23975newNode = newNode.WithDiagnosticsGreen(diags); 24108newNode = newNode.WithDiagnosticsGreen(diags); 24211newNode = newNode.WithDiagnosticsGreen(diags); 24314newNode = newNode.WithDiagnosticsGreen(diags); 24386newNode = newNode.WithDiagnosticsGreen(diags); 24480newNode = newNode.WithDiagnosticsGreen(diags); 24583newNode = newNode.WithDiagnosticsGreen(diags); 24677newNode = newNode.WithDiagnosticsGreen(diags); 24839newNode = newNode.WithDiagnosticsGreen(diags); 24948newNode = newNode.WithDiagnosticsGreen(diags); 25043newNode = newNode.WithDiagnosticsGreen(diags); 25133newNode = newNode.WithDiagnosticsGreen(diags); 25223newNode = newNode.WithDiagnosticsGreen(diags); 25313newNode = newNode.WithDiagnosticsGreen(diags); 25403newNode = newNode.WithDiagnosticsGreen(diags); 25493newNode = newNode.WithDiagnosticsGreen(diags); 25583newNode = newNode.WithDiagnosticsGreen(diags); 25682newNode = newNode.WithDiagnosticsGreen(diags); 25781newNode = newNode.WithDiagnosticsGreen(diags); 25915newNode = newNode.WithDiagnosticsGreen(diags); 26018newNode = newNode.WithDiagnosticsGreen(diags); 26162newNode = newNode.WithDiagnosticsGreen(diags); 26288newNode = newNode.WithDiagnosticsGreen(diags); 26414newNode = newNode.WithDiagnosticsGreen(diags); 26513newNode = newNode.WithDiagnosticsGreen(diags); 26612newNode = newNode.WithDiagnosticsGreen(diags); 26702newNode = newNode.WithDiagnosticsGreen(diags); 26810newNode = newNode.WithDiagnosticsGreen(diags); 26927newNode = 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) })));