102 references to AnonymousMethodExpression
Microsoft.CodeAnalysis.CSharp (19)
Binder\Binder_Expressions.cs (2)
593case SyntaxKind.AnonymousMethodExpression: 3023case SyntaxKind.AnonymousMethodExpression:
Binder\Binder_Lambda.cs (2)
86case SyntaxKind.AnonymousMethodExpression: 149var isAnonymousMethod = syntax.IsKind(SyntaxKind.AnonymousMethodExpression);
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1611if (anonymousFunction.Syntax.Kind() == SyntaxKind.AnonymousMethodExpression)
BoundTree\UnboundLambda.cs (3)
72public MessageID MessageID { get { return Syntax.Kind() == SyntaxKind.AnonymousMethodExpression ? MessageID.IDS_AnonMethod : MessageID.IDS_Lambda; } } 1489public override MessageID MessageID { get { return this.UnboundLambda.Syntax.Kind() == SyntaxKind.AnonymousMethodExpression ? MessageID.IDS_AnonMethod : MessageID.IDS_Lambda; } } 1510case SyntaxKind.AnonymousMethodExpression:
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
629case SyntaxKind.AnonymousMethodExpression:
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (1)
129case SyntaxKind.AnonymousMethodExpression:
Parser\LanguageParser.cs (1)
10692case SyntaxKind.AnonymousMethodExpression:
Syntax\LambdaUtilities.cs (4)
24case SyntaxKind.AnonymousMethodExpression: 79case SyntaxKind.AnonymousMethodExpression: 151case SyntaxKind.AnonymousMethodExpression: 292case SyntaxKind.AnonymousMethodExpression:
Syntax\LookupPosition.cs (1)
494case SyntaxKind.AnonymousMethodExpression:
Syntax\SyntaxFacts.cs (1)
567or SyntaxKind.AnonymousMethodExpression
Syntax\SyntaxNodeExtensions.cs (2)
25case SyntaxKind.AnonymousMethodExpression: 88case SyntaxKind.AnonymousMethodExpression:
Microsoft.CodeAnalysis.CSharp.CodeStyle (9)
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)
55SyntaxKind.SimpleLambdaExpression, SyntaxKind.ParenthesizedLambdaExpression, SyntaxKind.AnonymousMethodExpression);
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
73SyntaxKind.SimpleLambdaExpression, SyntaxKind.ParenthesizedLambdaExpression, SyntaxKind.AnonymousMethodExpression));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
709case SyntaxKind.AnonymousMethodExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
428case SyntaxKind.AnonymousMethodExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
144return node.IsParentKind(SyntaxKind.AnonymousMethodExpression);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\AnchorIndentationFormattingRule.cs (1)
25if (node.IsKind(SyntaxKind.AnonymousMethodExpression))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (2)
189if (currentToken.IsKind(SyntaxKind.OpenBraceToken) && currentTokenParentParent.IsKind(SyntaxKind.AnonymousMethodExpression)) 399if (currentToken.IsKind(SyntaxKind.OpenBraceToken) && currentTokenParentParent.IsKind(SyntaxKind.AnonymousMethodExpression))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
126SyntaxKind.AnonymousMethodExpression or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Editing\CSharpImportAdder.cs (1)
178case SyntaxKind.AnonymousMethodExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1278return parent.IsKind(SyntaxKind.ParameterList) && parent.IsParentKind(SyntaxKind.AnonymousMethodExpression);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
SymbolKey\SymbolKeyTestBase.cs (1)
391not SyntaxKind.AnonymousMethodExpression and
Microsoft.CodeAnalysis.CSharp.Features (18)
BraceCompletion\CurlyBraceCompletionService.cs (1)
159if (currentTokenParentParent.IsKind(SyntaxKind.AnonymousMethodExpression))
ChangeSignature\CSharpChangeSignatureService.cs (1)
100SyntaxKind.AnonymousMethodExpression,
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (1)
932case SyntaxKind.AnonymousMethodExpression:
EditAndContinue\SyntaxComparer.cs (4)
541case SyntaxKind.AnonymousMethodExpression: 891case SyntaxKind.AnonymousMethodExpression: 998case SyntaxKind.AnonymousMethodExpression: 1067case SyntaxKind.AnonymousMethodExpression:
ExtractMethod\CSharpMethodExtractor.FormattingProvider.cs (1)
60if (node.Kind() is SyntaxKind.SimpleLambdaExpression or SyntaxKind.ParenthesizedLambdaExpression or SyntaxKind.AnonymousMethodExpression)
ExtractMethod\CSharpSelectionValidator.cs (1)
500case SyntaxKind.AnonymousMethodExpression:
QuickInfo\CSharpSemanticQuickInfoProvider.cs (1)
45else if (token.IsKind(SyntaxKind.DelegateKeyword) && token.Parent.IsKind(SyntaxKind.AnonymousMethodExpression))
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)
55SyntaxKind.SimpleLambdaExpression, SyntaxKind.ParenthesizedLambdaExpression, SyntaxKind.AnonymousMethodExpression);
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
73SyntaxKind.SimpleLambdaExpression, SyntaxKind.ParenthesizedLambdaExpression, SyntaxKind.AnonymousMethodExpression));
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
126SyntaxKind.AnonymousMethodExpression or
src\Compilers\CSharp\Portable\Syntax\LambdaUtilities.cs (4)
24case SyntaxKind.AnonymousMethodExpression: 79case SyntaxKind.AnonymousMethodExpression: 151case SyntaxKind.AnonymousMethodExpression: 292case SyntaxKind.AnonymousMethodExpression:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\LambdaTests.cs (1)
1979var node1 = tree.GetRoot().DescendantNodes().Where(n => n.IsKind(SyntaxKind.AnonymousMethodExpression)).Single();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (39)
Parsing\AnonymousFunctionParsingTests.cs (11)
83N(SyntaxKind.AnonymousMethodExpression); 184N(SyntaxKind.AnonymousMethodExpression); 281N(SyntaxKind.AnonymousMethodExpression); 382N(SyntaxKind.AnonymousMethodExpression); 483N(SyntaxKind.AnonymousMethodExpression); 1123N(SyntaxKind.AnonymousMethodExpression); 1451N(SyntaxKind.AnonymousMethodExpression); 1769N(SyntaxKind.AnonymousMethodExpression); 1836N(SyntaxKind.AnonymousMethodExpression); 2164N(SyntaxKind.AnonymousMethodExpression); 2250N(SyntaxKind.AnonymousMethodExpression);
Parsing\AsyncParsingTests.cs (2)
1368N(SyntaxKind.AnonymousMethodExpression); 1388N(SyntaxKind.AnonymousMethodExpression);
Parsing\AwaitParsingTests.cs (1)
2045N(SyntaxKind.AnonymousMethodExpression);
Parsing\CollectionExpressionParsingTests.cs (1)
3147N(SyntaxKind.AnonymousMethodExpression);
Parsing\DeclarationParsingTests.cs (1)
8320N(SyntaxKind.AnonymousMethodExpression);
Parsing\ExpressionParsingTests.cs (3)
1948Assert.Equal(SyntaxKind.AnonymousMethodExpression, expr.Kind()); 1979Assert.Equal(SyntaxKind.AnonymousMethodExpression, expr.Kind()); 2009Assert.Equal(SyntaxKind.AnonymousMethodExpression, expr.Kind());
Parsing\FunctionPointerTests.cs (1)
1275N(SyntaxKind.AnonymousMethodExpression);
Parsing\LambdaParameterParsingTests.cs (9)
2374N(SyntaxKind.AnonymousMethodExpression); 2778N(SyntaxKind.AnonymousMethodExpression); 2893N(SyntaxKind.AnonymousMethodExpression); 2986N(SyntaxKind.AnonymousMethodExpression); 3058N(SyntaxKind.AnonymousMethodExpression); 3136N(SyntaxKind.AnonymousMethodExpression); 3228N(SyntaxKind.AnonymousMethodExpression); 3349N(SyntaxKind.AnonymousMethodExpression); 3477N(SyntaxKind.AnonymousMethodExpression);
Parsing\LambdaReturnTypeParsingTests.cs (2)
298N(SyntaxKind.AnonymousMethodExpression); 328N(SyntaxKind.AnonymousMethodExpression);
Parsing\LocalFunctionParsingTests.cs (1)
2777N(SyntaxKind.AnonymousMethodExpression);
Parsing\PatternParsingTests.cs (1)
10316N(SyntaxKind.AnonymousMethodExpression);
Parsing\ScriptParsingTests.cs (2)
1425N(SyntaxKind.AnonymousMethodExpression); 1462N(SyntaxKind.AnonymousMethodExpression);
Parsing\StatementAttributeParsingTests.cs (3)
3304N(SyntaxKind.AnonymousMethodExpression); 3387N(SyntaxKind.AnonymousMethodExpression); 3467N(SyntaxKind.AnonymousMethodExpression);
Parsing\TopLevelStatementsParsingTests.cs (1)
2478N(SyntaxKind.AnonymousMethodExpression);
Microsoft.CodeAnalysis.CSharp.Workspaces (12)
CodeGeneration\CSharpSyntaxGenerator.cs (3)
1595case SyntaxKind.AnonymousMethodExpression: 2488SyntaxKind.AnonymousMethodExpression => (((AnonymousMethodExpressionSyntax)declaration).Body as BlockSyntax)?.Statements, 2520case SyntaxKind.AnonymousMethodExpression:
Formatting\CSharpSyntaxFormattingService.cs (1)
347currentTokenParentParent.Kind() == SyntaxKind.AnonymousMethodExpression))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
709case SyntaxKind.AnonymousMethodExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
428case SyntaxKind.AnonymousMethodExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
144return node.IsParentKind(SyntaxKind.AnonymousMethodExpression);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\AnchorIndentationFormattingRule.cs (1)
25if (node.IsKind(SyntaxKind.AnonymousMethodExpression))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (2)
189if (currentToken.IsKind(SyntaxKind.OpenBraceToken) && currentTokenParentParent.IsKind(SyntaxKind.AnonymousMethodExpression)) 399if (currentToken.IsKind(SyntaxKind.OpenBraceToken) && currentTokenParentParent.IsKind(SyntaxKind.AnonymousMethodExpression))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Editing\CSharpImportAdder.cs (1)
178case SyntaxKind.AnonymousMethodExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1278return parent.IsKind(SyntaxKind.ParameterList) && parent.IsParentKind(SyntaxKind.AnonymousMethodExpression);