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