52 references to lambda
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (51)
EditAndContinue\ActiveStatementTests.cs (5)
8897
Diagnostic(RudeEditKind.ActiveStatementLambdaRemoved, "return b;", CSharpFeaturesResources.
lambda
));
8930
Diagnostic(RudeEditKind.ActiveStatementLambdaRemoved, "(b)", CSharpFeaturesResources.
lambda
));
8978
Diagnostic(RudeEditKind.ActiveStatementLambdaRemoved, "F(b);", CSharpFeaturesResources.
lambda
));
9013
Diagnostic(RudeEditKind.ActiveStatementLambdaRemoved, "{", CSharpFeaturesResources.
lambda
),
9014
Diagnostic(RudeEditKind.ActiveStatementLambdaRemoved, "{", CSharpFeaturesResources.
lambda
));
EditAndContinue\StatementEditingTests.cs (46)
2405
Diagnostic(RudeEditKind.InsertLambdaWithMultiScopeCapture, "x1", CSharpFeaturesResources.
lambda
, "y0", "x1"),
2406
Diagnostic(RudeEditKind.InsertLambdaWithMultiScopeCapture, "x3", CSharpFeaturesResources.
lambda
, "x1", "x3"),
2407
Diagnostic(RudeEditKind.InsertLambdaWithMultiScopeCapture, "y0", CSharpFeaturesResources.
lambda
, "this", "y0"),
2408
Diagnostic(RudeEditKind.InsertLambdaWithMultiScopeCapture, "x3", CSharpFeaturesResources.
lambda
, "this", "x3"));
2413
Diagnostic(RudeEditKind.DeleteLambdaWithMultiScopeCapture, "x1", CSharpFeaturesResources.
lambda
, "y0", "x1"),
2414
Diagnostic(RudeEditKind.DeleteLambdaWithMultiScopeCapture, "x3", CSharpFeaturesResources.
lambda
, "x1", "x3"),
2415
Diagnostic(RudeEditKind.DeleteLambdaWithMultiScopeCapture, "y0", CSharpFeaturesResources.
lambda
, "this", "y0"),
2416
Diagnostic(RudeEditKind.DeleteLambdaWithMultiScopeCapture, "x3", CSharpFeaturesResources.
lambda
, "this", "x3"));
2465
Diagnostic(RudeEditKind.InsertLambdaWithMultiScopeCapture, "x1", CSharpFeaturesResources.
lambda
, "x0", "x1"));
2504
Diagnostic(RudeEditKind.InsertLambdaWithMultiScopeCapture, "x1", CSharpFeaturesResources.
lambda
, "x0", "x1"));
2550
Diagnostic(RudeEditKind.InsertLambdaWithMultiScopeCapture, "x2", CSharpFeaturesResources.
lambda
, "x0", "x2"));
2624
Diagnostic(RudeEditKind.InsertLambdaWithMultiScopeCapture, "x0", CSharpFeaturesResources.
lambda
, "x2", "x0"));
2682
Diagnostic(RudeEditKind.InsertLambdaWithMultiScopeCapture, "x1", CSharpFeaturesResources.
lambda
, "x0", "x1"));
2738
Diagnostic(RudeEditKind.InsertLambdaWithMultiScopeCapture, "x1", CSharpFeaturesResources.
lambda
, "x0", "x1"));
2792
Diagnostic(RudeEditKind.InsertLambdaWithMultiScopeCapture, "x0", CSharpFeaturesResources.
lambda
, "x1", "x0")
2823
new[] { Diagnostic(RudeEditKind.InsertNotSupportedByRuntime, "a", CSharpFeaturesResources.
lambda
) },
2858
new[] { Diagnostic(RudeEditKind.InsertNotSupportedByRuntime, "b", CSharpFeaturesResources.
lambda
) },
2891
new[] { Diagnostic(RudeEditKind.InsertNotSupportedByRuntime, "b", CSharpFeaturesResources.
lambda
) },
2964
Diagnostic(RudeEditKind.ChangingLambdaParameters, "a", CSharpFeaturesResources.
lambda
));
3001
Diagnostic(RudeEditKind.ChangingLambdaParameters, "(a, b)", CSharpFeaturesResources.
lambda
));
3038
Diagnostic(RudeEditKind.ChangingLambdaReturnType, "a", CSharpFeaturesResources.
lambda
));
3147
Diagnostic(RudeEditKind.ChangingLambdaReturnType, "a", CSharpFeaturesResources.
lambda
));
3159
Diagnostic(RudeEditKind.ChangingLambdaReturnType, "(int a)", CSharpFeaturesResources.
lambda
));
3274
Diagnostic(RudeEditKind.ChangingLambdaParameters, "(int a)", CSharpFeaturesResources.
lambda
));
3317
Diagnostic(RudeEditKind.ChangingLambdaParameters, "(out int a)", CSharpFeaturesResources.
lambda
));
3480
Diagnostic(RudeEditKind.ChangingLambdaParameters, "a", CSharpFeaturesResources.
lambda
));
3608
Diagnostic(RudeEditKind.ChangingLambdaParameters, "a", CSharpFeaturesResources.
lambda
));
3656
Diagnostic(RudeEditKind.ChangingLambdaParameters, "a", CSharpFeaturesResources.
lambda
));
3731
Diagnostic(RudeEditKind.ChangingLambdaParameters, "(a, b)", CSharpFeaturesResources.
lambda
));
3861
Diagnostic(RudeEditKind.NotAccessingCapturedVariableInLambda, "a2", "y", CSharpFeaturesResources.
lambda
));
4563
Diagnostic(RudeEditKind.AccessingCapturedVariableInLambda, "a1", "this", CSharpFeaturesResources.
lambda
));
4604
Diagnostic(RudeEditKind.AccessingCapturedVariableInLambda, "x", "x", CSharpFeaturesResources.
lambda
).WithFirstLine("x+ // 1"),
4605
Diagnostic(RudeEditKind.AccessingCapturedVariableInLambda, "x", "x", CSharpFeaturesResources.
lambda
).WithFirstLine("x; // 2"));
4644
Diagnostic(RudeEditKind.AccessingCapturedVariableInLambda, "y", "y", CSharpFeaturesResources.
lambda
));
4767
Diagnostic(RudeEditKind.AccessingCapturedVariableInLambda, "x0", "x0", CSharpFeaturesResources.
lambda
));
4821
Diagnostic(RudeEditKind.NotAccessingCapturedVariableInLambda, "a", "x0", CSharpFeaturesResources.
lambda
));
4877
Diagnostic(RudeEditKind.AccessingCapturedVariableInLambda, "x0", "x0", CSharpFeaturesResources.
lambda
));
4935
Diagnostic(RudeEditKind.NotAccessingCapturedVariableInLambda, "a", "this", CSharpFeaturesResources.
lambda
).WithFirstLine("G(a => y1 + x0); // error: connecting previously disconnected closures"),
4936
Diagnostic(RudeEditKind.AccessingCapturedVariableInLambda, "y1", "y1", CSharpFeaturesResources.
lambda
).WithFirstLine("G(a => y1 + x0); // error: connecting previously disconnected closures"),
4937
Diagnostic(RudeEditKind.AccessingCapturedVariableInLambda, "a", "this", CSharpFeaturesResources.
lambda
).WithFirstLine("G(a => x); // error: disconnecting previously connected closures"),
4938
Diagnostic(RudeEditKind.NotAccessingCapturedVariableInLambda, "a", "y1", CSharpFeaturesResources.
lambda
).WithFirstLine("G(a => x); // error: disconnecting previously connected closures"));
4989
Diagnostic(RudeEditKind.InsertLambdaWithMultiScopeCapture, "x1", CSharpFeaturesResources.
lambda
, "x0", "x1"),
4990
Diagnostic(RudeEditKind.InsertLambdaWithMultiScopeCapture, "x1", CSharpFeaturesResources.
lambda
, "x0", "x1"));
5386
Diagnostic(RudeEditKind.SwitchBetweenLambdaAndLocalFunction, "a", CSharpFeaturesResources.
lambda
));
9058
Diagnostic(RudeEditKind.AccessingCapturedVariableInLambda, "a", "a", CSharpFeaturesResources.
lambda
));
9141
Diagnostic(RudeEditKind.AccessingCapturedVariableInLambda, "a", "a", CSharpFeaturesResources.
lambda
));
Microsoft.CodeAnalysis.CSharp.Features (1)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
2142
return CSharpFeaturesResources.
lambda
;