148 references to SimpleLambdaExpression
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder_Expressions.cs (5)
595
case SyntaxKind.
SimpleLambdaExpression
:
910
case SyntaxKind.
SimpleLambdaExpression
:
2954
case SyntaxKind.
SimpleLambdaExpression
:
3025
case SyntaxKind.
SimpleLambdaExpression
:
10995
case SyntaxKind.
SimpleLambdaExpression
:
Binder\Binder_Lambda.cs (2)
68
case SyntaxKind.
SimpleLambdaExpression
:
273
Error(diagnostics, syntax.Kind() == SyntaxKind.
SimpleLambdaExpression
? ErrorCode.ERR_AttributesRequireParenthesizedLambdaExpression : ErrorCode.ERR_AttributesNotAllowed, attributeList);
BoundTree\UnboundLambda.cs (1)
1506
case SyntaxKind.
SimpleLambdaExpression
:
Lowering\ClosureConversion\ClosureConversion.cs (1)
1777
case SyntaxKind.
SimpleLambdaExpression
:
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
611
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)
4643
if (parent.Kind() == SyntaxKind.
SimpleLambdaExpression
)
10732
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)
482
case SyntaxKind.
SimpleLambdaExpression
:
Syntax\SyntaxFacts.cs (1)
568
or SyntaxKind.
SimpleLambdaExpression
Syntax\SyntaxNodeExtensions.cs (3)
24
case SyntaxKind.
SimpleLambdaExpression
:
87
case SyntaxKind.
SimpleLambdaExpression
:
119
case SyntaxKind.
SimpleLambdaExpression
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (13)
src\Analyzers\CSharp\Analyzers\MakeAnonymousFunctionStatic\MakeAnonymousFunctionStaticDiagnosticAnalyzer.cs (1)
35
context.RegisterSyntaxNodeAction(AnalyzeSyntax, SyntaxKind.
SimpleLambdaExpression
, SyntaxKind.ParenthesizedLambdaExpression, SyntaxKind.AnonymousMethodExpression);
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
51
SyntaxKind.
SimpleLambdaExpression
, SyntaxKind.ParenthesizedLambdaExpression, SyntaxKind.AnonymousMethodExpression);
src\Analyzers\CSharp\Analyzers\UseExpressionBodyForLambda\UseExpressionBodyForLambdaDiagnosticAnalyzer.cs (1)
35
SyntaxKind.
SimpleLambdaExpression
, SyntaxKind.ParenthesizedLambdaExpression);
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
73
SyntaxKind.
SimpleLambdaExpression
, SyntaxKind.ParenthesizedLambdaExpression, SyntaxKind.AnonymousMethodExpression));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (2)
575
case SyntaxKind.
SimpleLambdaExpression
:
837
case SyntaxKind.
SimpleLambdaExpression
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
429
case SyntaxKind.
SimpleLambdaExpression
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
134
return node.Parent?.Kind() is SyntaxKind.
SimpleLambdaExpression
or SyntaxKind.ParenthesizedLambdaExpression;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\AnchorIndentationFormattingRule.cs (1)
19
if (node.Kind() is SyntaxKind.
SimpleLambdaExpression
or SyntaxKind.ParenthesizedLambdaExpression)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (2)
208
currentTokenParentParent is (kind: SyntaxKind.
SimpleLambdaExpression
or SyntaxKind.ParenthesizedLambdaExpression))
426
currentTokenParentParent is (kind: SyntaxKind.
SimpleLambdaExpression
or SyntaxKind.ParenthesizedLambdaExpression))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
200
case SyntaxKind.
SimpleLambdaExpression
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
235
case SyntaxKind.
SimpleLambdaExpression
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
124
SyntaxKind.
SimpleLambdaExpression
or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Editing\CSharpImportAdder.cs (1)
176
case SyntaxKind.
SimpleLambdaExpression
:
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
SymbolKey\SymbolKeyTestBase.cs (1)
393
not SyntaxKind.
SimpleLambdaExpression
)
Microsoft.CodeAnalysis.CSharp.Features (22)
BraceCompletion\CurlyBraceCompletionService.cs (1)
177
if (currentTokenParentParent is (kind: SyntaxKind.
SimpleLambdaExpression
or SyntaxKind.ParenthesizedLambdaExpression))
ChangeSignature\CSharpChangeSignatureService.cs (3)
47
SyntaxKind.
SimpleLambdaExpression
,
80
SyntaxKind.
SimpleLambdaExpression
,
102
SyntaxKind.
SimpleLambdaExpression
,
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (1)
934
case SyntaxKind.
SimpleLambdaExpression
:
EditAndContinue\SyntaxComparer.cs (4)
540
case SyntaxKind.
SimpleLambdaExpression
:
890
case SyntaxKind.
SimpleLambdaExpression
:
976
case SyntaxKind.
SimpleLambdaExpression
:
1066
case SyntaxKind.
SimpleLambdaExpression
:
ExtractMethod\CSharpMethodExtractor.FormattingProvider.cs (1)
60
if (node.Kind() is SyntaxKind.
SimpleLambdaExpression
or SyntaxKind.ParenthesizedLambdaExpression or SyntaxKind.AnonymousMethodExpression)
ExtractMethod\CSharpSelectionValidator.cs (1)
501
case SyntaxKind.
SimpleLambdaExpression
:
QuickInfo\CSharpSemanticQuickInfoProvider.cs (1)
40
&& token.Parent is (kind: SyntaxKind.ParenthesizedLambdaExpression or SyntaxKind.
SimpleLambdaExpression
))
src\Analyzers\CSharp\Analyzers\MakeAnonymousFunctionStatic\MakeAnonymousFunctionStaticDiagnosticAnalyzer.cs (1)
35
context.RegisterSyntaxNodeAction(AnalyzeSyntax, SyntaxKind.
SimpleLambdaExpression
, SyntaxKind.ParenthesizedLambdaExpression, SyntaxKind.AnonymousMethodExpression);
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
51
SyntaxKind.
SimpleLambdaExpression
, SyntaxKind.ParenthesizedLambdaExpression, SyntaxKind.AnonymousMethodExpression);
src\Analyzers\CSharp\Analyzers\UseExpressionBodyForLambda\UseExpressionBodyForLambdaDiagnosticAnalyzer.cs (1)
35
SyntaxKind.
SimpleLambdaExpression
, SyntaxKind.ParenthesizedLambdaExpression);
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
73
SyntaxKind.
SimpleLambdaExpression
, SyntaxKind.ParenthesizedLambdaExpression, SyntaxKind.AnonymousMethodExpression));
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
124
SyntaxKind.
SimpleLambdaExpression
or
src\Compilers\CSharp\Portable\Syntax\LambdaUtilities.cs (4)
23
case SyntaxKind.
SimpleLambdaExpression
:
78
case SyntaxKind.
SimpleLambdaExpression
:
150
case SyntaxKind.
SimpleLambdaExpression
:
291
case SyntaxKind.
SimpleLambdaExpression
:
Wrapping\SeparatedSyntaxList\CSharpParameterWrapper.cs (1)
55
if (declaration.Kind() == SyntaxKind.
SimpleLambdaExpression
)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\BindingTests.cs (3)
2888
var node = tree.GetRoot().DescendantNodes().Where(n => n.IsKind(SyntaxKind.
SimpleLambdaExpression
)).Single();
2925
var lambda = tree.GetRoot().DescendantNodes().Where(n => n.IsKind(SyntaxKind.
SimpleLambdaExpression
)).Single();
2967
var lambda = tree.GetRoot().DescendantNodes().Where(n => n.IsKind(SyntaxKind.
SimpleLambdaExpression
)).Single();
Semantics\NullableReferenceTypesTests.cs (1)
3693
var lambda = tree.GetRoot().DescendantNodes().Where(n => n.IsKind(SyntaxKind.
SimpleLambdaExpression
)).Single();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (68)
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
);
2550
N(SyntaxKind.
SimpleLambdaExpression
);
2698
N(SyntaxKind.
SimpleLambdaExpression
);
2846
N(SyntaxKind.
SimpleLambdaExpression
);
Parsing\AsyncParsingTests.cs (6)
1236
N(SyntaxKind.
SimpleLambdaExpression
);
1258
N(SyntaxKind.
SimpleLambdaExpression
);
1281
N(SyntaxKind.
SimpleLambdaExpression
);
1289
N(SyntaxKind.
SimpleLambdaExpression
);
2671
N(SyntaxKind.
SimpleLambdaExpression
);
2720
N(SyntaxKind.
SimpleLambdaExpression
);
Parsing\CollectionExpressionParsingTests.cs (2)
6584
N(SyntaxKind.
SimpleLambdaExpression
);
12975
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\FieldKeywordParsingTests.cs (1)
1721
N(SyntaxKind.
SimpleLambdaExpression
);
Parsing\LambdaAttributeParsingTests.cs (22)
44
N(SyntaxKind.
SimpleLambdaExpression
);
329
N(SyntaxKind.
SimpleLambdaExpression
);
647
N(SyntaxKind.
SimpleLambdaExpression
);
1014
N(SyntaxKind.
SimpleLambdaExpression
);
1081
N(SyntaxKind.
SimpleLambdaExpression
);
1119
N(SyntaxKind.
SimpleLambdaExpression
);
1902
N(SyntaxKind.
SimpleLambdaExpression
);
2281
N(SyntaxKind.
SimpleLambdaExpression
);
2343
N(SyntaxKind.
SimpleLambdaExpression
);
2405
N(SyntaxKind.
SimpleLambdaExpression
);
2475
N(SyntaxKind.
SimpleLambdaExpression
);
2659
N(SyntaxKind.
SimpleLambdaExpression
);
2735
N(SyntaxKind.
SimpleLambdaExpression
);
2818
N(SyntaxKind.
SimpleLambdaExpression
);
2897
N(SyntaxKind.
SimpleLambdaExpression
);
2995
N(SyntaxKind.
SimpleLambdaExpression
);
3027
N(SyntaxKind.
SimpleLambdaExpression
);
3098
N(SyntaxKind.
SimpleLambdaExpression
);
3171
N(SyntaxKind.
SimpleLambdaExpression
);
3330
N(SyntaxKind.
SimpleLambdaExpression
);
3451
N(SyntaxKind.
SimpleLambdaExpression
);
3540
N(SyntaxKind.
SimpleLambdaExpression
);
Parsing\LambdaParameterParsingTests.cs (10)
5161
N(SyntaxKind.
SimpleLambdaExpression
);
5188
N(SyntaxKind.
SimpleLambdaExpression
);
5222
N(SyntaxKind.
SimpleLambdaExpression
);
5249
N(SyntaxKind.
SimpleLambdaExpression
);
5274
N(SyntaxKind.
SimpleLambdaExpression
);
5348
N(SyntaxKind.
SimpleLambdaExpression
);
5370
N(SyntaxKind.
SimpleLambdaExpression
);
5551
N(SyntaxKind.
SimpleLambdaExpression
);
5729
N(SyntaxKind.
SimpleLambdaExpression
);
5769
N(SyntaxKind.
SimpleLambdaExpression
);
Parsing\LambdaReturnTypeParsingTests.cs (1)
5264
N(SyntaxKind.
SimpleLambdaExpression
);
Parsing\MemberDeclarationParsingTests.cs (1)
12600
N(SyntaxKind.
SimpleLambdaExpression
);
Parsing\PatternParsingTests.cs (1)
2603
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)
3721
N(SyntaxKind.
SimpleLambdaExpression
);
Parsing\SwitchExpressionParsingTests.cs (1)
4369
N(SyntaxKind.
SimpleLambdaExpression
);
Microsoft.CodeAnalysis.CSharp.Workspaces (15)
CodeGeneration\CSharpSyntaxGenerator.cs (5)
1593
case SyntaxKind.
SimpleLambdaExpression
:
2247
case SyntaxKind.
SimpleLambdaExpression
:
2277
case SyntaxKind.
SimpleLambdaExpression
:
2333
case SyntaxKind.
SimpleLambdaExpression
:
2489
SyntaxKind.
SimpleLambdaExpression
=> (((SimpleLambdaExpressionSyntax)declaration).Body as BlockSyntax)?.Statements,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (2)
575
case SyntaxKind.
SimpleLambdaExpression
:
837
case SyntaxKind.
SimpleLambdaExpression
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
429
case SyntaxKind.
SimpleLambdaExpression
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
134
return node.Parent?.Kind() is SyntaxKind.
SimpleLambdaExpression
or SyntaxKind.ParenthesizedLambdaExpression;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\AnchorIndentationFormattingRule.cs (1)
19
if (node.Kind() is SyntaxKind.
SimpleLambdaExpression
or SyntaxKind.ParenthesizedLambdaExpression)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (2)
208
currentTokenParentParent is (kind: SyntaxKind.
SimpleLambdaExpression
or SyntaxKind.ParenthesizedLambdaExpression))
426
currentTokenParentParent is (kind: SyntaxKind.
SimpleLambdaExpression
or SyntaxKind.ParenthesizedLambdaExpression))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
200
case SyntaxKind.
SimpleLambdaExpression
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
235
case SyntaxKind.
SimpleLambdaExpression
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Editing\CSharpImportAdder.cs (1)
176
case SyntaxKind.
SimpleLambdaExpression
: