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