153 references to SimpleLambdaExpression
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder_Expressions.cs (5)
565
case SyntaxKind.
SimpleLambdaExpression
:
874
case SyntaxKind.
SimpleLambdaExpression
:
2735
case SyntaxKind.
SimpleLambdaExpression
:
2806
case SyntaxKind.
SimpleLambdaExpression
:
9387
case SyntaxKind.
SimpleLambdaExpression
:
Binder\Binder_Lambda.cs (2)
67
case SyntaxKind.
SimpleLambdaExpression
:
275
Error(diagnostics, syntax.Kind() == SyntaxKind.
SimpleLambdaExpression
? ErrorCode.ERR_AttributesRequireParenthesizedLambdaExpression : ErrorCode.ERR_AttributesNotAllowed, attributeList);
BoundTree\UnboundLambda.cs (1)
1471
case SyntaxKind.
SimpleLambdaExpression
:
Lowering\ClosureConversion\ClosureConversion.cs (1)
1749
case SyntaxKind.
SimpleLambdaExpression
:
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
568
case SyntaxKind.
SimpleLambdaExpression
:
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (1)
423
case SyntaxKind.
SimpleLambdaExpression
:
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (1)
127
case SyntaxKind.
SimpleLambdaExpression
:
Parser\LanguageParser.cs (2)
4268
if (parent.Kind() == SyntaxKind.
SimpleLambdaExpression
)
10075
case SyntaxKind.
SimpleLambdaExpression
:
Syntax\LambdaUtilities.cs (4)
23
case SyntaxKind.
SimpleLambdaExpression
:
78
case SyntaxKind.
SimpleLambdaExpression
:
150
case SyntaxKind.
SimpleLambdaExpression
:
291
case SyntaxKind.
SimpleLambdaExpression
:
Syntax\LookupPosition.cs (1)
464
case SyntaxKind.
SimpleLambdaExpression
:
Syntax\SyntaxFacts.cs (1)
553
or SyntaxKind.
SimpleLambdaExpression
Syntax\SyntaxNodeExtensions.cs (3)
24
case SyntaxKind.
SimpleLambdaExpression
:
87
case SyntaxKind.
SimpleLambdaExpression
:
119
case SyntaxKind.
SimpleLambdaExpression
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (13)
AnchorIndentationFormattingRule.cs (1)
19
if (node.IsKind(SyntaxKind.
SimpleLambdaExpression
) || node.IsKind(SyntaxKind.ParenthesizedLambdaExpression))
CSharpAccessibilityFacts.cs (1)
200
case SyntaxKind.
SimpleLambdaExpression
:
CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
55
SyntaxKind.
SimpleLambdaExpression
, SyntaxKind.ParenthesizedLambdaExpression, SyntaxKind.AnonymousMethodExpression);
CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
66
SyntaxKind.
SimpleLambdaExpression
, SyntaxKind.ParenthesizedLambdaExpression, SyntaxKind.AnonymousMethodExpression);
ExpressionSyntaxExtensions.cs (2)
559
case SyntaxKind.
SimpleLambdaExpression
:
854
case SyntaxKind.
SimpleLambdaExpression
:
FormattingHelpers.cs (1)
134
return node.IsParentKind(SyntaxKind.
SimpleLambdaExpression
) || node.IsParentKind(SyntaxKind.ParenthesizedLambdaExpression);
NewLineUserSettingFormattingRule.cs (2)
188
currentTokenParentParent is (kind: SyntaxKind.
SimpleLambdaExpression
or SyntaxKind.ParenthesizedLambdaExpression))
406
currentTokenParentParent is (kind: SyntaxKind.
SimpleLambdaExpression
or SyntaxKind.ParenthesizedLambdaExpression))
SpeculationAnalyzer.cs (1)
222
case SyntaxKind.
SimpleLambdaExpression
:
SyntaxNodeExtensions.cs (2)
317
node.IsKind(SyntaxKind.
SimpleLambdaExpression
);
507
case SyntaxKind.
SimpleLambdaExpression
:
UseExpressionBodyForLambdaDiagnosticAnalyzer.cs (1)
35
SyntaxKind.
SimpleLambdaExpression
, SyntaxKind.ParenthesizedLambdaExpression);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
CSharpDeclareAsNullableCodeFixProvider.cs (1)
145
SyntaxKind.
SimpleLambdaExpression
or
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
SymbolKey\SymbolKeyTestBase.cs (1)
393
not SyntaxKind.
SimpleLambdaExpression
)
Microsoft.CodeAnalysis.CSharp.Features (25)
BraceCompletion\CurlyBraceCompletionService.cs (1)
183
if (currentTokenParentParent is (kind: SyntaxKind.
SimpleLambdaExpression
or SyntaxKind.ParenthesizedLambdaExpression))
ChangeSignature\CSharpChangeSignatureService.cs (3)
44
SyntaxKind.
SimpleLambdaExpression
,
73
SyntaxKind.
SimpleLambdaExpression
,
93
SyntaxKind.
SimpleLambdaExpression
,
CodeRefactorings\AddAwait\CSharpAddAwaitCodeRefactoringProvider.cs (1)
40
case SyntaxKind.
SimpleLambdaExpression
:
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (1)
942
case SyntaxKind.
SimpleLambdaExpression
:
CSharpDeclareAsNullableCodeFixProvider.cs (1)
145
SyntaxKind.
SimpleLambdaExpression
or
CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
55
SyntaxKind.
SimpleLambdaExpression
, SyntaxKind.ParenthesizedLambdaExpression, SyntaxKind.AnonymousMethodExpression);
CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
66
SyntaxKind.
SimpleLambdaExpression
, SyntaxKind.ParenthesizedLambdaExpression, SyntaxKind.AnonymousMethodExpression);
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (3)
1836
case SyntaxKind.
SimpleLambdaExpression
:
1919
case SyntaxKind.
SimpleLambdaExpression
:
2141
case SyntaxKind.
SimpleLambdaExpression
:
EditAndContinue\SyntaxComparer.cs (4)
539
case SyntaxKind.
SimpleLambdaExpression
:
881
case SyntaxKind.
SimpleLambdaExpression
:
967
case SyntaxKind.
SimpleLambdaExpression
:
1057
case SyntaxKind.
SimpleLambdaExpression
:
ExtractMethod\CSharpMethodExtractor.FormattingProvider.cs (1)
61
if (node.IsKind(SyntaxKind.
SimpleLambdaExpression
) || node.IsKind(SyntaxKind.ParenthesizedLambdaExpression) || node.IsKind(SyntaxKind.AnonymousMethodExpression))
ExtractMethod\CSharpSelectionValidator.cs (1)
477
case SyntaxKind.
SimpleLambdaExpression
:
LambdaUtilities.cs (4)
23
case SyntaxKind.
SimpleLambdaExpression
:
78
case SyntaxKind.
SimpleLambdaExpression
:
150
case SyntaxKind.
SimpleLambdaExpression
:
291
case SyntaxKind.
SimpleLambdaExpression
:
QuickInfo\CSharpSemanticQuickInfoProvider.cs (1)
32
&& token.Parent is (kind: SyntaxKind.ParenthesizedLambdaExpression or SyntaxKind.
SimpleLambdaExpression
))
UseExpressionBodyForLambdaDiagnosticAnalyzer.cs (1)
35
SyntaxKind.
SimpleLambdaExpression
, SyntaxKind.ParenthesizedLambdaExpression);
Wrapping\SeparatedSyntaxList\CSharpParameterWrapper.cs (1)
55
if (declaration.Kind() == SyntaxKind.
SimpleLambdaExpression
)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\BindingTests.cs (3)
2855
var node = tree.GetRoot().DescendantNodes().Where(n => n.IsKind(SyntaxKind.
SimpleLambdaExpression
)).Single();
2892
var lambda = tree.GetRoot().DescendantNodes().Where(n => n.IsKind(SyntaxKind.
SimpleLambdaExpression
)).Single();
2934
var lambda = tree.GetRoot().DescendantNodes().Where(n => n.IsKind(SyntaxKind.
SimpleLambdaExpression
)).Single();
Semantics\NullableReferenceTypesTests.cs (1)
3681
var lambda = tree.GetRoot().DescendantNodes().Where(n => n.IsKind(SyntaxKind.
SimpleLambdaExpression
)).Single();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (69)
Parsing\AnonymousFunctionParsingTests.cs (12)
601
N(SyntaxKind.
SimpleLambdaExpression
);
741
N(SyntaxKind.
SimpleLambdaExpression
);
850
N(SyntaxKind.
SimpleLambdaExpression
);
922
N(SyntaxKind.
SimpleLambdaExpression
);
991
N(SyntaxKind.
SimpleLambdaExpression
);
1061
N(SyntaxKind.
SimpleLambdaExpression
);
1203
N(SyntaxKind.
SimpleLambdaExpression
);
1373
N(SyntaxKind.
SimpleLambdaExpression
);
1665
N(SyntaxKind.
SimpleLambdaExpression
);
2562
N(SyntaxKind.
SimpleLambdaExpression
);
2710
N(SyntaxKind.
SimpleLambdaExpression
);
2858
N(SyntaxKind.
SimpleLambdaExpression
);
Parsing\AsyncParsingTests.cs (4)
1236
N(SyntaxKind.
SimpleLambdaExpression
);
1258
N(SyntaxKind.
SimpleLambdaExpression
);
1281
N(SyntaxKind.
SimpleLambdaExpression
);
1289
N(SyntaxKind.
SimpleLambdaExpression
);
Parsing\ExpressionParsingTests.cs (3)
2034
Assert.Equal(SyntaxKind.
SimpleLambdaExpression
, expr.Kind());
2052
Assert.Equal(SyntaxKind.
SimpleLambdaExpression
, expr.Kind());
2070
Assert.Equal(SyntaxKind.
SimpleLambdaExpression
, expr.Kind());
Parsing\LambdaAttributeParsingTests.cs (19)
39
N(SyntaxKind.
SimpleLambdaExpression
);
344
N(SyntaxKind.
SimpleLambdaExpression
);
662
N(SyntaxKind.
SimpleLambdaExpression
);
1029
N(SyntaxKind.
SimpleLambdaExpression
);
1096
N(SyntaxKind.
SimpleLambdaExpression
);
1134
N(SyntaxKind.
SimpleLambdaExpression
);
1907
N(SyntaxKind.
SimpleLambdaExpression
);
2463
N(SyntaxKind.
SimpleLambdaExpression
);
2647
N(SyntaxKind.
SimpleLambdaExpression
);
2723
N(SyntaxKind.
SimpleLambdaExpression
);
2806
N(SyntaxKind.
SimpleLambdaExpression
);
2885
N(SyntaxKind.
SimpleLambdaExpression
);
2983
N(SyntaxKind.
SimpleLambdaExpression
);
3015
N(SyntaxKind.
SimpleLambdaExpression
);
3086
N(SyntaxKind.
SimpleLambdaExpression
);
3159
N(SyntaxKind.
SimpleLambdaExpression
);
3318
N(SyntaxKind.
SimpleLambdaExpression
);
3439
N(SyntaxKind.
SimpleLambdaExpression
);
3528
N(SyntaxKind.
SimpleLambdaExpression
);
Parsing\LambdaParameterParsingTests.cs (21)
810
N(SyntaxKind.
SimpleLambdaExpression
);
1002
N(SyntaxKind.
SimpleLambdaExpression
);
1377
N(SyntaxKind.
SimpleLambdaExpression
);
1432
N(SyntaxKind.
SimpleLambdaExpression
);
1490
N(SyntaxKind.
SimpleLambdaExpression
);
1645
N(SyntaxKind.
SimpleLambdaExpression
);
1702
N(SyntaxKind.
SimpleLambdaExpression
);
1757
N(SyntaxKind.
SimpleLambdaExpression
);
1811
N(SyntaxKind.
SimpleLambdaExpression
);
1866
N(SyntaxKind.
SimpleLambdaExpression
);
4714
N(SyntaxKind.
SimpleLambdaExpression
);
5078
N(SyntaxKind.
SimpleLambdaExpression
);
5105
N(SyntaxKind.
SimpleLambdaExpression
);
5139
N(SyntaxKind.
SimpleLambdaExpression
);
5166
N(SyntaxKind.
SimpleLambdaExpression
);
5191
N(SyntaxKind.
SimpleLambdaExpression
);
5275
N(SyntaxKind.
SimpleLambdaExpression
);
5297
N(SyntaxKind.
SimpleLambdaExpression
);
5478
N(SyntaxKind.
SimpleLambdaExpression
);
5656
N(SyntaxKind.
SimpleLambdaExpression
);
5696
N(SyntaxKind.
SimpleLambdaExpression
);
Parsing\LambdaReturnTypeParsingTests.cs (1)
5191
N(SyntaxKind.
SimpleLambdaExpression
);
Parsing\PatternParsingTests.cs (1)
2615
N(SyntaxKind.
SimpleLambdaExpression
);
Parsing\ScriptParsingTests.cs (7)
2906
N(SyntaxKind.
SimpleLambdaExpression
);
6186
N(SyntaxKind.
SimpleLambdaExpression
);
6200
N(SyntaxKind.
SimpleLambdaExpression
);
6239
N(SyntaxKind.
SimpleLambdaExpression
);
6258
N(SyntaxKind.
SimpleLambdaExpression
);
6271
N(SyntaxKind.
SimpleLambdaExpression
);
6301
N(SyntaxKind.
SimpleLambdaExpression
);
Parsing\StatementAttributeParsingTests.cs (1)
3720
N(SyntaxKind.
SimpleLambdaExpression
);
Microsoft.CodeAnalysis.CSharp.Workspaces (17)
AnchorIndentationFormattingRule.cs (1)
19
if (node.IsKind(SyntaxKind.
SimpleLambdaExpression
) || node.IsKind(SyntaxKind.ParenthesizedLambdaExpression))
CodeGeneration\CSharpSyntaxGenerator.cs (6)
1588
case SyntaxKind.
SimpleLambdaExpression
:
2233
case SyntaxKind.
SimpleLambdaExpression
:
2263
case SyntaxKind.
SimpleLambdaExpression
:
2319
case SyntaxKind.
SimpleLambdaExpression
:
2485
case SyntaxKind.
SimpleLambdaExpression
:
2521
case SyntaxKind.
SimpleLambdaExpression
:
CSharpAccessibilityFacts.cs (1)
200
case SyntaxKind.
SimpleLambdaExpression
:
Formatting\CSharpSyntaxFormattingService.cs (1)
345
(currentTokenParentParent.Kind() == SyntaxKind.
SimpleLambdaExpression
||
FormattingHelpers.cs (1)
134
return node.IsParentKind(SyntaxKind.
SimpleLambdaExpression
) || node.IsParentKind(SyntaxKind.ParenthesizedLambdaExpression);
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs\ExpressionSyntaxExtensions.cs (2)
559
case SyntaxKind.
SimpleLambdaExpression
:
854
case SyntaxKind.
SimpleLambdaExpression
:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs\SyntaxNodeExtensions.cs (2)
317
node.IsKind(SyntaxKind.
SimpleLambdaExpression
);
507
case SyntaxKind.
SimpleLambdaExpression
:
NewLineUserSettingFormattingRule.cs (2)
188
currentTokenParentParent is (kind: SyntaxKind.
SimpleLambdaExpression
or SyntaxKind.ParenthesizedLambdaExpression))
406
currentTokenParentParent is (kind: SyntaxKind.
SimpleLambdaExpression
or SyntaxKind.ParenthesizedLambdaExpression))
SpeculationAnalyzer.cs (1)
222
case SyntaxKind.
SimpleLambdaExpression
: