63 references to AnonymousFunction
Microsoft.CodeAnalysis (1)
Symbols\MethodKind.cs (1)
19/// <inheritdoc cref="AnonymousFunction"/>
Microsoft.CodeAnalysis.CodeStyle (10)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
240=> symbol is IMethodSymbol { MethodKind: MethodKind.AnonymousFunction };
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (1)
326case MethodKind.AnonymousFunction:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
174case MethodKind.AnonymousFunction: 401CodeAnalysis.MethodKind.AnonymousFunction => nameof(CodeAnalysis.MethodKind.LambdaMethod),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
376case MethodKind.AnonymousFunction:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SignatureComparer.cs (3)
77if ((method1.MethodKind == MethodKind.AnonymousFunction) != 78(method2.MethodKind == MethodKind.AnonymousFunction)) 83if (method1.MethodKind != MethodKind.AnonymousFunction)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
195if (x.MethodKind is MethodKind.AnonymousFunction or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
112if (x.MethodKind == MethodKind.AnonymousFunction)
Microsoft.CodeAnalysis.CSharp (18)
Binder\Binder_Await.cs (1)
175if (method.MethodKind == MethodKind.AnonymousFunction)
Binder\Binder_Expressions.cs (2)
1944return (containingMethod.MethodKind == MethodKind.AnonymousFunction || containingMethod.MethodKind == MethodKind.LocalFunction) && !IsInsideNameof; // false in EE evaluation method 2137this.ContainingMemberOrLambda is MethodSymbol { MethodKind: MethodKind.AnonymousFunction or MethodKind.LocalFunction } &&
FlowAnalysis\DefiniteAssignment.cs (1)
2371(currentMethod.MethodKind == MethodKind.AnonymousFunction ||
FlowAnalysis\FlowAnalysisPass.cs (1)
76Debug.Assert(method.MethodKind != MethodKind.AnonymousFunction);
FlowAnalysis\NullableWalker.cs (1)
2193while (enclosingMemberMethod?.MethodKind is MethodKind.AnonymousFunction or MethodKind.LocalFunction)
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (1)
143Debug.Assert(method.MethodKind != MethodKind.LocalFunction && method.MethodKind != MethodKind.AnonymousFunction);
Lowering\SyntheticBoundNodeFactory.cs (2)
72value.MethodKind != MethodKind.AnonymousFunction && 141CurrentFunction.MethodKind == MethodKind.AnonymousFunction ||
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
280if (symbol.MethodKind == MethodKind.AnonymousFunction)
Symbols\MethodSymbol.cs (1)
604case MethodKind.AnonymousFunction:
Symbols\MethodSymbolExtensions.cs (1)
24return method.IsImplicitlyDeclared && method.MethodKind == MethodKind.AnonymousFunction;
Symbols\PublicModel\MethodSymbol.cs (2)
39case MethodKind.AnonymousFunction: 40return MethodKind.AnonymousFunction;
Symbols\Source\LambdaSymbol.cs (1)
77get { return MethodKind.AnonymousFunction; }
Symbols\Source\ParameterHelpers.cs (1)
912if (method.MethodKind != MethodKind.AnonymousFunction)
Symbols\SymbolExtensions.cs (2)
150if (method.MethodKind != MethodKind.AnonymousFunction && method.MethodKind != MethodKind.LocalFunction) break; 170if (method.MethodKind == MethodKind.AnonymousFunction || method.MethodKind == MethodKind.LocalFunction)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2017while (enclosingSymbol is IMethodSymbol { MethodKind: MethodKind.LocalFunction or MethodKind.AnonymousFunction } method)
Microsoft.CodeAnalysis.CSharp.Features (1)
InlineHints\CSharpInlineTypeHintsService.cs (1)
78if (parameter?.ContainingSymbol is IMethodSymbol { MethodKind: MethodKind.AnonymousFunction } &&
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\LambdaTests.cs (4)
858Assert.Equal(MethodKind.AnonymousFunction, (sym as IMethodSymbol).MethodKind); 868Assert.Equal(MethodKind.AnonymousFunction, (sym as IMethodSymbol).MethodKind); 3044Assert.Equal(MethodKind.AnonymousFunction, lambda.MethodKind); 3051Assert.Equal(MethodKind.AnonymousFunction, lambda.MethodKind);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\GetSemanticInfoTests.cs (1)
2360Assert.Equal(MethodKind.AnonymousFunction, ((IMethodSymbol)parameterSymbol.ContainingSymbol).MethodKind);
Symbols\Source\DeclaringSyntaxNodeTests.cs (1)
159Assert.Equal(MethodKind.AnonymousFunction, sym.MethodKind);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Recommendations\CSharpRecommendationServiceRunner.cs (1)
759if (symbol is IMethodSymbol { MethodKind: MethodKind.AnonymousFunction })
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2017while (enclosingSymbol is IMethodSymbol { MethodKind: MethodKind.LocalFunction or MethodKind.AnonymousFunction } method)
Microsoft.CodeAnalysis.Features (4)
CodeLens\CodeLensReferencesService.cs (1)
236if (method.MethodKind != MethodKind.AnonymousFunction)
Completion\Providers\AbstractContextVariableArgumentProvider.cs (1)
90while (enclosingSymbol is IMethodSymbol { MethodKind: MethodKind.LocalFunction or MethodKind.AnonymousFunction })
DocumentHighlighting\AbstractDocumentHighlightsService.cs (1)
144case MethodKind.AnonymousFunction:
ExtractMethod\Extensions.cs (1)
22if (methodSymbol?.MethodKind != MethodKind.AnonymousFunction)
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\CompilationExtensions.cs (1)
383if ((parameterInitializerOperation.Parameter.ContainingSymbol as IMethodSymbol)?.MethodKind is not (MethodKind.LocalFunction or MethodKind.AnonymousFunction))
Microsoft.CodeAnalysis.VisualBasic (4)
SymbolDisplay\SymbolDisplayVisitor.Members.vb (3)
273MethodKind.AnonymousFunction 370Case MethodKind.AnonymousFunction 701DirectCast(symbol, IMethodSymbol).MethodKind = MethodKind.AnonymousFunction OrElse
Symbols\SymbolExtensions.vb (1)
456While If(member?.Kind = SymbolKind.Method, False) AndAlso DirectCast(member, MethodSymbol).MethodKind = MethodKind.AnonymousFunction
Microsoft.CodeAnalysis.Workspaces (13)
FindSymbols\FindReferences\Finders\ParameterSymbolReferenceFinder.cs (1)
175if (declaredSymbol is IMethodSymbol { MethodKind: not MethodKind.AnonymousFunction })
FindSymbols\ReferenceLocationExtensions.cs (1)
95if (method.MethodKind != MethodKind.AnonymousFunction)
Recommendations\AbstractRecommendationServiceRunner.cs (1)
68if (parameter.ContainingSymbol is not IMethodSymbol { MethodKind: MethodKind.AnonymousFunction } owningMethod)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
240=> symbol is IMethodSymbol { MethodKind: MethodKind.AnonymousFunction };
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (1)
326case MethodKind.AnonymousFunction:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
174case MethodKind.AnonymousFunction: 401CodeAnalysis.MethodKind.AnonymousFunction => nameof(CodeAnalysis.MethodKind.LambdaMethod),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
376case MethodKind.AnonymousFunction:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SignatureComparer.cs (3)
77if ((method1.MethodKind == MethodKind.AnonymousFunction) != 78(method2.MethodKind == MethodKind.AnonymousFunction)) 83if (method1.MethodKind != MethodKind.AnonymousFunction)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
195if (x.MethodKind is MethodKind.AnonymousFunction or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
112if (x.MethodKind == MethodKind.AnonymousFunction)
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
CodeStyle\NamingStylePreferencesUpgradeTests.cs (1)
191[InlineData(typeof(MethodKind), nameof(MethodKind.AnonymousFunction), nameof(MethodKind.LambdaMethod), nameof(MethodKind.SharedConstructor), nameof(MethodKind.StaticConstructor))]
Microsoft.VisualStudio.LanguageServices (1)
Progression\GraphBuilder.cs (1)
522case MethodKind.AnonymousFunction: