1118 references to Method
ILLink.RoslynAnalyzer (3)
DataFlow\DynamicallyAccessedMembersBinder.cs (1)
413 case SymbolKind.Method:
DynamicallyAccessedMembersAnalyzer.cs (1)
137 }, SymbolKind.Method);
RequiresAnalyzerBase.cs (1)
57 }, SymbolKind.Method);
Microsoft.Analyzers.Extra (2)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (1)
635foreach (var methodSymbol in targetClassSymbol.GetMembers().Where(m => m.Kind == SymbolKind.Method).OfType<IMethodSymbol>())
UsingToStringInLoggersAnalyzer.cs (1)
28if (operationBlockContext.OwningSymbol.Kind != SymbolKind.Method)
Microsoft.Analyzers.Local (1)
ApiLifecycle\AssemblyAnalysis.cs (1)
202if (member.Kind != SymbolKind.Method)
Microsoft.AspNetCore.Analyzers (1)
StartupAnalyzer.cs (1)
60if (context.OwningSymbol.Kind != SymbolKind.Method)
Microsoft.AspNetCore.Components.Analyzers (1)
InternalUsageAnalyzer.cs (1)
54SymbolKind.Method,
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
InternalUsageAnalyzer.cs (1)
54SymbolKind.Method,
Microsoft.AspNetCore.Mvc.Analyzers (2)
AttributesShouldNotBeAppliedToPageModelAnalyzer.cs (1)
53}, SymbolKind.Method);
TopLevelParameterNameAnalyzer.cs (1)
81}, SymbolKind.Method);
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
SymbolApiResponseMetadataProvider.cs (1)
111.FirstOrDefault(m => m.Kind == SymbolKind.Method && m.IsStatic && m.DeclaredAccessibility == Accessibility.Public);
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (4)
HubClientProxyGenerator.Parser.cs (2)
285.Where(member => member.Kind == SymbolKind.Method) 289.Where(member => member.Kind == SymbolKind.Method)
HubServerProxyGenerator.Parser.cs (2)
262.Where(member => member.Kind == SymbolKind.Method) 266.Where(member => member.Kind == SymbolKind.Method)
Microsoft.CodeAnalysis (8)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
1129case SymbolKind.Method:
DocumentationCommentId.cs (2)
747kind = SymbolKind.Method; 838case SymbolKind.Method:
Emit\EditAndContinue\SymbolChanges.cs (3)
175if (synthesizedSymbol.Kind == SymbolKind.Method) 201if (synthesizedSymbol.Kind == SymbolKind.Method) 417if (newMember.Kind == SymbolKind.Method)
SymbolDisplay\AbstractSymbolDisplayVisitor_Minimal.cs (1)
73case SymbolKind.Method:
Symbols\SymbolKindExtensions.cs (1)
17case SymbolKind.Method:
Microsoft.CodeAnalysis.CodeStyle (23)
src\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (1)
36private static readonly ImmutableArray<SymbolKind> _symbolKinds = [SymbolKind.Event, SymbolKind.Method, SymbolKind.NamedType, SymbolKind.Namespace, SymbolKind.Property];
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
768case SymbolKind.Method:
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (3)
193compilationStartContext.RegisterSymbolAction(AnalyzeSymbolDeclaration, SymbolKind.Method, SymbolKind.Field, SymbolKind.Property, SymbolKind.Event); 432case SymbolKind.Method: 744case SymbolKind.Method:
src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
287if (symbolInfo.Symbol.Kind != SymbolKind.Method)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (3)
147if (symbol.Kind is not SymbolKind.Method and not SymbolKind.Property and not SymbolKind.Event) 185if (symbol.Kind == SymbolKind.Method) 341SymbolKind.Method => ((IMethodSymbol)symbol).Arity,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions_Accessibility.cs (1)
140case SymbolKind.Method:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (1)
18[SymbolKind.Method, SymbolKind.Property, SymbolKind.Event];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (3)
171case SymbolKind.Method: 432CodeAnalysis.SymbolKind.Method => new(CodeAnalysis.MethodKind.Ordinary), 503if (Modifier.IsAsync && kind == SymbolKind.Method && ((IMethodSymbol)symbol).IsAsync)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SimplifierOptions.cs (1)
48SymbolKind.Method => QualifyMethodAccess,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (4)
758&& symbol.IsKind(SymbolKind.Method) 878return symbol.Kind == SymbolKind.Method && 1059return receiverSymbol.IsKind(SymbolKind.Method) || 1066if (originalSymbol.IsKind(SymbolKind.Method) || originalSymbol.IsIndexer())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SignatureComparer.cs (2)
41SymbolKind.Method => HaveSameSignature((IMethodSymbol)symbol1, (IMethodSymbol)symbol2, caseSensitive), 150case SymbolKind.Method:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
123SymbolKind.Method => MethodsAreEquivalent((IMethodSymbol)x, (IMethodSymbol)y, equivalentTypesWithDifferingAssemblies),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
65SymbolKind.Method => CombineHashCodes((IMethodSymbol)x, currentHash),
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
145.Where(m => m.Kind != SymbolKind.Method);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractMethodSymbol.cs (1)
79public override SymbolKind Kind => SymbolKind.Method;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
123return symbol.Kind == SymbolKind.Method &&
Microsoft.CodeAnalysis.CSharp (221)
Binder\Binder.cs (4)
447case SymbolKind.Method: 608case SymbolKind.Method: 645symbol.Kind == SymbolKind.Method || 651if (symbol.Kind == SymbolKind.Method)
Binder\Binder.IdentifierUsedAsValueFinder.cs (1)
290Debug.Assert(symbol.Kind != SymbolKind.Method);
Binder\Binder.ValueChecks.cs (1)
1424if (containing.Kind == SymbolKind.Method)
Binder\Binder_AnonymousTypes.cs (1)
193case SymbolKind.Method:
Binder\Binder_Await.cs (1)
169case SymbolKind.Method:
Binder\Binder_Constraints.cs (1)
34Debug.Assert((containingSymbol.Kind == SymbolKind.NamedType) || (containingSymbol.Kind == SymbolKind.Method));
Binder\Binder_Crefs.cs (5)
303symbol.Kind != SymbolKind.Method || TypeSymbol.Equals(((MethodSymbol)symbol).ReturnType, returnType, TypeCompareKind.ConsiderEverything2), returnType); 644if (s.Kind != SymbolKind.Method) 667s.Kind != SymbolKind.Method || ((MethodSymbol)s).Arity == 0); 773case SymbolKind.Method: 915if (symbol.Kind == SymbolKind.Method)
Binder\Binder_Expressions.cs (11)
40inStaticContext = memberOpt.Kind == SymbolKind.Field || memberOpt.Kind == SymbolKind.Method || memberOpt.Kind == SymbolKind.Property; 500Debug.Assert(this.ContainingMemberOrLambda.Kind == SymbolKind.Method || this.ContainingMemberOrLambda.Kind == SymbolKind.Property); 3247if (containingSymbol.Kind == SymbolKind.Method 7982lookupResult.Symbols.All(s => s.Kind == SymbolKind.Method) ? lookupResult.Symbols.SelectAsArray(s_toMethodSymbolFunc) : ImmutableArray<MethodSymbol>.Empty, 8129if (symbols.Length > 0 && symbols[0].Kind == SymbolKind.Method) 8271Debug.Assert(symbol.Kind != SymbolKind.Method); 8875if ((existingKind == SymbolKind.Method) || 8876((existingKind == SymbolKind.Property) && (kind != SymbolKind.Method))) 8887if ((kind == SymbolKind.Method) || (kind == SymbolKind.Property)) 8912if ((methodOrPropertyGroup[0].Kind == SymbolKind.Method) || ((object)other == null)) 8943case SymbolKind.Method:
Binder\Binder_Lookup.cs (7)
903if (sym.Kind == SymbolKind.Method || sym.Kind == SymbolKind.Property) 940if (sym.Kind == SymbolKind.Method || sym.Kind == SymbolKind.Property) 1290return symbol.Kind == SymbolKind.Method || symbol.IsIndexer(); 1711case SymbolKind.Method: 1732case SymbolKind.Method: 1754case SymbolKind.Method: 1792case SymbolKind.Method:
Binder\Binder_Statements.cs (3)
2945return symbol?.Kind == SymbolKind.Method && ((MethodSymbol)symbol).IsAsyncEffectivelyReturningTask(this.Compilation); 2951return symbol?.Kind == SymbolKind.Method && ((MethodSymbol)symbol).IsAsyncEffectivelyReturningGenericTask(this.Compilation); 2957if (symbol?.Kind == SymbolKind.Method)
Binder\Binder_Symbols.cs (2)
1481case SymbolKind.Method: 1534if (!haveInstanceCandidates && members[0].Kind == SymbolKind.Method)
Binder\BinderFactory.BinderFactoryVisitor.cs (3)
521return (SourceMemberMethodSymbol)GetMemberSymbol(methodName, baseMethodDeclarationSyntax.FullSpan, container, SymbolKind.Method); 562Debug.Assert(kind is SymbolKind.Method or SymbolKind.Property or SymbolKind.Event); 601if (kind is SymbolKind.Method or SymbolKind.Property)
Binder\ContextualAttributeBinder.cs (1)
58case SymbolKind.Method:
Binder\ForEachLoopBinder.cs (1)
1382if (member.Kind != SymbolKind.Method)
Binder\InMethodBinder.cs (2)
271case SymbolKind.Method: 299case SymbolKind.Method:
Binder\LocalBinderFactory.cs (1)
297=> target.Kind == SymbolKind.Method ? new WithMethodTypeParametersBinder((MethodSymbol)target, enclosing) : null;
Binder\LocalScopeBinder.cs (2)
511declaredInThisScope |= newSymbolKind == SymbolKind.Method && this.LocalFunctions.Contains((LocalFunctionSymbol)newSymbol); 524case SymbolKind.Method:
Binder\MethodGroupResolution.cs (1)
48Debug.Assert(((object)otherSymbol == null) || (otherSymbol.Kind != SymbolKind.Method));
Binder\Semantics\AccessCheck.cs (3)
76case SymbolKind.Method: 196case SymbolKind.Method when ((MethodSymbol)symbol).MethodKind == MethodKind.LocalFunction: 200case SymbolKind.Method:
Binder\Semantics\OverloadResolution\OverloadResolution.cs (3)
1450case SymbolKind.Method: 4188member.Kind == SymbolKind.Method && (method = (MethodSymbol)(Symbol)member).Arity > 0) 4641case SymbolKind.Method:
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
903Debug.Assert(badMember.Kind == SymbolKind.Method);
Binder\WithLambdaParametersBinder.cs (1)
139case SymbolKind.Method:
Binder\WithUsingNamespacesAndTypesBinder.cs (1)
170case SymbolKind.Method:
Compilation\CSharpCompilation.cs (1)
3058if (symbol.Kind == SymbolKind.Method && symbol.IsImplicitlyDeclared && ((MethodSymbol)symbol).MethodKind == MethodKind.Constructor)
Compilation\CSharpSemanticModel.cs (5)
3743case SymbolKind.Method: 3764case SymbolKind.Method: 4522case SymbolKind.Method: 4592if (((object)otherSymbol != null) && (otherSymbol.Kind == SymbolKind.Method)) 4715Debug.Assert(singleResult.Symbol.Kind == SymbolKind.Method);
Compilation\MethodBodySemanticModel.cs (1)
52Debug.Assert(owner.Kind == SymbolKind.Method);
Compilation\SyntaxTreeSemanticModel.cs (4)
2417case SymbolKind.Method: 2437case SymbolKind.Method: 2473case SymbolKind.Method: 2519case SymbolKind.Method:
Compiler\ClsComplianceChecker.cs (11)
429symbolKind == SymbolKind.Method); 481else if (symbolKind == SymbolKind.Method) 589if (symbol.Kind == SymbolKind.Method) 681if (container.Kind == SymbolKind.Method) 731case SymbolKind.Method: 754goto case SymbolKind.Method; 828(!member.IsOverride || !(member.Kind == SymbolKind.Method || member.Kind == SymbolKind.Property))) 844(!member.IsOverride || !(member.Kind == SymbolKind.Method || member.Kind == SymbolKind.Property))) 889bool isMethodOrProperty = symbol.Kind == SymbolKind.Method || symbol.Kind == SymbolKind.Property; 1124else if (symbol.Kind == SymbolKind.Method) 1331case SymbolKind.Method:
Compiler\DocumentationCommentCompiler.cs (3)
144symbol.Kind == SymbolKind.Method || 626case SymbolKind.Method: 642case SymbolKind.Method:
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (2)
562case SymbolKind.Method: 598case SymbolKind.Method:
Compiler\MethodBodySynthesizer.cs (1)
600if (member.Kind == SymbolKind.Method)
Compiler\MethodCompiler.cs (1)
510case SymbolKind.Method:
DocumentationComments\DocumentationCommentIDVisitor.PartVisitor.cs (1)
154if (containingSymbol.Kind == SymbolKind.Method)
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (1)
444SymbolKind.Method => ((MethodSymbol)otherContainer).TypeParameters,
Emitter\Model\NamedTypeSymbolAdapter.cs (2)
325if (member.Kind == SymbolKind.Method) 1023if (m.Kind == SymbolKind.Method)
Emitter\Model\PEModuleBuilder.cs (2)
388case SymbolKind.Method: 1431return container.Kind == SymbolKind.Method && ((MethodSymbol)container).IsGenericMethod ||
Emitter\Model\TypeParameterSymbolAdapter.cs (2)
65if (AdaptedTypeParameterSymbol.ContainingSymbol.Kind == SymbolKind.Method) 80if (AdaptedTypeParameterSymbol.ContainingSymbol.Kind == SymbolKind.Method)
Emitter\NoPia\EmbeddedEvent.cs (1)
133if (m.Kind == SymbolKind.Method)
Emitter\NoPia\EmbeddedType.cs (1)
304case SymbolKind.Method:
FlowAnalysis\DefiniteAssignment.cs (1)
1807while (current?.Kind is SymbolKind.Method or SymbolKind.Field or SymbolKind.Property)
FlowAnalysis\DefiniteAssignment.LocalFunctions.cs (1)
162if (symbol.Kind == SymbolKind.Method &&
FlowAnalysis\DefiniteAssignment.VariableIdentifier.cs (1)
36SymbolKind.Method when symbol is MethodSymbol m && m.MethodKind == MethodKind.LocalFunction => true,
FlowAnalysis\NullableWalker.cs (3)
1085case SymbolKind.Method: 7209case SymbolKind.Method: 8178if (symbol.Kind == SymbolKind.Method)
FlowAnalysis\ReadWriteWalker.cs (1)
81while (current?.Kind is SymbolKind.Method or SymbolKind.Field or SymbolKind.Property)
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (1)
479if (member.Kind != SymbolKind.Method)
Lowering\ClosureConversion\ClosureConversion.Analysis.cs (1)
586case SymbolKind.Method:
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (3)
611symbol.Kind == SymbolKind.Method); 657if (symbol.Kind == SymbolKind.Method) 694Debug.Assert(capturedVariable.Kind == SymbolKind.Method);
Lowering\MethodToClassRewriter.cs (1)
636if (member.Kind == SymbolKind.Method)
SymbolDisplay\SymbolDisplayVisitor.cs (1)
383if (symbol.Kind != SymbolKind.Method)
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
784if (owner.Kind == SymbolKind.Method)
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
784if (member.Kind == SymbolKind.Method)
Symbols\Attributes\AttributeData.cs (4)
342Debug.Assert(targetSymbol.Kind == SymbolKind.Assembly || targetSymbol.Kind == SymbolKind.NamedType || targetSymbol.Kind == SymbolKind.Method); 385Debug.Assert(targetSymbol.Kind == SymbolKind.Assembly || targetSymbol.Kind == SymbolKind.NamedType || targetSymbol.Kind == SymbolKind.Method); 439if (targetSymbol.Kind == SymbolKind.NamedType || targetSymbol.Kind == SymbolKind.Method) 719case SymbolKind.Method:
Symbols\Compilation_WellKnownMembers.cs (5)
261targetSymbolKind = SymbolKind.Method; 268targetSymbolKind = SymbolKind.Method; 272targetSymbolKind = SymbolKind.Method; 303case SymbolKind.Method: 1192if (typeParam.ContainingSymbol.Kind != SymbolKind.Method)
Symbols\ExtendedErrorTypeSymbol.cs (1)
319case SymbolKind.Method:
Symbols\MemberSignatureComparer.cs (2)
854case SymbolKind.Method: 866return member.Kind == SymbolKind.Method && ((MethodSymbol)member).IsVararg;
Symbols\MemberSymbolExtensions.cs (19)
37case SymbolKind.Method: 55case SymbolKind.Method: 70case SymbolKind.Method: 87case SymbolKind.Method: 102case SymbolKind.Method: 162return symbol.Kind == SymbolKind.Method && IsAccessor((MethodSymbol)symbol); 178return symbol.Kind == SymbolKind.Method && IsOperator((MethodSymbol)symbol); 193return symbol.Kind == SymbolKind.Method && ((MethodSymbol)symbol).MethodKind == MethodKind.Conversion; 231case SymbolKind.Method: 273case SymbolKind.Method: 293case SymbolKind.Method: 326case SymbolKind.Method: 344case SymbolKind.Method: 537case SymbolKind.Method: 579case SymbolKind.Method: 596case SymbolKind.Method: 611case SymbolKind.Method: 626case SymbolKind.Method: 661if (member.Kind == SymbolKind.Method)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (6)
1065int index = GetIndexOfFirstMember(members, SymbolKind.Method); 1071if (members[index].Kind != SymbolKind.Method) 1089if (index >= members.Length || members[index].Kind != SymbolKind.Method) 1117if (index == members.Length || members[index].Kind != SymbolKind.Method) 1279Debug.Assert(SymbolKind.Field.ToSortOrder() < SymbolKind.Method.ToSortOrder()); 1280Debug.Assert(SymbolKind.Method.ToSortOrder() < SymbolKind.Property.ToSortOrder());
Symbols\Metadata\PE\PETypeParameterSymbol.cs (4)
105return this.ContainingSymbol.Kind == SymbolKind.Method 252if (_containingSymbol.Kind == SymbolKind.Method) 608var typeParameters = (_containingSymbol.Kind == SymbolKind.Method) ? 669bool inherited = (_containingSymbol.Kind == SymbolKind.Method) && ((MethodSymbol)_containingSymbol).IsOverride;
Symbols\MethodSymbol.cs (1)
644return SymbolKind.Method;
Symbols\MethodSymbolExtensions.cs (1)
109case SymbolKind.Method:
Symbols\NamedTypeSymbol.cs (1)
355if (member.Kind == SymbolKind.Method)
Symbols\OverriddenOrHiddenMembersHelpers.cs (7)
86Debug.Assert(member.Kind == SymbolKind.Method || member.Kind == SymbolKind.Property || member.Kind == SymbolKind.Event); 578if (otherMemberArity == memberArity || (memberKind == SymbolKind.Method && otherMemberArity == 0)) 756if (hiddenMember.Kind != SymbolKind.Method || ((MethodSymbol)hiddenMember).CanBeHiddenByMemberKind(hidingMemberKind)) 879case SymbolKind.Method: 891case SymbolKind.Method: 913case SymbolKind.Method: 1034if (otherMember.Kind == SymbolKind.Method &&
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
1031if (retargetedMember.Kind == SymbolKind.Method)
Symbols\Source\LocalFunctionSymbol.cs (1)
440if (tpEnclosing.ContainingSymbol.Kind == SymbolKind.Method)
Symbols\Source\ModifierUtils.cs (1)
470(symbol.Kind != SymbolKind.Method || (modifiers & DeclarationModifiers.Partial) == 0) &&
Symbols\Source\ParameterHelpers.cs (1)
909if (current.Kind == SymbolKind.Method)
Symbols\Source\SourceMemberContainerSymbol.cs (8)
2038if (symbol.Kind != SymbolKind.Method || lastSym.Kind != SymbolKind.Method) 2049if (lastSym.Kind == SymbolKind.Method) 2448if (member.Kind != SymbolKind.Method || ((MethodSymbol)member).MethodKind != MethodKind.Destructor) 3855if (symbol.Kind != SymbolKind.Method) 3891if (symbol.Kind != SymbolKind.Method) 4052case SymbolKind.Method: 4797if (member.Kind == SymbolKind.Method)
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (11)
103if (abstractMember.Kind == SymbolKind.Method && abstractMember is not SynthesizedRecordOrdinaryMethod) 142case SymbolKind.Method: 237var associatedPropertyOrEvent = interfaceMemberKind == SymbolKind.Method ? ((MethodSymbol)interfaceMember).AssociatedSymbol : null; 312if (wasImplementingMemberFound && interfaceMemberKind == SymbolKind.Method) 534case SymbolKind.Method: 703if (hiddenMember.Kind == SymbolKind.Method && !((MethodSymbol)hiddenMember).CanBeHiddenByMemberKind(symbol.Kind)) 751var overridingMemberIsMethod = overridingMember.Kind == SymbolKind.Method; 870var overridingMemberIsMethod = overridingMember.Kind == SymbolKind.Method; 1643case SymbolKind.Method: 1673case SymbolKind.Method: 1806if ((object)implementingMember == null || implementingMember.Kind != SymbolKind.Method)
Symbols\Source\SourceParameterSymbol.cs (1)
111Debug.Assert((owner.Kind == SymbolKind.Method) || (owner.Kind == SymbolKind.Property));
Symbols\SubstitutedTypeParameterSymbol.cs (1)
65if (_container.Kind == SymbolKind.Method)
Symbols\Symbol.cs (6)
665case SymbolKind.Method: 725if (this.Kind == SymbolKind.Method) 902Debug.Assert(this.Kind == SymbolKind.NamedType || this.Kind == SymbolKind.Method); 1213case SymbolKind.Method: 1654case SymbolKind.Method: 1725case SymbolKind.Method:
Symbols\Symbol_Attributes.cs (3)
54case SymbolKind.Method: 911Debug.Assert(this.Kind == SymbolKind.Method); 932case SymbolKind.Method:
Symbols\SymbolDistinguisher.cs (1)
63case SymbolKind.Method:
Symbols\SymbolExtensions.cs (6)
147while (containingMember is object && containingMember.Kind == SymbolKind.Method) 166case SymbolKind.Method: 207case SymbolKind.Method: 351case SymbolKind.Method: 498case SymbolKind.Method: 547SymbolKind.Method => ((MethodSymbol)symbol).RequiresInstanceReceiver,
Symbols\SymbolKindExtensions.cs (1)
34case SymbolKind.Method:
Symbols\Tuples\TupleTypeSymbol.cs (2)
692case SymbolKind.Method: 1063case SymbolKind.Method:
Symbols\TypeSymbol.cs (11)
738case SymbolKind.Method: 806Debug.Assert(interfaceMember.Kind == SymbolKind.Method || interfaceMember.Kind == SymbolKind.Property || interfaceMember.Kind == SymbolKind.Event); 1002if (!canBeImplementedImplicitlyInCSharp9 && interfaceMember.Kind == SymbolKind.Method && 1504associated = implementation.Kind == SymbolKind.Method 1623if (interfaceMember.Kind == SymbolKind.Method) 1673if (interfaceMember.Kind == SymbolKind.Method) 1940case SymbolKind.Method: 2006case SymbolKind.Method: 2026case SymbolKind.Method: 2285Debug.Assert(interfaceMember.Kind != SymbolKind.Method || (object)interfaceMember == ((MethodSymbol)interfaceMember).ConstructedFrom); 2400case SymbolKind.Method:
Symbols\TypeSymbolExtensions.cs (2)
352return p.ContainingSymbol.Kind == SymbolKind.Method; 1746case SymbolKind.Method:
Symbols\VarianceSafety.cs (1)
49case SymbolKind.Method:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
443case SymbolKind.Method:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\AddInheritdoc\AddInheritdocCodeFixProvider.cs (1)
68if (symbol.Kind is SymbolKind.Method or SymbolKind.Property or SymbolKind.Event)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
SymbolKey\SymbolKeyTestBase.cs (2)
171kinds.Add(SymbolKind.Method); 230case SymbolKind.Method:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenDynamicTests.cs (1)
689case SymbolKind.Method:
CodeGen\CodeGenTupleTest.cs (1)
11629if (members1[i].Kind == SymbolKind.Method)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (34)
Attributes\AttributeTests_MarshalAs.cs (1)
70var methods = type.GetMembers().Where(s => s.Kind == SymbolKind.Method);
Attributes\AttributeTests_Security.cs (11)
729ParentKind = SymbolKind.Method, 772ParentKind = SymbolKind.Method, 810ParentKind = SymbolKind.Method, 903ParentKind = SymbolKind.Method, 1015ParentKind = SymbolKind.Method, 1034ParentKind = SymbolKind.Method, 1143ParentKind = SymbolKind.Method, 1162ParentKind = SymbolKind.Method, 1268ParentKind = SymbolKind.Method, 1345ParentKind = SymbolKind.Method, 1444ParentKind = SymbolKind.Method,
Attributes\AttributeTests_Synthesized.cs (1)
493foreach (var member in iter.GetMembers().Where(s => s.Kind == SymbolKind.Method))
Attributes\AttributeTests_Tuples.cs (1)
277case SymbolKind.Method:
Diagnostics\DiagnosticAnalyzerTests.cs (9)
516SymbolKind.Namespace, SymbolKind.NamedType, SymbolKind.Event, SymbolKind.Field, SymbolKind.Method, SymbolKind.Property); 842}, SymbolKind.Method); 2884TestSymbolStartAnalyzerCore(new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.Method), 2930var analyzer2 = new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.Method, analyzerId: 2); 2956var analyzer2 = new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.Method, analyzerId: 2); 2989var symbolKinds = new[] { SymbolKind.NamedType, SymbolKind.Namespace, SymbolKind.Method, 3062TestSymbolStartAnalyzerCore(new SymbolStartAnalyzer(topLevelAction: true, SymbolKind.Method, OperationKind.VariableDeclarationGroup), 3083var symbolKinds = new[] { SymbolKind.NamedType, SymbolKind.Namespace, SymbolKind.Method, 3143var symbolKinds = new[] { SymbolKind.NamedType, SymbolKind.Namespace, SymbolKind.Method,
FlowAnalysis\FlowTestBase.cs (1)
51case SymbolKind.Method:
Semantics\PrimaryConstructorTests.cs (6)
1328Assert.Equal(SymbolKind.Method, symbol.Kind); 4079context.RegisterSymbolAction(Handle, SymbolKind.Method); 4165context.RegisterSymbolStartAction(Handle1, SymbolKind.Method); 5142context.RegisterSymbolAction(Handle1, SymbolKind.Method); 5482context.RegisterSymbolAction(Handle, SymbolKind.Method); 5569context.RegisterSymbolStartAction(Handle1, SymbolKind.Method);
Semantics\RecordTests.cs (4)
21402Assert.Equal(SymbolKind.Method, symbol!.Kind); 26517context.RegisterSymbolAction(Handle, SymbolKind.Method); 26612context.RegisterSymbolStartAction(Handle1, SymbolKind.Method); 27609context.RegisterSymbolAction(Handle1, SymbolKind.Method);
Microsoft.CodeAnalysis.CSharp.Features (9)
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (2)
633SymbolKind.Method => Glyph.MethodPublic, 666symbolKindOrTypeKind.MethodKind.HasValue ? SymbolKind.Method :
Completion\CompletionProviders\SymbolCompletionProvider.cs (1)
253if (symbol.IsKind(SymbolKind.Method) && !context.IsNameOfContext)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1019return symbol.Kind == SymbolKind.Method && syntax is TypeDeclarationSyntax { ParameterList: { } parameterList } ? parameterList : syntax;
GenerateType\CSharpGenerateTypeService.cs (2)
456return memberGroup.ElementAt(0).IsKind(SymbolKind.Method) ? (IMethodSymbol)memberGroup.ElementAt(0) : null; 466if (expressionSymbol.IsKind(SymbolKind.Method))
LanguageServices\CSharpSymbolDisplayService.SymbolDescriptionBuilder.cs (1)
254if (symbol is IMethodSymbol method && method.ContainingSymbol.IsKind(SymbolKind.Method))
NavigationBar\CSharpNavigationBarItemService.cs (1)
181if (member.Kind == SymbolKind.Method)
src\Analyzers\CSharp\CodeFixes\AddInheritdoc\AddInheritdocCodeFixProvider.cs (1)
68if (symbol.Kind is SymbolKind.Method or SymbolKind.Property or SymbolKind.Event)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_IVariableDeclaration.cs (1)
943Assert.Equal(SymbolKind.Method, invocInfo.Symbol.Kind);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (44)
Semantics\ColorColorTests.cs (27)
51SymbolKind.Method, "void E.M(System.Int32 x)"); 76SymbolKind.Method, "void E.M(System.Int32 x)", 101SymbolKind.Method, "void E.Invoke(System.Int32 x)"); 124SymbolKind.Method, "void E.M(System.Int32 x)"); 148SymbolKind.Method, "void E.M(System.Int32 x)"); 348SymbolKind.Method, "void E.M(System.Int32 x)", 377SymbolKind.Method, "void E.M<System.Int32>(System.Int32 x)", 406SymbolKind.Method, "void E.M<System.Boolean>(System.Boolean x)", 439SymbolKind.Method, "void E.M(System.Int32 x)", 472SymbolKind.Method, "void E.M(System.Int32 x)", 507SymbolKind.Method, "void E.M(System.Int32 x)"); 534SymbolKind.Method, "void E.M(params System.Int32[] a)"); 561SymbolKind.Method, "void E.M(System.Int32 x)"); 601Assert.Equal(SymbolKind.Method, parentInfo.Symbol.Kind); 681SymbolKind.Method, "void E.M(System.Int32 x)"); 710SymbolKind.Method, "void E.M(params System.Int32[] a)"); 761SymbolKind.Method, "void E.M(System.Int32 x)", 800SymbolKind.Method, "void E.M(params System.Int32[] a)", 839SymbolKind.Method, "void E.M(System.Int32 x)", 878SymbolKind.Method, "void E.M(params System.Int32[] a)", 908SymbolKind.Method, "void C.Static()"); 932SymbolKind.Method, "void C.Static()"); 1324SymbolKind.Method, "void E.M(params System.Int32[] a)", 1354SymbolKind.Method, "void E.M(params System.Int32[] a)"); 1383SymbolKind.Method, "void E.M(System.Int32 x)", 1412SymbolKind.Method, "void E.M(params System.Int32[] a)", 1440SymbolKind.Method, "void E.M(System.Int32 x)");
Semantics\LambdaTests.cs (2)
857Assert.Equal(SymbolKind.Method, sym.Kind); 867Assert.Equal(SymbolKind.Method, sym.Kind);
Semantics\NativeIntegerTests.cs (4)
319case SymbolKind.Method: 433case SymbolKind.Method: 559case SymbolKind.Method: 612case SymbolKind.Method:
Semantics\RecordStructTests.cs (3)
6183context.RegisterSymbolAction(Handle, SymbolKind.Method); 6279context.RegisterSymbolStartAction(Handle1, SymbolKind.Method); 6817context.RegisterSymbolAction(Handle1, SymbolKind.Method);
Semantics\TopLevelStatementsTests.cs (7)
706Assert.Equal(SymbolKind.Method, local.ContainingSymbol.Kind); 4223Assert.Equal(SymbolKind.Method, local.ContainingSymbol.Kind); 4901Assert.Equal(SymbolKind.Method, label.ContainingSymbol.Kind); 4986Assert.Equal(SymbolKind.Method, label.ContainingSymbol.Kind); 6530context.RegisterSymbolAction(Handle, SymbolKind.Method); 6605context.RegisterSymbolStartAction(Handle1, SymbolKind.Method); 7269context.RegisterSymbolAction(Handle1, SymbolKind.Method);
Semantics\UnsafeTests.cs (1)
5203Assert.Equal(SymbolKind.Method, binder.ContainingMemberOrLambda.Kind);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (170)
Compilation\GetSemanticInfoTests.cs (8)
75Assert.Equal(SymbolKind.Method, sym.Symbol.Kind); 105Assert.Equal(SymbolKind.Method, sym.Symbol.Kind); 139Assert.Equal(SymbolKind.Method, sym.Symbol.Kind); 1073Assert.Equal(SymbolKind.Method, baseConstructor.Kind); 1092Assert.Equal(SymbolKind.Method, baseConstructor.Kind); 1710Assert.Equal(SymbolKind.Method, symbol.ContainingSymbol.Kind); 1745Assert.Equal(SymbolKind.Method, symbol.ContainingSymbol.Kind); 1780Assert.Equal(SymbolKind.Method, symbol.ContainingSymbol.Kind);
Compilation\IndexedProperties_BindingTests.cs (1)
42IndexedPropertiesBindingChecks(source, reference, SymbolKind.Method, "get_P1");
Compilation\SemanticModelAPITests.cs (9)
155Assert.Equal(SymbolKind.Method, symbolInfo.Symbol.Kind); 1369Assert.Equal(SymbolKind.Method, symbol.Kind); 2085Assert.Equal(SymbolKind.Method, symbol.Kind); 2102Assert.Equal(SymbolKind.Method, symbol.Kind); 2121Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 2123Assert.Equal(SymbolKind.Method, sortedCandidates[1].Kind); 3051Assert.Equal(SymbolKind.Method, symbol.Kind); 3056Assert.Equal(SymbolKind.Method, symbol.Kind); 3067Assert.Equal(SymbolKind.Method, symbol.Kind);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (9)
1391Assert.True(symbolsInC.Any(s => s.Name == "M" && s.Kind == SymbolKind.Method && s.ContainingType.Name == "A")); 1392Assert.True(symbolsInC.Any(s => s.Name == "M" && s.Kind == SymbolKind.Method && s.ContainingType.Name == "B")); 1393Assert.True(symbolsInC.Any(s => s.Name == "M" && s.Kind == SymbolKind.Method && s.ContainingType.Name == "C")); 1394Assert.True(symbolsInC.Any(s => s.Name == "F" && s.Kind == SymbolKind.Method && s.ContainingType.Name == "C")); 1722symbol.Kind == SymbolKind.Method && (((IMethodSymbol)symbol).IsExtensionMethod || ((IMethodSymbol)symbol).MethodKind == MethodKind.ReducedExtension); 1885symbol.Kind == SymbolKind.Method && (((IMethodSymbol)symbol).IsExtensionMethod || ((IMethodSymbol)symbol).MethodKind == MethodKind.ReducedExtension); 3590Assert.Equal(SymbolKind.Method, symbol.Kind); 3615Assert.Equal(SymbolKind.Method, symbol.Kind); 3849Assert.Equal(SymbolKind.Method, symbolInfo.Symbol.Kind);
Compilation\SemanticModelGetSemanticInfoTests.cs (116)
56Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 58Assert.Equal(SymbolKind.Method, sortedCandidates[1].Kind); 379Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 805Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 2157Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 2304Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 2354Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 2400Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 2443Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 2498Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 2550Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 2655Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 2700Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 2702Assert.Equal(SymbolKind.Method, sortedCandidates[1].Kind); 2741Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 2743Assert.Equal(SymbolKind.Method, sortedCandidates[1].Kind); 2791Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 2793Assert.Equal(SymbolKind.Method, sortedCandidates[1].Kind); 2837Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 2876Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 2912Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 2956Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 2992Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 3026Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 3078Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 3123Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 3163Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 3205Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 3251Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 3290Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 3326Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 3363Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 3400Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 3870Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 4079Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 4290Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 4292Assert.Equal(SymbolKind.Method, sortedCandidates[1].Kind); 4324Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 4892Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.ContainingSymbol.Kind); 4928Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 4929Assert.Equal(SymbolKind.Method, sortedCandidates[1].Kind); 4974Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 4976Assert.Equal(SymbolKind.Method, sortedCandidates[1].Kind); 4978Assert.Equal(SymbolKind.Method, sortedCandidates[2].Kind); 4983Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 4985Assert.Equal(SymbolKind.Method, sortedCandidates[1].Kind); 4987Assert.Equal(SymbolKind.Method, sortedCandidates[2].Kind); 5026Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 5028Assert.Equal(SymbolKind.Method, sortedCandidates[1].Kind); 5030Assert.Equal(SymbolKind.Method, sortedCandidates[2].Kind); 5035Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 5037Assert.Equal(SymbolKind.Method, sortedCandidates[1].Kind); 5039Assert.Equal(SymbolKind.Method, sortedCandidates[2].Kind); 5117Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 5163Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 5205Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 5284Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 5326Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 5412Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 5637Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 5662Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 5698Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 6123Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 6150Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 6183Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 6372Assert.Equal(SymbolKind.Method, symbol.Kind); 6406Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 6442Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 6685Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 7000Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 7029Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 7084Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 7112Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 7143Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 7294Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 7322Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 7759Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 8379Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 8413Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 8650Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 9465Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 9467Assert.Equal(SymbolKind.Method, sortedCandidates[1].Kind); 9469Assert.Equal(SymbolKind.Method, sortedCandidates[2].Kind); 9841Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 9923Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 9957Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 9993Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 10029Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 10065Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 10187Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 10226Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 10257Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 10292Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 10845Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 11154Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 11156Assert.Equal(SymbolKind.Method, sortedCandidates[1].Kind); 11158Assert.Equal(SymbolKind.Method, sortedCandidates[2].Kind); 11232Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 11234Assert.Equal(SymbolKind.Method, sortedCandidates[1].Kind); 11545Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 12682Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 13139Assert.Equal(SymbolKind.Method, symbol.Kind); 13173Assert.Equal(SymbolKind.Method, symbol.Kind); 13207Assert.Equal(SymbolKind.Method, symbol.Kind); 13238Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 13329Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 13883Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 13922Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 14125Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 14251Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 14347Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 14632Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 14671Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 15123Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind); 15125Assert.Equal(SymbolKind.Method, sortedCandidates[1].Kind); 15158Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
CrossLanguageTests.cs (1)
38Assert.Empty(t.GetMembersUnordered().Where(x => x.Kind == SymbolKind.Method && !x.CanBeReferencedByName));
DocumentationComments\CrefTests.cs (4)
817Assert.Equal(SymbolKind.Method, GetReferencedSymbol(crefSyntax, compilation).Kind); 864Assert.Equal(SymbolKind.Method, GetReferencedSymbol(crefSyntax, compilation).Kind); 1813Assert.Equal(SymbolKind.Method, actualSymbol.Kind); 6075Assert.Equal(SymbolKind.Method, methodSymbol.Kind);
DocumentationComments\DocumentationCommentIDTests.cs (1)
184Assert.Equal(SymbolKind.Method, symbol.Kind);
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (1)
878var mems = tsym.GetMembers().Where(s => s.Kind == SymbolKind.Method);
Symbols\AnonymousTypesSemanticsTests.cs (4)
591Assert.Equal(SymbolKind.Method, method.Kind); 659Assert.Equal(SymbolKind.Method, method.Kind); 680Assert.Equal(SymbolKind.Method, method.Kind); 701Assert.Equal(SymbolKind.Method, method.Kind);
Symbols\ConversionTests.cs (2)
2142Assert.Equal(SymbolKind.Method, symbol.Kind); 2176Assert.Equal(SymbolKind.Method, symbol.Kind);
Symbols\ExtensionMethodTests.cs (2)
3154Assert.Equal(SymbolKind.Method, firstInvocationSymbol.Kind); 3160Assert.Equal(SymbolKind.Method, secondInvocationSymbol.Kind);
Symbols\Metadata\MetadataMemberTests.cs (3)
163Assert.Equal(SymbolKind.Method, ctor.Kind); 204Assert.Equal(SymbolKind.Method, member1.Kind); 311Assert.Equal(SymbolKind.Method, member1.Kind);
Symbols\Metadata\PE\LoadingFields.cs (1)
111Assert.Equal(SymbolKind.Method, csFields.GetMembers("FfF").Single().Kind);
Symbols\Metadata\PE\LoadingMethods.cs (1)
102Assert.Equal(SymbolKind.Method, sameName2.Kind);
Symbols\Retargeting\RetargetExplicitInterfaceImplementation.cs (1)
85case SymbolKind.Method:
Symbols\Retargeting\RetargetingTests.cs (2)
1179case SymbolKind.Method: 1307case SymbolKind.Method:
Symbols\Source\DeclaringSyntaxNodeTests.cs (2)
523if (memb.Kind == SymbolKind.Method && ((IMethodSymbol)memb).MethodKind == MethodKind.Constructor) 577if (memb.Kind == SymbolKind.Method)
Symbols\Source\MethodTests.cs (1)
448Assert.Equal(SymbolKind.Method, method.Kind);
Symbols\TypeTests.cs (1)
495Assert.Equal(SymbolKind.Method, method.Kind);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (5)
CompilationTestUtils.cs (1)
222get { return this.MemberGroup.WhereAsArray(s => s.Kind == SymbolKind.Method).SelectAsArray(s => (IMethodSymbol)s); }
EmitMetadataTestBase.cs (1)
151kind = SymbolKind.Method;
Extensions.cs (3)
755case SymbolKind.Method: 816case SymbolKind.Method: 851case SymbolKind.Method:
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (1)
Metadata\WinMdDumpTest.cs (1)
95case SymbolKind.Method:
Microsoft.CodeAnalysis.CSharp.Workspaces (11)
Recommendations\CSharpRecommendationServiceRunner.cs (1)
725if (symbol.Kind is SymbolKind.Method &&
Rename\CSharpRenameRewriterLanguageService.cs (3)
848else if (renamedSymbol.Kind == SymbolKind.Method) 992(renameSymbol.Kind == SymbolKind.Method && 1057if (symbol.Kind == SymbolKind.Method)
Simplification\CSharpSimplificationService.Expander.cs (3)
561symbol.Kind == SymbolKind.Method && 667if (symbol.Kind is SymbolKind.Method or 743if (newNode.Kind() == SyntaxKind.IdentifierName && symbol.Kind == SymbolKind.Method)
Simplification\Reducers\CSharpExtensionMethodReducer.cs (2)
57if (targetSymbol.Symbol != null && targetSymbol.Symbol.Kind == SymbolKind.Method) 122if (newSymbol.Kind == SymbolKind.Method && oldSymbol.Equals(((IMethodSymbol)newSymbol).GetConstructedReducedFrom()))
Simplification\Simplifiers\NameSimplifier.cs (1)
85if (symbol.Kind == SymbolKind.Method && name.Kind() == SyntaxKind.GenericName)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
443case SymbolKind.Method:
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Peek\PeekHelpers.cs (1)
59case SymbolKind.Method:
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (4)
Diagnostics\DiagnosticServiceTests.vb (4)
1257context.RegisterSymbolAction(AddressOf AnalyzeSymbol, SymbolKind.Method) 1888End Sub, SymbolKind.Method) 2458Assert.Equal(SymbolKind.Method, analyzedMethod.Kind) 2522context.RegisterSymbolAction(Sub(symbolContext) AnalyzedMethodSymbols.Add(symbolContext.Symbol), SymbolKind.Method)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
DkmUtilities.cs (1)
299case SymbolKind.Method:
Microsoft.CodeAnalysis.Features (34)
ChangeSignature\AbstractChangeSignatureService.cs (1)
146if (!symbol.MatchesKind(SymbolKind.Method, SymbolKind.Property))
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.cs (1)
362case SymbolKind.Method:
CodeLens\CodeLensReferencesService.cs (1)
225if (current.Kind != SymbolKind.Method)
Completion\CommonCompletionUtilities.cs (1)
126case SymbolKind.Method:
Completion\Providers\AbstractMemberInsertingCompletionProvider.cs (1)
149if (generatedMember.Kind == SymbolKind.Method)
Completion\Providers\AbstractOverrideCompletionProvider.cs (1)
74SymbolKind.Method => ((IMethodSymbol)symbol).ReturnType,
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (1)
194if (symbol.MatchesKind(SymbolKind.Event, SymbolKind.Method))
Debugging\AbstractBreakpointResolver.cs (3)
232SymbolKind.Method => ((IMethodSymbol)symbol).PartialImplementationPart, 244if (kind is not (SymbolKind.Method or SymbolKind.Property)) 271if (methodOrProperty.IsKind(SymbolKind.Method))
DocumentHighlighting\AbstractDocumentHighlightsService.cs (1)
141case SymbolKind.Method:
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (2)
324SymbolKind.Method => GetDisplayName((IMethodSymbol)symbol), 2451case SymbolKind.Method:
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingSemanticChangeProcessor.cs (1)
205SymbolKind.Method or
ExtractInterface\AbstractExtractInterfaceService.cs (1)
388case SymbolKind.Method:
GoToBase\FindBaseHelpers.cs (1)
27if (symbol.Kind is SymbolKind.Property or SymbolKind.Method or SymbolKind.Event)
InlineMethod\AbstractInlineMethodRefactoringProvider.cs (1)
578|| declaredSymbol.IsKind(SymbolKind.Method)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (2)
36SymbolKind.Method or 49SymbolKind.Method => new WrappedMethodSymbol((IMethodSymbol)m, canImplementImplicitly, docCommentFormattingService),
MetadataAsSource\MetadataAsSourceFileService.cs (1)
290case SymbolKind.Method:
Rename\SymbolicRenameInfo.cs (2)
189symbol.ContainingSymbol.Kind == SymbolKind.Method && 206if (symbol.Kind == SymbolKind.Method && ((IMethodSymbol)symbol).MethodKind == MethodKind.UserDefinedOperator)
Shared\Extensions\ISymbolExtensions_2.cs (1)
94case SymbolKind.Method:
Shared\Extensions\ISymbolExtensions_Sorting.cs (3)
172if (s1.Kind == SymbolKind.Method || s2.Kind == SymbolKind.Method) 176: s1.Kind == SymbolKind.Method ? -1 : 1;
Shared\Utilities\ExtractTypeHelpers.cs (1)
205case SymbolKind.Method:
src\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (1)
36private static readonly ImmutableArray<SymbolKind> _symbolKinds = [SymbolKind.Event, SymbolKind.Method, SymbolKind.NamedType, SymbolKind.Namespace, SymbolKind.Property];
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
768case SymbolKind.Method:
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (3)
193compilationStartContext.RegisterSymbolAction(AnalyzeSymbolDeclaration, SymbolKind.Method, SymbolKind.Field, SymbolKind.Property, SymbolKind.Event); 432case SymbolKind.Method: 744case SymbolKind.Method:
src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
287if (symbolInfo.Symbol.Kind != SymbolKind.Method)
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
145.Where(m => m.Kind != SymbolKind.Method);
Microsoft.CodeAnalysis.Test.Utilities (23)
Compilation\CompilationExtensions.cs (2)
235if (declaration.DeclaredSymbol.Kind == SymbolKind.Method && compilation.Language == LanguageNames.VisualBasic) 259case SymbolKind.Method:
Diagnostics\CommonDiagnosticAnalyzers.cs (6)
1573if (context.OwningSymbol.Kind != SymbolKind.Method || 1591if (context.OwningSymbol.Kind != SymbolKind.Method || 1606if (context.OwningSymbol.Kind != SymbolKind.Method) 1619if (context.OwningSymbol.Kind != SymbolKind.Method) 2751SymbolKind.NamedType, SymbolKind.Method); 3016context.RegisterSymbolAction(symbolContext => AnalyzedSymbols.Add(symbolContext.Symbol), SymbolKind.NamedType, SymbolKind.Method);
Diagnostics\SuppressMessageAttributeTests.DiagnosticAnalyzers.cs (1)
74SymbolKind.Method,
Diagnostics\TrackingDiagnosticAnalyzer.cs (14)
84SymbolKind.Event, SymbolKind.Field, SymbolKind.Method, SymbolKind.NamedType, SymbolKind.Namespace, SymbolKind.Parameter, SymbolKind.Property 119new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.Constructor, ReturnsVoid = true }, 120new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.Conversion, ReturnsVoid = false }, 121new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.Destructor, ReturnsVoid = true }, // C# only 122new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.EventAdd, ReturnsVoid = true }, 123new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.EventRemove, ReturnsVoid = true }, 124new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.EventRaise, ReturnsVoid = true }, // VB only 125new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.ExplicitInterfaceImplementation, ReturnsVoid = true }, // C# only 126new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.Ordinary, ReturnsVoid = false }, 127new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.Ordinary, ReturnsVoid = true }, 128new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.PropertyGet, ReturnsVoid = false }, 129new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.PropertySet, ReturnsVoid = true }, 130new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.StaticConstructor, ReturnsVoid = true }, 131new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.UserDefinedOperator, ReturnsVoid = false },
Microsoft.CodeAnalysis.VisualBasic (218)
Analysis\FlowAnalysis\AbstractFlowPass.vb (5)
112_info.Symbol.Kind = SymbolKind.Method OrElse 239Return If(Me.symbol.Kind = SymbolKind.Method, DirectCast(Me.symbol, MethodSymbol).Parameters, ImmutableArray(Of ParameterSymbol).Empty) 253Return Me.symbol.Kind = SymbolKind.Method AndAlso DirectCast(Me.symbol, MethodSymbol).Locations.Length = 1 263Return If(Me.symbol.Kind = SymbolKind.Method, DirectCast(Me.symbol, MethodSymbol), Nothing) 273Return If(Me.symbol.Kind = SymbolKind.Method, DirectCast(Me.symbol, MethodSymbol).ReturnType, Nothing)
Analysis\InitializerRewriter.vb (1)
88If member.Kind = SymbolKind.Method Then
Analysis\IteratorAndAsyncAnalysis\IteratorAndAsyncCaptureWalker.vb (1)
51Debug.Assert(info.Symbol.Kind = SymbolKind.Method)
Binding\Binder.vb (1)
400Case SymbolKind.Method
Binding\Binder_Constraints.vb (2)
18Debug.Assert((containingSymbol.Kind = SymbolKind.NamedType) OrElse (containingSymbol.Kind = SymbolKind.Method)) 48Debug.Assert((containingSymbol.Kind = SymbolKind.NamedType) OrElse (containingSymbol.Kind = SymbolKind.Method))
Binding\Binder_Expressions.vb (12)
1907Case SymbolKind.Method 2237Case SymbolKind.Method, SymbolKind.Property 2585Case SymbolKind.Field, SymbolKind.Method, SymbolKind.Property, SymbolKind.Event 3092((lookupResult.Symbols(0).Kind <> SymbolKind.Method AndAlso lookupResult.Symbols(0).Kind <> SymbolKind.Property) OrElse 3139Case SymbolKind.Method 3516Case SymbolKind.Method 4006Case SymbolKind.Method 4629Return ContainingMember.Kind = SymbolKind.Method AndAlso DirectCast(ContainingMember, MethodSymbol).IsAsync 4633Return ContainingMember.Kind = SymbolKind.Method AndAlso DirectCast(ContainingMember, MethodSymbol).IsIterator 4740If lookupResult.Kind = LookupResultKind.Good AndAlso lookupResult.Symbols(0).Kind = SymbolKind.Method Then 4838If lookupResult.Kind = LookupResultKind.Good AndAlso lookupResult.Symbols(0).Kind = SymbolKind.Method Then 4960ElseIf ContainingMember.Kind = SymbolKind.Method Then
Binding\Binder_Invocation.vb (6)
58If Me.ContainingMember.Kind = SymbolKind.Method AndAlso DirectCast(Me.ContainingMember, MethodSymbol).MethodKind = MethodKind.Constructor Then 554If kind = SymbolKind.Method OrElse kind = SymbolKind.Property Then 896If methodOrProperty.Kind = SymbolKind.Method Then 1730If underlyingSymbol.Kind = SymbolKind.Method Then 2272Debug.Assert(candidate.UnderlyingSymbol.Kind = SymbolKind.Method) 3130Case SymbolKind.Method
Binding\Binder_Lookup.vb (7)
201Case SymbolKind.Method 244ElseIf sym.Kind = SymbolKind.Method Then 252If unwrappedSym.Kind = SymbolKind.Method AndAlso unwrappedSym.ContainingSymbol IsNot Nothing Then 289sym.Kind <> SymbolKind.Method Then 1155result.Symbols(0).Kind <> SymbolKind.Method) Then 1546FilterSymbolsInLookupResult(lookupResult, SymbolKind.Method, leaveInsteadOfRemoving:=True) 1685lookupResult.Symbols(0).Kind <> SymbolKind.Method Then
Binding\Binder_ObjectInitializer.vb (1)
898Return y.Kind = SymbolKind.Method
Binding\Binder_Statements.vb (8)
1006ElseIf Me.ContainingMember.Kind = SymbolKind.Method AndAlso DirectCast(Me.ContainingMember, MethodSymbol).IsGenericMethod Then 4237If sym.Kind = SymbolKind.Method Then 4291If result.Symbols(0).Kind = SymbolKind.Method AndAlso 5041Debug.Assert(Me.ContainingMember.Kind = SymbolKind.Method AndAlso DirectCast(Me.ContainingMember, MethodSymbol).MethodKind = MethodKind.LambdaMethod) 5052Debug.Assert(Me.ContainingMember.Kind = SymbolKind.Method AndAlso DirectCast(Me.ContainingMember, MethodSymbol).MethodKind = MethodKind.LambdaMethod) 5082Debug.Assert(Me.ContainingMember.Kind = SymbolKind.Method AndAlso DirectCast(Me.ContainingMember, MethodSymbol).MethodKind = MethodKind.LambdaMethod) 5150Debug.Assert(Me.ContainingMember.Kind = SymbolKind.Method AndAlso DirectCast(Me.ContainingMember, MethodSymbol).MethodKind = MethodKind.LambdaMethod) 5162Debug.Assert(Me.ContainingMember.Kind = SymbolKind.Method AndAlso DirectCast(Me.ContainingMember, MethodSymbol).MethodKind = MethodKind.LambdaMethod)
Binding\Binder_Utils.vb (1)
862Debug.Assert(Not (container.Kind = SymbolKind.Method AndAlso DirectCast(container, MethodSymbol).MethodKind = MethodKind.DelegateInvoke))
Binding\Binder_XmlLiterals.vb (1)
985Case SymbolKind.Method
Binding\BinderFactory.vb (1)
647(symbol.Kind = SymbolKind.Method) Then
Binding\DocumentationCommentBinder.vb (2)
186Case SymbolKind.Method, SymbolKind.Property 206Case SymbolKind.Method
Binding\DocumentationCommentCrefBinder.vb (4)
119Case SymbolKind.Method 387Case SymbolKind.Method 793Case SymbolKind.Method 850Case SymbolKind.Method
Binding\DocumentationCommentCrefBinder_Compat.vb (2)
210Case SymbolKind.Method 395Case SymbolKind.Method
Binding\DocumentationCommentParamBinder.vb (1)
37Case SymbolKind.Method
Binding\DocumentationCommentTypeParamBinder.vb (1)
44Case SymbolKind.Method
Binding\LookupResult.vb (1)
517Case SymbolKind.Method
Binding\SyntheticBoundTrees\SynthesizedPropertyAccessorBase.vb (1)
145If member.Kind = SymbolKind.Method Then
Compilation\ClsComplianceChecker.vb (8)
290Debug.Assert(symbol.Kind = SymbolKind.NamedType OrElse symbol.Kind = SymbolKind.Field OrElse symbol.Kind = SymbolKind.Property OrElse symbol.Kind = SymbolKind.Event OrElse symbol.Kind = SymbolKind.Method) 422Case SymbolKind.Method 477If IsAccessibleIfContainerIsAccessible(member) AndAlso (Not member.IsOverrides OrElse Not (member.Kind = SymbolKind.Method OrElse member.Kind = SymbolKind.Property)) Then 486If IsAccessibleOutsideAssembly(member) AndAlso IsTrue(GetDeclaredOrInheritedCompliance(member)) AndAlso (Not member.IsOverrides OrElse Not (member.Kind = SymbolKind.Method OrElse member.Kind = SymbolKind.Property)) Then 520Dim isMethodOrProperty As Boolean = symbol.Kind = SymbolKind.Method OrElse symbol.Kind = SymbolKind.Property 666ElseIf symbol.Kind = SymbolKind.Method Then 922Case SymbolKind.Method 944Case SymbolKind.Method
Compilation\DocumentationComments\DocumentationCommentCompiler.Common.vb (2)
723Case SymbolKind.Method 782SymbolKind.Method
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (1)
106Case SymbolKind.Method
Compilation\DocumentationComments\DocumentationCommentCompiler.vb (1)
119symbol.Kind = SymbolKind.Method OrElse
Compilation\MethodCompiler.vb (5)
137If symbol.Kind = SymbolKind.Method AndAlso symbol.IsImplicitlyDeclared AndAlso 397If symbol.Kind = SymbolKind.Method Then 659Case SymbolKind.Method 760If member.IsShared OrElse Not member.IsFromCompilation(_compilation) OrElse member.Kind <> SymbolKind.Method Then 864If member.Kind = SymbolKind.Method Then
Compilation\SemanticModel.vb (4)
1213Case SymbolKind.Method, SymbolKind.Field, SymbolKind.Property 1867(result.Kind = SymbolKind.Method AndAlso DirectCast(result, MethodSymbol).MethodKind = MethodKind.Constructor) Then 2855If symbol.Kind = SymbolKind.Method Then 3545Case SymbolKind.Method
Compilation\SyntaxTreeSemanticModel.vb (2)
716Case SymbolKind.Method 1063Case SymbolKind.Method
Compilation\VisualBasicCompilation.vb (1)
1567If (Not lookupResult.IsGoodOrAmbiguous) OrElse lookupResult.Symbols(0).Kind <> SymbolKind.Method Then
DocumentationComments\DocumentationCommentIDVisitor.PartVisitor.vb (1)
120ElseIf containingSymbol.Kind = SymbolKind.Method Then
Emit\EditAndContinue\PEDeltaAssemblyBuilder.vb (1)
204Debug.Assert(members.Length = 1 AndAlso members(0).Kind = SymbolKind.Method)
Emit\EditAndContinue\VisualBasicSymbolMatcher.vb (1)
334Case SymbolKind.Method
Emit\NamedTypeSymbolAdapter.vb (3)
282If member.Kind = SymbolKind.Method Then 476If member.Kind = SymbolKind.Method Then 980If member.Kind = SymbolKind.Method Then
Emit\NoPia\EmbeddedEvent.vb (1)
113If m.Kind = SymbolKind.Method Then
Emit\NoPia\EmbeddedType.vb (1)
238Case SymbolKind.Method
Emit\PEModuleBuilder.vb (1)
236Case SymbolKind.Method
Emit\SymbolTranslator.vb (1)
461Return container.Kind = SymbolKind.Method AndAlso (DirectCast(container, MethodSymbol)).IsGenericMethod OrElse
Emit\TypeParameterSymbolAdapter.vb (4)
63If AdaptedTypeParameterSymbol.ContainingSymbol.Kind = SymbolKind.Method Then 74If AdaptedTypeParameterSymbol.ContainingSymbol.Kind = SymbolKind.Method Then 150If kind = SymbolKind.Method Then 160If kind = SymbolKind.Method Then
Lowering\AsyncRewriter\AsyncRewriter.vb (1)
554If result.Symbols(0).Kind = SymbolKind.Method Then
Lowering\Instrumentation\CodeCoverageInstrumenter.vb (1)
146If nonLambda?.Kind = SymbolKind.Method Then
Lowering\LambdaRewriter\LambdaRewriter.Analysis.vb (1)
256local.ContainingSymbol.Kind <> SymbolKind.Method,
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.vb (1)
201(fromMember.Kind = SymbolKind.Field OrElse (fromMember.Kind = SymbolKind.Method AndAlso
Semantics\AccessCheck.vb (1)
121Case SymbolKind.Method, SymbolKind.Property, SymbolKind.Event, SymbolKind.Field
Semantics\Operators.vb (1)
2918If member.Kind = SymbolKind.Method Then
Semantics\OverloadResolution.vb (2)
2893If candidateSymbol.Kind = SymbolKind.Method Then 4822If paramForGenericityCheck.ContainingSymbol.Kind = SymbolKind.Method Then
SymbolDisplay\SymbolDisplayVisitor.Members.vb (1)
700symbol.Kind <> SymbolKind.Method OrElse
Symbols\Attributes\AttributeData.vb (4)
214Debug.Assert(targetSymbol.Kind = SymbolKind.Assembly OrElse targetSymbol.Kind = SymbolKind.NamedType OrElse targetSymbol.Kind = SymbolKind.Method) 284Debug.Assert(targetSymbol.Kind = SymbolKind.Assembly OrElse targetSymbol.Kind = SymbolKind.NamedType OrElse targetSymbol.Kind = SymbolKind.Method) 333If targetSymbol.Kind = SymbolKind.NamedType OrElse targetSymbol.Kind = SymbolKind.Method Then 574Case SymbolKind.Method
Symbols\EmbeddedSymbols\EmbeddedSymbolManager.SymbolsCollection.vb (4)
223Case SymbolKind.Method 286Case SymbolKind.Method 309symbol.Kind = SymbolKind.Method OrElse 342Case SymbolKind.Method
Symbols\MemberSignatureComparer.vb (3)
55Case SymbolKind.Method 72Case SymbolKind.Method 87Case SymbolKind.Method, SymbolKind.Property, SymbolKind.Event
Symbols\Metadata\PE\PEMethodSymbol.vb (1)
535If m.Kind <> SymbolKind.Method Then
Symbols\Metadata\PE\PENamedTypeSymbol.vb (5)
527Dim index = GetIndexOfFirstMember(members, SymbolKind.Method) 532If member.Kind <> SymbolKind.Method Then 548If index >= members.Length OrElse members(index).Kind <> SymbolKind.Method Then 569If index = members.Length OrElse members(index).Kind <> SymbolKind.Method Then 630Case SymbolKind.Method
Symbols\Metadata\PE\PETypeParameterSymbol.vb (4)
101Return If(Me.ContainingSymbol.Kind = SymbolKind.Method, 185If _containingSymbol.Kind = SymbolKind.Method Then 316Dim typeParameters = If(_containingSymbol.Kind = SymbolKind.Method, 329Dim inherited = (_containingSymbol.Kind = SymbolKind.Method) AndAlso DirectCast(_containingSymbol, MethodSymbol).IsOverrides
Symbols\MethodSymbol.vb (1)
460Return SymbolKind.Method
Symbols\NamedTypeSymbol.vb (3)
306If member.Kind = SymbolKind.Method Then 418If candidate.Kind = SymbolKind.Method Then 426If candidate.Kind = SymbolKind.Method Then
Symbols\NamedTypeSymbolExtensions.vb (1)
36If kind = SymbolKind.Method Then
Symbols\NamespaceOrTypeSymbol.vb (1)
203If member.Kind = SymbolKind.Method Then
Symbols\NamespaceSymbol.vb (2)
498If member.Kind = SymbolKind.Method Then 519If member.Kind = SymbolKind.Method Then
Symbols\PropertySymbol.vb (1)
215((fromMember.Kind = SymbolKind.Method AndAlso DirectCast(fromMember, MethodSymbol).IsAnyConstructor) OrElse
Symbols\Retargeting\RetargetingSymbolTranslator.vb (4)
71Dim containingType = If(container.Kind = SymbolKind.Method, 794If underlyingSymbol.Kind = SymbolKind.Method Then 800Debug.Assert(underlyingSymbol.Kind = SymbolKind.Method) 987If retargetedMember.Kind = SymbolKind.Method Then
Symbols\Source\ImplementsHelper.vb (3)
26Case SymbolKind.Method 101If implementingSym.Kind = SymbolKind.Method Then 428Case SymbolKind.Method
Symbols\Source\LambdaSymbol.vb (2)
135Case SymbolKind.Method 228Case SymbolKind.Field, SymbolKind.Property, SymbolKind.Method
Symbols\Source\LocalSymbol.vb (2)
105Debug.Assert(container.Kind = SymbolKind.Method OrElse 155Debug.Assert((Me.IsFunctionValue AndAlso _container.Kind = SymbolKind.Method AndAlso DirectCast(_container, MethodSymbol).MethodKind = MethodKind.LambdaMethod) OrElse type.Equals(ComputeType()))
Symbols\Source\OverloadingHelper.vb (1)
29Debug.Assert(kind = SymbolKind.Method OrElse kind = SymbolKind.Property)
Symbols\Source\OverrideHidingHelper.vb (7)
149Case SymbolKind.Method 283Case SymbolKind.Method 284If hidingMember.IsOverloads AndAlso hiddenMember.Kind = SymbolKind.Method Then 358(member.Kind = SymbolKind.Method AndAlso DirectCast(member, MethodSymbol).IsUserDefinedOperator() <> DirectCast(hiddenMember, MethodSymbol).IsUserDefinedOperator()) OrElse 433(hidingMember.Kind = SymbolKind.Property OrElse hidingMember.Kind = SymbolKind.Method) AndAlso 492If sym.Kind <> SymbolKind.Method Then 513Case SymbolKind.Method
Symbols\Source\SourceDeclareMethodSymbol.vb (1)
59OverloadingHelper.SetMetadataNameForAllOverloads(_name, SymbolKind.Method, m_containingType)
Symbols\Source\SourceMemberContainerTypeSymbol.vb (12)
443Case SymbolKind.Method 1151haveExtensionMethods = (sym.Kind = SymbolKind.Method AndAlso DirectCast(sym, MethodSymbol).IsExtensionMethod) 2406Case SymbolKind.Method 2442If (symbol.Kind = SymbolKind.Method AndAlso checkMethods) OrElse (symbol.IsPropertyAndNotWithEvents AndAlso checkProperties) Then 2465Case SymbolKind.Method 2776Debug.Assert(symbols.Where(Function(sym) sym.Kind = SymbolKind.Method AndAlso 3100ElseIf ((firstSymbol.Kind <> SymbolKind.Method) AndAlso (Not firstSymbol.IsPropertyAndNotWithEvents)) OrElse 3521For Each memberKind In {SymbolKind.Method, SymbolKind.Property} 3530If canDeclareOperators AndAlso memberKind = SymbolKind.Method AndAlso 3588If canDeclareOperators AndAlso memberKind = SymbolKind.Method AndAlso 3610If member.Kind <> SymbolKind.Method Then 3738If nextMember.Kind <> SymbolKind.Method Then
Symbols\Source\SourceMemberMethodSymbol.vb (1)
108OverloadingHelper.SetMetadataNameForAllOverloads(_name, SymbolKind.Method, m_containingType)
Symbols\Source\SourceMethodSymbol.vb (1)
1136SymbolKind.Method, GetMethodLocationFromSyntax(syntax), tree), MethodSymbol)
Symbols\Source\SourceNamedTypeSymbol.vb (1)
2609If member.Kind = SymbolKind.Method Then
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (6)
101If m.Kind = SymbolKind.Method Then 380Case SymbolKind.Method 450Case SymbolKind.Method 545Case SymbolKind.Method 1326If attributeSource.Kind = SymbolKind.Method Then 1367If attributeSource.Kind = SymbolKind.Method Then
Symbols\Source\SourceParameterSymbol.vb (4)
186If containingSymbol.Kind = SymbolKind.Method AndAlso DirectCast(containingSymbol, MethodSymbol).MethodKind = MethodKind.DeclareMethod Then 206Case SymbolKind.Method 450If container.Kind = SymbolKind.Method Then 495ContainingSymbol.Kind = SymbolKind.Method AndAlso
Symbols\SubstitutedNamedType.vb (2)
365Case SymbolKind.Method 448Case SymbolKind.Method
Symbols\SubstitutedTypeParameterSymbol.vb (1)
89Return If(_containingSymbol.Kind = SymbolKind.Method,
Symbols\Symbol.vb (3)
617Case SymbolKind.Method 657If Me.Kind = SymbolKind.Method Then 1000Case SymbolKind.Method
Symbols\Symbol_Attributes.vb (4)
70Case SymbolKind.Method 519Debug.Assert(Me.Kind = SymbolKind.Method OrElse Me.Kind = SymbolKind.Property) 545If Me.Kind = SymbolKind.Method Then 587Case SymbolKind.Assembly, SymbolKind.NamedType, SymbolKind.Method
Symbols\SymbolExtensions.vb (14)
56Case SymbolKind.Method 138If kind = SymbolKind.Method Then 165Case SymbolKind.Method 196Case SymbolKind.Field, SymbolKind.Property, SymbolKind.Method, SymbolKind.Event 209Case SymbolKind.Method, SymbolKind.Property, SymbolKind.Event 243Return symbol.Kind = SymbolKind.Method AndAlso IsAccessor(DirectCast(symbol, MethodSymbol)) 280Return this.Kind = SymbolKind.Method AndAlso DirectCast(this, MethodSymbol).IsReducedExtensionMethod 289Case SymbolKind.Method 306Case SymbolKind.Method 322Case SymbolKind.Method 341Case SymbolKind.Method 376Return symbol.Kind = SymbolKind.Method AndAlso DirectCast(symbol, MethodSymbol).IsUserDefinedOperator() 456While If(member?.Kind = SymbolKind.Method, False) AndAlso DirectCast(member, MethodSymbol).MethodKind = MethodKind.AnonymousFunction 466Case SymbolKind.Method
Symbols\Tuples\TupleTypeSymbol.vb (2)
709Case SymbolKind.Method 909Case SymbolKind.Method
Symbols\TypeSubstitution.vb (5)
563(targetGenericDefinition.Kind = SymbolKind.Method AndAlso 566Debug.Assert((targetGenericDefinition.Kind = SymbolKind.Method AndAlso 596If memberDefinition.Kind = SymbolKind.Method Then 758If targetGenericDefinition.Kind = SymbolKind.Method Then 814If targetGenericDefinition.Kind = SymbolKind.Method Then
Symbols\TypeSymbol.vb (1)
686Case SymbolKind.Method
Symbols\WellKnownMembers.vb (5)
434targetSymbolKind = SymbolKind.Method 439targetSymbolKind = SymbolKind.Method 442targetSymbolKind = SymbolKind.Method 467Case SymbolKind.Method 656If typeParam.ContainingSymbol.Kind <> SymbolKind.Method Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb (1)
454SymbolKind.Method,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\InvocationExpressionSyntaxExtensions.vb (1)
50Return symbol IsNot Nothing AndAlso symbol.MatchesKind(SymbolKind.Property, SymbolKind.Method) AndAlso Not symbol.IsAnonymousFunction
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationHelpers.vb (1)
206If symbol.IsKind(SymbolKind.Method) OrElse symbol.IsKind(SymbolKind.Property) OrElse symbol.IsKind(SymbolKind.Event) Then
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (14)
Attributes\AttributeTests_MarshalAs.vb (1)
50Dim methods = typeSym.GetMembers().Where(Function(s) s.Kind = SymbolKind.Method)
Attributes\AttributeTests_Tuples.vb (2)
253Case SymbolKind.Method 268Case SymbolKind.Method
CodeGen\CodeGenAsyncTests.vb (1)
9267Case SymbolKind.Method
CodeGen\CodeGenTuples.vb (1)
15210If members1(i).Kind = SymbolKind.Method Then
CodeGen\CodeGenVBCore.vb (1)
3042Case SymbolKind.Method
Emit\CompilationEmitTests.vb (8)
2578Case SymbolKind.Method 2724.ParentKind = SymbolKind.Method, 2831.ParentKind = SymbolKind.Method, 2956.ParentKind = SymbolKind.Method, 2974.ParentKind = SymbolKind.Method, 3028.ParentKind = SymbolKind.Method, 3046.ParentKind = SymbolKind.Method, 3215.ParentKind = SymbolKind.Method,
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (1)
Symbols\EETypeParameterSymbol.vb (1)
24Debug.Assert(container.Kind = SymbolKind.NamedType OrElse container.Kind = SymbolKind.Method)
Microsoft.CodeAnalysis.VisualBasic.Features (9)
CodeRefactorings\InlineTemporary\VisualBasicInlineTemporaryCodeRefactoringProvider.vb (1)
352(symbol.Kind = SymbolKind.Method OrElse symbol.Kind = SymbolKind.Property) Then
Completion\CompletionProviders\CrefCompletionProvider.vb (1)
241ElseIf symbol.Kind = SymbolKind.Method Then
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (2)
1995Case SymbolKind.Method 2030Case SymbolKind.Method
ExtractMethod\Extensions.vb (1)
140Dim methodSymbols = model.GetSymbolInfo(invocation, cancellationToken).GetAllSymbols().Where(Function(s) s.Kind = SymbolKind.Method).Cast(Of IMethodSymbol)()
GenerateType\VisualBasicGenerateTypeService.vb (2)
337If symbol IsNot Nothing AndAlso symbol.IsKind(SymbolKind.Method) Then 365Return If(memberGroup.ElementAt(0).IsKind(SymbolKind.Method), DirectCast(memberGroup.ElementAt(0), IMethodSymbol), Nothing)
LanguageServices\VisualBasicSymbolDisplayService.SymbolDescriptionBuilder.vb (1)
170If method IsNot Nothing AndAlso method.ContainingSymbol.IsKind(SymbolKind.Method) Then
NavigationBar\VisualBasicNavigationBarItemService.vb (1)
270If symbol.Kind = SymbolKind.Method Then
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (130)
Binding\ImplicitVariableTests.vb (3)
899symbolKind:=SymbolKind.Method) 921symbolKind:=SymbolKind.Method, 935symbolKind:=SymbolKind.Method,
Compilation\MyTemplateTests.vb (1)
297Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind)
Compilation\SemanticModelAPITests.vb (5)
502Assert.Equal(SymbolKind.Method, symbolInfo.Symbol.Kind) 511Assert.Equal(SymbolKind.Method, speculativeSymbolInfo.Symbol.Kind) 1054Assert.Equal(SymbolKind.Method, symbolInfo.Symbol.Kind) 1094Assert.Equal(SymbolKind.Method, symbolInfo.Symbol.Kind) 1918speculatedMemberName, SpeculativeBindingOption.BindAsExpression, SymbolKind.Method, "I.Method2")
DeclaringSyntaxNodeTests.vb (2)
514If memb.Kind = SymbolKind.Method AndAlso (DirectCast(memb, MethodSymbol)).MethodKind = MethodKind.Constructor Then 597If memb.Kind = SymbolKind.Method Then
ExtensionMethods\SemanticModelTests.vb (5)
60Assert.Equal(SymbolKind.Method, method.Kind) 128Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind) 188Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind) 1343Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind) 1392Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind)
FlowAnalysis\FlowTestBase.vb (1)
43Case SymbolKind.Method
Semantics\BinaryOperators.vb (1)
1107If m.Kind = SymbolKind.Method Then
Semantics\GetExtendedSemanticInfoTests.vb (89)
550Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind) 598Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind) 654Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind) 802Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind) 804Assert.Equal(SymbolKind.Method, sortedCandidates(1).Kind) 806Assert.Equal(SymbolKind.Method, sortedCandidates(2).Kind) 861Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind) 863Assert.Equal(SymbolKind.Method, sortedCandidates(1).Kind) 865Assert.Equal(SymbolKind.Method, sortedCandidates(2).Kind) 914Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind) 1008Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind) 1059Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind) 1110Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind) 1157Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind) 1203Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind) 1253Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind) 1525Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind) 1540Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind) 1555Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind) 1629Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind) 1673Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind) 1675Assert.Equal(SymbolKind.Method, sortedCandidates(1).Kind) 1716Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind) 1757Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind) 1934Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind) 2119Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind) 2255Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind) 2478Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind) 2642Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind) 2644Assert.Equal(SymbolKind.Method, sortedCandidates(1).Kind) 2646Assert.Equal(SymbolKind.Method, sortedCandidates(2).Kind) 2648Assert.Equal(SymbolKind.Method, sortedCandidates(3).Kind) 2650Assert.Equal(SymbolKind.Method, sortedCandidates(4).Kind) 2652Assert.Equal(SymbolKind.Method, sortedCandidates(5).Kind) 2654Assert.Equal(SymbolKind.Method, sortedCandidates(6).Kind) 2656Assert.Equal(SymbolKind.Method, sortedCandidates(7).Kind) 2658Assert.Equal(SymbolKind.Method, sortedCandidates(8).Kind) 2660Assert.Equal(SymbolKind.Method, sortedCandidates(9).Kind) 2662Assert.Equal(SymbolKind.Method, sortedCandidates(10).Kind) 2664Assert.Equal(SymbolKind.Method, sortedCandidates(11).Kind) 2789Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind) 3722Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind) 3803Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind) 3805Assert.Equal(SymbolKind.Method, sortedCandidates(1).Kind) 3807Assert.Equal(SymbolKind.Method, sortedCandidates(2).Kind) 3841Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind) 3843Assert.Equal(SymbolKind.Method, sortedCandidates(1).Kind) 3845Assert.Equal(SymbolKind.Method, sortedCandidates(2).Kind) 4131Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind) 4351Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind) 4390Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind) 4426Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind) 4465Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind) 4504Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind) 4540Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind) 4585Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind) 4587Assert.Equal(SymbolKind.Method, sortedCandidates(1).Kind) 4800Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind) 4802Assert.Equal(SymbolKind.Method, sortedCandidates(1).Kind) 4843Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind) 4845Assert.Equal(SymbolKind.Method, sortedCandidates(1).Kind) 6062Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind) 6107Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind) 6149Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind) 7212Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind) 7254Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind) 7287Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind) 7328Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind) 7409Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind) 7576Assert.Equal(SymbolKind.Method, semanticInfo1.Symbol.ContainingSymbol.Kind) 7592Assert.Equal(SymbolKind.Method, semanticInfo2.Symbol.ContainingSymbol.Kind) 8083Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind) 8127Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind) 8167Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind) 8212Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind) 8259Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind) 8304Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind) 8400Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind) 8442Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind) 8709Assert.Equal(SymbolKind.Method, semanticSummary.CandidateSymbols(0).Kind) 9510Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind) 9543Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind) 9578Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind) 9613Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind) 9648Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind) 9780Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind) 9823Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind) 9855Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind) 9889Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind)
Semantics\GetSemanticInfoTests.vb (11)
367Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind) 719Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind) 806Assert.Equal(SymbolKind.Method, symbol.ContainingSymbol.Kind) 843Assert.Equal(SymbolKind.Method, symbol.ContainingSymbol.Kind) 878Assert.Equal(SymbolKind.Method, parameter.ContainingSymbol.Kind) 912Assert.Equal(SymbolKind.Method, symbol.ContainingSymbol.Kind) 1504Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind) 2093Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind) 3328Assert.Equal(SymbolKind.Method, sym.Kind) 3352Assert.Equal(SymbolKind.Method, sym.Kind) 5610Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind)
Semantics\NewOnInterfaceTests.vb (1)
1237Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind)
Semantics\QueryExpressions_SemanticModel.vb (1)
3367Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind)
Semantics\SelectCaseTests.vb (7)
143Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind) 180Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind) 214Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind) 288Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind) 328Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind) 367Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind) 497Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind)
Semantics\SyncLockTests.vb (1)
246Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind)
Semantics\UsingStatementTest.vb (1)
344If (type.Symbol.Kind = SymbolKind.Method) Then
Semantics\WithBlockSemanticModelTests.vb (1)
75Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (20)
DocumentationComments\DocCommentTests.vb (5)
6688SymbolKind.Method), 6702SymbolKind.Method)) 6708SymbolKind.Method), 6954Assert.Equal(SymbolKind.Method, method.Kind) 7404container:=DirectCast(symInteger(0), NamedTypeSymbol)), SymbolKind.Method),
SymbolsTests\Metadata\MetadataMemberTests.vb (4)
167Assert.Equal(SymbolKind.Method, ctor.Kind) 212Assert.Equal(SymbolKind.Method, member1.Kind) 328Assert.Equal(SymbolKind.Method, member1.Kind) 727Dim mems = tsym.GetMembers().Where(Function(s) s.Kind = SymbolKind.Method)
SymbolsTests\Metadata\PE\LoadingMethods.vb (1)
97Assert.Equal(SymbolKind.Method, sameName(0).Kind)
SymbolsTests\Source\ComClassTests.vb (1)
62Case SymbolKind.Method
SymbolsTests\Source\GroupClassTests.vb (1)
3358Assert.Equal(SymbolKind.Method, symbolInfo.Symbol.Kind)
SymbolsTests\Source\OverridesTests.vb (4)
2482Where memb.Kind = SymbolKind.Method 2485Where memb.Kind = SymbolKind.Method 2488Where memb.Kind = SymbolKind.Method 2491Where memb.Kind = SymbolKind.Method
SymbolsTests\Source\TypeTests.vb (4)
565Dim ctor = enumMembers.Where(Function(s) s.Kind = SymbolKind.Method) 567Assert.Equal(SymbolKind.Method, ctor(0).Kind) 744Assert.Equal(SymbolKind.Method, mem2.Kind) 754Assert.Equal(SymbolKind.Method, mem3.Kind)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (17)
CaseCorrection\VisualBasicCaseCorrectionService.Rewriter.vb (1)
169(symbol.IsKind(SymbolKind.Method) AndAlso DirectCast(symbol, IMethodSymbol).MethodKind = MethodKind.Constructor)
Classification\SyntaxClassification\NameSyntaxClassifier.vb (1)
109Case SymbolKind.Method
Recommendations\VisualBasicRecommendationServiceRunner.vb (1)
343symbols = symbols.WhereAsArray(Function(s) s.Kind <> SymbolKind.Method OrElse DirectCast(s, IMethodSymbol).MethodKind <> MethodKind.UserDefinedOperator)
Rename\VisualBasicRenameRewriterLanguageService.vb (4)
715renamedSymbol.ContainingSymbol.Kind = SymbolKind.Method Then 756ElseIf renamedSymbol.Kind = SymbolKind.Method Then 807(renameSymbol.Kind = SymbolKind.Method AndAlso 941If symbol.Kind = SymbolKind.Method Then
Simplification\Reducers\VisualBasicEscapingReducer.vb (1)
103If symbol IsNot Nothing AndAlso symbol.Kind = SymbolKind.Method AndAlso Not DirectCast(symbol, IMethodSymbol).IsConstructor Then
Simplification\Reducers\VisualBasicExtensionMethodReducer.vb (2)
40If (Not targetSymbol.Symbol Is Nothing) AndAlso targetSymbol.Symbol.Kind = SymbolKind.Method Then 63If newSymbol.Kind = SymbolKind.Method And oldSymbol.Equals(DirectCast(newSymbol, IMethodSymbol).GetConstructedReducedFrom()) Then
Simplification\Simplifiers\NameSimplifier.vb (2)
42If symbol.Kind = SymbolKind.Method AndAlso symbol.IsConstructor() Then 46If symbol.Kind = SymbolKind.Method AndAlso name.Kind = SyntaxKind.GenericName Then
Simplification\VisualBasicSimplificationService.Expander.vb (2)
644If symbol.Kind = SymbolKind.Method OrElse 685If newNode.Kind = SyntaxKind.IdentifierName AndAlso symbol.Kind = SymbolKind.Method Then
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb (1)
454SymbolKind.Method,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\InvocationExpressionSyntaxExtensions.vb (1)
50Return symbol IsNot Nothing AndAlso symbol.MatchesKind(SymbolKind.Property, SymbolKind.Method) AndAlso Not symbol.IsAnonymousFunction
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationHelpers.vb (1)
206If symbol.IsKind(SymbolKind.Method) OrElse symbol.IsKind(SymbolKind.Property) OrElse symbol.IsKind(SymbolKind.Event) Then
Microsoft.CodeAnalysis.Workspaces (38)
Editing\SyntaxGenerator.cs (3)
528var invoke = symbol.Type.GetMembers("Invoke").FirstOrDefault(m => m.Kind == SymbolKind.Method) as IMethodSymbol; 733case SymbolKind.Method: 830case SymbolKind.Method:
FindSymbols\Declarations\DeclarationFinder.cs (1)
120return symbol.Kind is SymbolKind.Method or
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (1)
712case SymbolKind.Method:
FindSymbols\FindReferences\Finders\AbstractReferenceFinder_GlobalSuppressions.cs (1)
36SymbolKind.Method => true,
FindSymbols\ReferenceLocationExtensions.cs (1)
87if (current.Kind == SymbolKind.Method)
FindSymbols\SymbolFinder.cs (1)
136case SymbolKind.Method:
FindSymbols\SymbolFinder_Callers.cs (1)
82SymbolKind.Method or
Recommendations\AbstractRecommendationService.cs (1)
86case SymbolKind.Method:
Rename\ConflictEngine\ConflictResolver.cs (4)
253.Where(s => !s.MatchesKind(SymbolKind.Method, SymbolKind.Property) || 254!renamedSymbol.MatchesKind(SymbolKind.Method, SymbolKind.Property)); 259.Where(s => s.Kind != SymbolKind.Method || renamedSymbol.Kind != SymbolKind.Method);
Rename\RenameUtilities.cs (3)
229if (symbol.Kind == SymbolKind.Method && 338if (symbol.ContainingSymbol.Kind == SymbolKind.Method) 364if (symbol.Kind == SymbolKind.Method)
Shared\Extensions\ISymbolExtensions.cs (1)
279case SymbolKind.Method:
Shared\Extensions\ITypeSymbolExtensions.cs (1)
50not SymbolKind.Method and
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (3)
147if (symbol.Kind is not SymbolKind.Method and not SymbolKind.Property and not SymbolKind.Event) 185if (symbol.Kind == SymbolKind.Method) 341SymbolKind.Method => ((IMethodSymbol)symbol).Arity,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions_Accessibility.cs (1)
140case SymbolKind.Method:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (1)
18[SymbolKind.Method, SymbolKind.Property, SymbolKind.Event];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (3)
171case SymbolKind.Method: 432CodeAnalysis.SymbolKind.Method => new(CodeAnalysis.MethodKind.Ordinary), 503if (Modifier.IsAsync && kind == SymbolKind.Method && ((IMethodSymbol)symbol).IsAsync)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SimplifierOptions.cs (1)
48SymbolKind.Method => QualifyMethodAccess,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (4)
758&& symbol.IsKind(SymbolKind.Method) 878return symbol.Kind == SymbolKind.Method && 1059return receiverSymbol.IsKind(SymbolKind.Method) || 1066if (originalSymbol.IsKind(SymbolKind.Method) || originalSymbol.IsIndexer())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SignatureComparer.cs (2)
41SymbolKind.Method => HaveSameSignature((IMethodSymbol)symbol1, (IMethodSymbol)symbol2, caseSensitive), 150case SymbolKind.Method:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
123SymbolKind.Method => MethodsAreEquivalent((IMethodSymbol)x, (IMethodSymbol)y, equivalentTypesWithDifferingAssemblies),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
65SymbolKind.Method => CombineHashCodes((IMethodSymbol)x, currentHash),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractMethodSymbol.cs (1)
79public override SymbolKind Kind => SymbolKind.Method;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
123return symbol.Kind == SymbolKind.Method &&
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
FindReferencesTests.cs (3)
548var constructorResult = result.Single(r => r.Definition.Kind == SymbolKind.Method); 581var constructorResult = result.Single(r => r.Definition.Kind == SymbolKind.Method); 623var constructorResult = result.Single(r => r.Definition.Kind == SymbolKind.Method);
Microsoft.DotNet.CodeAnalysis (2)
Analyzers\MembersMustExistAnalyzer.cs (1)
62context.RegisterSymbolAction(AnalyzeSymbol, SymbolKind.Method, SymbolKind.Event);
Analyzers\PinvokeAnalyzer.cs (1)
32obj.RegisterSymbolAction(AnalyzeMethod, SymbolKind.Method);
Microsoft.Extensions.Options.SourceGeneration (1)
Parser.cs (1)
201.Where(m => m.Kind == SymbolKind.Method)
Microsoft.Gen.Logging (2)
Parsing\Parser.TagProvider.cs (1)
88var methodSymbols = providerType.GetMembers(providerMethodName).Where(m => m.Kind == SymbolKind.Method).Cast<IMethodSymbol>();
Parsing\TypeSymbolExtensions.cs (1)
82if (current.GetMembers("ToString").Where(m => m.Kind == SymbolKind.Method && m.DeclaredAccessibility == Accessibility.Public).Cast<IMethodSymbol>().Any(m => m.Parameters.Length == 0))
Microsoft.Interop.LibraryImportGenerator (2)
Analyzers\ConvertToLibraryImportAnalyzer.cs (1)
63context.RegisterSymbolAction(symbolContext => AnalyzeSymbol(symbolContext, libraryImportAttrType, env), SymbolKind.Method);
Analyzers\ShapeBreakingDiagnosticSuppressor.cs (1)
38if (diagnosedSymbol.Kind != SymbolKind.Method)
Microsoft.ML.CodeAnalyzer.Tests (1)
Code\RelaxTestNamingTest.cs (1)
116context.RegisterSymbolAction(AnalyzeSymbol, SymbolKind.Method);
Microsoft.ML.InternalCodeAnalyzer (1)
BestFriendOnPublicDeclarationsAnalyzer.cs (1)
53context.RegisterSymbolAction(c => AnalyzeCore(c, attribute), SymbolKind.NamedType, SymbolKind.Method, SymbolKind.Field, SymbolKind.Property);
Microsoft.VisualStudio.LanguageServices (25)
CallHierarchy\CallHierarchyProvider.cs (2)
58if (symbol.Kind is SymbolKind.Method or 107SymbolKind.Method)
Implementation\ContainedLanguageRefactorNotifyService.cs (1)
83SymbolKind.Method or
Implementation\VsRefactorNotifyService.cs (1)
161if (symbol.Kind == SymbolKind.Method)
Library\ClassView\AbstractSyncClassViewCommandHandler.cs (1)
111SymbolKind.Method or
Library\ObjectBrowser\AbstractDescriptionBuilder.cs (2)
210case SymbolKind.Method: 447|| symbol.Kind is SymbolKind.Method or SymbolKind.Property;
Library\ObjectBrowser\Lists\MemberListItem.cs (1)
40case SymbolKind.Method:
Library\VsNavInfo\NavInfoFactory.cs (1)
51SymbolKind.Method or
Progression\GraphBuilder.cs (2)
275case SymbolKind.Method: 384case SymbolKind.Method:
Progression\GraphNodeCreation.cs (1)
44case SymbolKind.Method:
Progression\GraphNodeIdCreation.cs (2)
462(symbol.ContainingSymbol.Kind != SymbolKind.Method && symbol.ContainingSymbol.Kind != SymbolKind.Property)) 490(symbol.ContainingSymbol.Kind != SymbolKind.Method && symbol.ContainingSymbol.Kind != SymbolKind.Property))
Progression\GraphProvider.cs (6)
216if (nodes.Any(n => IsAnySymbolKind(n, SymbolKind.Event, SymbolKind.Method, SymbolKind.Property, SymbolKind.Field))) 226if (nodes.Any(n => IsAnySymbolKind(n, SymbolKind.Event, SymbolKind.Method, SymbolKind.Property) && 256if (nodes.Any(n => IsAnySymbolKind(n, SymbolKind.Event, SymbolKind.Method, SymbolKind.Property) && 283if (nodes.Any(n => IsAnySymbolKind(n, SymbolKind.Event, SymbolKind.Method, SymbolKind.Property) && 294if (nodes.Any(n => IsAnySymbolKind(n, SymbolKind.Event, SymbolKind.Method, SymbolKind.Property) && 306if (nodes.Any(n => IsAnySymbolKind(n, SymbolKind.Event, SymbolKind.Method, SymbolKind.Property) &&
Progression\SymbolContainment.cs (1)
57case SymbolKind.Method:
Venus\ContainedLanguageCodeSupport.cs (4)
372if (member.Kind != SymbolKind.Method) 404return member.Kind == SymbolKind.Method; 448if (member.Kind == SymbolKind.Method) 465var members = type.GetMembers(memberName).Where(m => m.Kind == SymbolKind.Method);
Microsoft.VisualStudio.LanguageServices.CSharp (3)
CodeModel\CSharpCodeModelService.cs (2)
2990case SymbolKind.Method: 3604symbol == null || symbol.Kind != SymbolKind.Method)
CodeModel\CSharpCodeModelService_Prototype.cs (1)
32case SymbolKind.Method:
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (6)
GlyphExtensionsTests.cs (6)
40SymbolKind.Method, 44SymbolKind.Method, 153SymbolKind.Method, 162SymbolKind.Method, 177SymbolKind kind = SymbolKind.Method, 224if (kind == SymbolKind.Method)
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
ExtractInterface\ExtractInterfaceViewModelTests.vb (1)
252Assert.Equal("M(string?, IEnumerable<string?>)", viewModel.MemberContainers.Single(Function(c) c.Symbol.IsKind(SymbolKind.Method)).SymbolName)
Microsoft.VisualStudio.LanguageServices.VisualBasic (4)
CodeModel\VisualBasicCodeModelService.vb (1)
3616Case SymbolKind.Method,
CodeModel\VisualBasicCodeModelService_Prototype.vb (2)
40Case SymbolKind.Method 94If symbol.Kind = SymbolKind.Method Then
Venus\ContainedLanguageStaticEventBinding.vb (1)
29Where(Function(m) m.CanBeReferencedByName AndAlso m.Kind = SymbolKind.Method).
SemanticSearch.BuildTask (1)
GenerateFilteredReferenceAssembliesTask.cs (1)
267SymbolKind.Method => SymbolKindFlags.Method,
System.Private.CoreLib.Generators (1)
IntrinsicsInSystemPrivateCoreLibAnalyzer.cs (1)
186}, SymbolKind.Method);