331 references to Ordinary
Microsoft.AspNetCore.App.Analyzers (1)
src\Shared\Roslyn\MvcFacts.cs (1)
62if (method.MethodKind != MethodKind.Ordinary)
Microsoft.AspNetCore.Mvc.Analyzers (3)
AttributesShouldNotBeAppliedToPageModelAnalyzer.cs (1)
69return method.MethodKind == MethodKind.Ordinary &&
src\Shared\Roslyn\MvcFacts.cs (1)
62if (method.MethodKind != MethodKind.Ordinary)
TopLevelParameterNameAnalyzer.cs (1)
41if (method.MethodKind != MethodKind.Ordinary)
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
src\Shared\Roslyn\MvcFacts.cs (1)
62if (method.MethodKind != MethodKind.Ordinary)
Microsoft.CodeAnalysis (1)
Symbols\ISymbolExtensions.cs (1)
184MethodKind: MethodKind.Ordinary,
Microsoft.CodeAnalysis.CodeStyle (14)
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (2)
705/// 4. If method, then it is a constructor OR a method with <see cref="MethodKind.Ordinary"/>, 759case MethodKind.Ordinary:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (2)
427method is { MethodKind: MethodKind.Ordinary, CanBeReferencedByName: true }) 637IMethodSymbol { MethodKind: MethodKind.Ordinary, CanBeReferencedByName: true } => true,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (3)
138if (methodSymbol.MethodKind is MethodKind.Ordinary or 238=> symbol is IMethodSymbol { MethodKind: MethodKind.Ordinary }; 241=> symbol is IMethodSymbol { MethodKind: MethodKind.Ordinary or MethodKind.LocalFunction };
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (2)
130private static readonly SymbolKindOrTypeKind _method = new(MethodKind.Ordinary); 365case MethodKind.Ordinary:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (1)
48return method.MethodKind is MethodKind.Ordinary or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
75new SymbolKindOrTypeKind(MethodKind.Ordinary), 432CodeAnalysis.SymbolKind.Method => new(CodeAnalysis.MethodKind.Ordinary),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (2)
255if ((kind1 == MethodKind.Ordinary && kind2.IsPropertyAccessor()) || 256(kind1.IsPropertyAccessor() && kind2 == MethodKind.Ordinary))
Microsoft.CodeAnalysis.CodeStyle.Fixes (12)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateDeconstructMethodService.State.cs (1)
54MethodKind = MethodKind.Ordinary;
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateMethodService.State.cs (2)
86MethodKind = MethodKind.Ordinary; 125MethodKind = MethodKind.Ordinary;
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator.cs (2)
368return method1.MethodKind == MethodKind.Ordinary && 369method2.MethodKind == MethodKind.Ordinary &&
src\Analyzers\Core\CodeFixes\Naming\FallbackNamingRules.cs (3)
61var kinds = ImmutableArray.Create(new SymbolKindOrTypeKind(MethodKind.Ordinary)); 80var kinds = ImmutableArray.Create(new SymbolKindOrTypeKind(MethodKind.Ordinary)); 90var kinds = ImmutableArray.Create(new SymbolKindOrTypeKind(MethodKind.Ordinary));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (2)
165MethodKind methodKind = MethodKind.Ordinary, 186MethodKind methodKind = MethodKind.Ordinary,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractMethodSymbol.cs (1)
77public virtual MethodKind MethodKind => MethodKind.Ordinary;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationMethodSymbol.cs (1)
40MethodKind methodKind = MethodKind.Ordinary,
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (3)
src\Features\DiagnosticsTestUtilities\NamingStyles\NamingStylesTestOptionSets.cs (3)
297ImmutableArray.Create(new SymbolSpecification.SymbolKindOrTypeKind(MethodKind.Ordinary)), 328ImmutableArray.Create(new SymbolSpecification.SymbolKindOrTypeKind(MethodKind.Ordinary)), 766new SymbolSpecification.SymbolKindOrTypeKind(MethodKind.Ordinary),
Microsoft.CodeAnalysis.CSharp (59)
Binder\Binder.ValueChecks.cs (2)
5496MethodKind.Ordinary, 5536MethodKind.Ordinary,
Binder\LockBinder.cs (1)
122MethodKind: MethodKind.Ordinary,
FlowAnalysis\NullableWalker.cs (1)
6313|| method.MethodKind != MethodKind.Ordinary
Lowering\Instrumentation\ModuleCancellationInstrumenter.cs (1)
156if (method.MethodKind is not (MethodKind.Ordinary or MethodKind.Constructor))
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (1)
72get { return MethodKind.Ordinary; }
Lowering\LocalRewriter\DelegateCacheRewriter.cs (1)
161Debug.Assert(targetMethod.MethodKind == MethodKind.Ordinary);
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
182if (method.MethodKind is not MethodKind.Ordinary)
Lowering\LocalRewriter\LocalRewriter_Range.cs (1)
177case MethodKind.Ordinary:
Lowering\SynthesizedMethodBaseSymbol.cs (1)
41methodKind: MethodKind.Ordinary,
SymbolDisplay\SymbolDisplayVisitor.Members.cs (3)
415case MethodKind.Ordinary: 437goto case MethodKind.Ordinary; 452goto case MethodKind.Ordinary;
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.EqualsMethodSymbol.cs (1)
30get { return MethodKind.Ordinary; }
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.GetHashCodeMethodSymbol.cs (1)
34get { return MethodKind.Ordinary; }
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.ToStringMethodSymbol.cs (1)
34get { return MethodKind.Ordinary; }
Symbols\Compilation_WellKnownMembers.cs (2)
254MethodKind targetMethodKind = MethodKind.Ordinary; 311methodKind = MethodKind.Ordinary;
Symbols\ErrorMethodSymbol.cs (1)
209return MethodKind.Ordinary;
Symbols\Metadata\PE\PEMethodSymbol.cs (9)
814_packedFlags.MethodKind == MethodKind.Ordinary || 975if (this.MethodKind == MethodKind.Ordinary && IsValidExtensionMethodSignature() 1003: this.MethodKind == MethodKind.Ordinary 1201return MethodKind.Ordinary; 1229return IsValidUserDefinedOperatorSignature(2) ? MethodKind.UserDefinedOperator : MethodKind.Ordinary; 1241return IsValidUserDefinedOperatorSignature(1) ? MethodKind.UserDefinedOperator : MethodKind.Ordinary; 1245return IsValidUserDefinedOperatorSignature(1) ? MethodKind.Conversion : MethodKind.Ordinary; 1255return MethodKind.Ordinary; 1287return MethodKind.Ordinary;
Symbols\MethodSymbol.cs (3)
617case MethodKind.Ordinary: 1040if (!IsStatic || IsAbstract || IsVirtual || MethodKind is not (MethodKind.Ordinary or MethodKind.LocalFunction)) 1200MethodKind is MethodKind.Ordinary
Symbols\MethodSymbolExtensions.cs (1)
221method.MethodKind is (MethodKind.Ordinary or MethodKind.ExplicitInterfaceImplementation or MethodKind.PropertyGet or MethodKind.PropertySet) &&
Symbols\NativeIntegerTypeSymbol.cs (1)
96case MethodKind.Ordinary:
Symbols\PublicModel\MethodSymbol.cs (2)
59case MethodKind.Ordinary: 60return MethodKind.Ordinary;
Symbols\Source\SourceDelegateMethodSymbol.cs (2)
355: base((SourceNamedTypeSymbol)invoke.ContainingType, iAsyncResultType, syntax, MethodKind.Ordinary, RefKind.None, DeclarationModifiers.Virtual | DeclarationModifiers.Public) 393: base((SourceNamedTypeSymbol)invoke.ContainingType, invoke.ReturnTypeWithAnnotations, syntax, MethodKind.Ordinary, invoke.RefKind, DeclarationModifiers.Virtual | DeclarationModifiers.Public)
Symbols\Source\SourceMemberContainerSymbol.cs (10)
3865if ((methodSymbol.MethodKind == MethodKind.Ordinary) && 3901if ((methodSymbol.MethodKind == MethodKind.Ordinary) && 4068case MethodKind.Ordinary: 4196case MethodSymbol { MethodKind: not (MethodKind.Ordinary or MethodKind.Constructor) }: 4287MethodKind.Ordinary, 4383MethodKind.Ordinary, 4443MethodKind.Ordinary, 4617MethodKind.Ordinary, 4710MethodKind.Ordinary, 5411if (member is MethodSymbol { MethodKind: MethodKind.Ordinary })
Symbols\Source\SourceMethodSymbolWithAttributes.cs (3)
942if (MethodKind != MethodKind.Ordinary) 1040if (MethodKind != MethodKind.Ordinary) 1197if (MethodKind != MethodKind.Ordinary)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
37? MethodKind.Ordinary
Symbols\Symbol.cs (2)
669case MethodKind.Ordinary: 730case MethodKind.Ordinary:
Symbols\Synthesized\Records\SynthesizedRecordOrdinaryMethod.cs (1)
27MethodKind.Ordinary, RefKind.None, declarationModifiers, returnsVoid: false, returnsVoidIsSet: false,
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
153get { return MethodKind.Ordinary; }
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (1)
246get { return MethodKind.Ordinary; }
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (1)
131get { return MethodKind.Ordinary; }
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (1)
72MethodKind.Ordinary,
Symbols\TypeSymbol.cs (1)
1696else if (implicitImplMethod.IsStatic && implicitImplMethod.MethodKind == MethodKind.Ordinary && implicitImplMethod.GetUnmanagedCallersOnlyAttributeData(forceComplete: true) is not null)
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
176if (owningMethod.MethodKind is not (MethodKind.Ordinary or MethodKind.ExplicitInterfaceImplementation or MethodKind.PropertyGet or MethodKind.PropertySet)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.InfoCache.cs (1)
93Debug.Assert(method.MethodKind == MethodKind.Ordinary);
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs (2)
70method.MethodKind is MethodKind.PropertyGet or MethodKind.Ordinary && 143=> method.MethodKind != MethodKind.Ordinary
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (1)
src\Analyzers\CSharp\Tests\NamingStyles\NamingStylesTests.cs (1)
242[InlineData("void [|m|]() {}", "void M() {}", MethodKind.Ordinary, Accessibility.Private)]
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
EventHookup\EventHookupSessionManager_EventHookupSession.cs (1)
176new SymbolKindOrTypeKind(MethodKind.Ordinary),
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (19)
Completion\CompletionProviders\DeclarationNameCompletionProviderTests.cs (1)
2956SpecificationStyle(new SymbolKindOrTypeKind(MethodKind.Ordinary), "Method"),
Completion\CompletionProviders\DeclarationNameCompletionProviderTests_NameDeclarationInfoTests.cs (10)
38new SymbolKindOrTypeKind(MethodKind.Ordinary)); 56new SymbolKindOrTypeKind(MethodKind.Ordinary)); 73new SymbolKindOrTypeKind(MethodKind.Ordinary)); 91new SymbolKindOrTypeKind(MethodKind.Ordinary)); 433new SymbolKindOrTypeKind(MethodKind.Ordinary)); 447new SymbolKindOrTypeKind(MethodKind.Ordinary)); 461new SymbolKindOrTypeKind(MethodKind.Ordinary)); 475new SymbolKindOrTypeKind(MethodKind.Ordinary)); 488new SymbolKindOrTypeKind(MethodKind.Ordinary)); 504new SymbolKindOrTypeKind(MethodKind.Ordinary));
Diagnostics\NamingStyles\EditorConfigNamingStyleParserTests.cs (8)
49new SymbolKindOrTypeKind(MethodKind.Ordinary), 119new SymbolKindOrTypeKind(MethodKind.Ordinary), 178new SymbolKindOrTypeKind(MethodKind.Ordinary), 226new SymbolKindOrTypeKind(MethodKind.Ordinary), 340[InlineData("property,method", new object[] { SymbolKind.Property, MethodKind.Ordinary })] 344[InlineData("*", new object[] { SymbolKind.Namespace, TypeKind.Class, TypeKind.Struct, TypeKind.Interface, TypeKind.Enum, SymbolKind.Property, MethodKind.Ordinary, MethodKind.LocalFunction, SymbolKind.Field, SymbolKind.Event, TypeKind.Delegate, SymbolKind.Parameter, SymbolKind.TypeParameter, SymbolKind.Local })] 345[InlineData(null, new object[] { SymbolKind.Namespace, TypeKind.Class, TypeKind.Struct, TypeKind.Interface, TypeKind.Enum, SymbolKind.Property, MethodKind.Ordinary, MethodKind.LocalFunction, SymbolKind.Field, SymbolKind.Event, TypeKind.Delegate, SymbolKind.Parameter, SymbolKind.TypeParameter, SymbolKind.Local })] 346[InlineData("property,method,invalid", new object[] { SymbolKind.Property, MethodKind.Ordinary })]
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\RecordTests.cs (1)
22526var ordinaryMethods = comp.GetMember<NamedTypeSymbol>("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind == MethodKind.Ordinary).ToArray();
Microsoft.CodeAnalysis.CSharp.Features (8)
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
517new SymbolKindOrTypeKind(MethodKind.Ordinary));
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.CompletionSymbolDisplay.cs (1)
57case MethodKind.Ordinary:
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1991MethodKind.Ordinary when symbol.Name == WellKnownMemberNames.TopLevelStatementsEntryPointMethodName => CSharpFeaturesResources.top_level_code,
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
111methodKind: this.LocalFunction ? MethodKind.LocalFunction : MethodKind.Ordinary);
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
176if (owningMethod.MethodKind is not (MethodKind.Ordinary or MethodKind.ExplicitInterfaceImplementation or MethodKind.PropertyGet or MethodKind.PropertySet)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.InfoCache.cs (1)
93Debug.Assert(method.MethodKind == MethodKind.Ordinary);
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs (2)
70method.MethodKind is MethodKind.PropertyGet or MethodKind.Ordinary && 143=> method.MethodKind != MethodKind.Ordinary
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
src\Analyzers\CSharp\Tests\NamingStyles\NamingStylesTests.cs (1)
242[InlineData("void [|m|]() {}", "void M() {}", MethodKind.Ordinary, Accessibility.Private)]
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Semantics\NamedAndOptionalTests.cs (5)
2047var methods = module.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind == MethodKind.Ordinary).ToArray(); 2129var methods = module.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind == MethodKind.Ordinary).ToArray(); 2180var methods = module.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind == MethodKind.Ordinary).ToArray(); 2263var methods = module.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind == MethodKind.Ordinary).ToArray(); 2345var methods = module.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind == MethodKind.Ordinary).ToArray();
Semantics\NativeIntegerTests.cs (2)
327case MethodKind.Ordinary: 441case MethodKind.Ordinary:
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (46)
DocumentationComments\CrefTests.cs (1)
3230Assert.Equal(MethodKind.Ordinary, ((IMethodSymbol)info.CandidateSymbols[0]).MethodKind);
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (2)
433Assert.Equal(MethodKind.Ordinary, derivedMethod.MethodKind); 887Assert.NotEqual(MethodKind.Ordinary, m.MethodKind);
Symbols\ExtensionMethodTests.cs (1)
232Assert.Equal(MethodKind.Ordinary, gooOriginal.MethodKind);
Symbols\InterfaceImplementationTests.cs (15)
137Assert.Equal(MethodKind.Ordinary, classImplicitImplementation.MethodKind); 257Assert.Equal(MethodKind.Ordinary, classImplicitImplementation.MethodKind); 260Assert.Equal(MethodKind.Ordinary, classImplicitImplementationBase.MethodKind); 446Assert.Equal(MethodKind.Ordinary, baseClassImplicitImplementation.MethodKind); 519Assert.Equal(MethodKind.Ordinary, baseClassImplicitImplementation.MethodKind); 522Assert.Equal(MethodKind.Ordinary, baseClassImplicitImplementationBase.MethodKind); 582Assert.Equal(MethodKind.Ordinary, baseClassMethod.MethodKind); 688Assert.Equal(MethodKind.Ordinary, class1Method.MethodKind); 696Assert.Equal(MethodKind.Ordinary, class2Method.MethodKind); 744Assert.Equal(MethodKind.Ordinary, baseClassMethodVirtual.MethodKind); 748Assert.Equal(MethodKind.Ordinary, baseClassMethodNonVirtual.MethodKind); 760Assert.Equal(MethodKind.Ordinary, class1MethodVirtual.MethodKind); 764Assert.Equal(MethodKind.Ordinary, class1MethodNonVirtual.MethodKind); 778Assert.Equal(MethodKind.Ordinary, class2MethodVirtual.MethodKind); 782Assert.Equal(MethodKind.Ordinary, class2MethodNonVirtual.MethodKind);
Symbols\Metadata\MetadataMemberTests.cs (1)
205Assert.Equal(MethodKind.Ordinary, member1.MethodKind);
Symbols\Metadata\PE\LoadingIndexers.cs (3)
1072Assert.Equal(MethodKind.Ordinary, accessor.MethodKind); 1077Assert.Equal(propertyIsIndexer ? MethodKind.PropertyGet : MethodKind.Ordinary, accessor.MethodKind); 1084Assert.Equal(propertyIsIndexer ? MethodKind.PropertySet : MethodKind.Ordinary, accessor.MethodKind);
Symbols\Metadata\PE\LoadingMethods.cs (15)
428Assert.Equal(MethodKind.Ordinary, classMethod.MethodKind); // because it has name without '.' 530Assert.Equal(MethodKind.Ordinary, classMethod.MethodKind); // because it has name without '.' 553Assert.Equal(MethodKind.Ordinary, classMethod.MethodKind); 619Assert.Equal(MethodKind.Ordinary, derivedClassMethod.MethodKind); 644Assert.Equal(MethodKind.Ordinary, classMethod.MethodKind); 648Assert.Equal(MethodKind.Ordinary, classGenericMethod.MethodKind); 677Assert.Equal(MethodKind.Ordinary, classMethod.MethodKind); 681Assert.Equal(MethodKind.Ordinary, classGenericMethod.MethodKind); 1187Assert.Equal(MethodKind.Ordinary, ((MethodSymbol)m).MethodKind); 1192Assert.Equal(MethodKind.Ordinary, ((MethodSymbol)m).MethodKind); 1197Assert.Equal(MethodKind.Ordinary, ((MethodSymbol)m).MethodKind); 1202Assert.Equal(MethodKind.Ordinary, ((MethodSymbol)m).MethodKind); 1207Assert.Equal(MethodKind.Ordinary, ((MethodSymbol)m).MethodKind); 1212Assert.Equal(MethodKind.Ordinary, ((MethodSymbol)m).MethodKind); 1217Assert.Equal(MethodKind.Ordinary, ((MethodSymbol)m).MethodKind);
Symbols\Source\MethodTests.cs (1)
144Assert.Equal(MethodKind.Ordinary, m.MethodKind);
Symbols\Source\PropertyTests.cs (2)
729VerifyAccessor(mismatchedStatic.SetMethod, null, MethodKind.Ordinary); 746VerifyAccessor(mismatchedInstance.SetMethod, null, MethodKind.Ordinary);
Symbols\StaticAbstractMembersInInterfacesTests.cs (5)
16083Assert.Equal(MethodKind.Ordinary, cM01.MethodKind); 16506Assert.Equal(MethodKind.Ordinary, c1M01.MethodKind); 16511Assert.Equal(MethodKind.Ordinary, c2M01.MethodKind); 16592Assert.Equal(MethodKind.Ordinary, c1M01.MethodKind); 16598Assert.Equal(MethodKind.Ordinary, c1M01.MethodKind);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
4278var method = symbolC.GetMembers().OfType<IMethodSymbol>().Single(m => m.MethodKind == MethodKind.Ordinary);
Microsoft.CodeAnalysis.Features (15)
EmbeddedLanguages\DateAndTime\LanguageServices\DateAndTimeLanguageDetector.cs (1)
156method.MethodKind == MethodKind.Ordinary &&
InheritanceMargin\AbstractInheritanceMarginService.cs (1)
78MethodKind: MethodKind.Ordinary or MethodKind.ExplicitInterfaceImplementation or MethodKind.UserDefinedOperator or MethodKind.Conversion
InlineHints\AbstractInlineParameterNameHintsService.cs (1)
225if (parameter is not { ContainingSymbol: IMethodSymbol { MethodKind: MethodKind.Ordinary or MethodKind.LocalFunction } method })
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (1)
85if (methodKind is not (MethodKind.Ordinary or MethodKind.LocalFunction or MethodKind.Constructor))
PullMemberUp\MemberAndDestinationValidator.cs (1)
46IMethodSymbol methodSymbol => methodSymbol.MethodKind == MethodKind.Ordinary,
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (2)
705/// 4. If method, then it is a constructor OR a method with <see cref="MethodKind.Ordinary"/>, 759case MethodKind.Ordinary:
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateDeconstructMethodService.State.cs (1)
54MethodKind = MethodKind.Ordinary;
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateMethodService.State.cs (2)
86MethodKind = MethodKind.Ordinary; 125MethodKind = MethodKind.Ordinary;
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator.cs (2)
368return method1.MethodKind == MethodKind.Ordinary && 369method2.MethodKind == MethodKind.Ordinary &&
src\Analyzers\Core\CodeFixes\Naming\FallbackNamingRules.cs (3)
61var kinds = ImmutableArray.Create(new SymbolKindOrTypeKind(MethodKind.Ordinary)); 80var kinds = ImmutableArray.Create(new SymbolKindOrTypeKind(MethodKind.Ordinary)); 90var kinds = ImmutableArray.Create(new SymbolKindOrTypeKind(MethodKind.Ordinary));
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\TrackingDiagnosticAnalyzer.cs (2)
126new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.Ordinary, ReturnsVoid = false }, 127new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.Ordinary, ReturnsVoid = true },
Microsoft.CodeAnalysis.VisualBasic (39)
Analysis\FlowAnalysis\DataFlowPass.vb (2)
1263Debug.Assert(MethodSymbol.MethodKind = MethodKind.Ordinary OrElse MethodSymbol.MethodKind = MethodKind.LambdaMethod) 1275Debug.Assert(MethodSymbol.MethodKind = MethodKind.Ordinary OrElse MethodSymbol.MethodKind = MethodKind.LambdaMethod)
Binding\Binder_Expressions.vb (1)
1928Return MethodKind.Ordinary ' Looks like a good default.
Binding\Binder_Utils.vb (1)
1644MethodKindOrdinary = CUInt(MethodKind.Ordinary) << MethodKindShift
Compilation\MethodCompiler.vb (1)
423Dim sourceTypeBinder As Binder = If(method.MethodKind = MethodKind.Ordinary, Nothing,
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (1)
270Debug.Assert(helper.MethodKind = MethodKind.Ordinary OrElse helper.MethodKind = MethodKind.UserDefinedOperator)
SymbolDisplay\SymbolDisplayVisitor.Members.vb (2)
270Case MethodKind.Ordinary, 311Case MethodKind.Ordinary, MethodKind.DelegateInvoke, MethodKind.DeclareMethod
Symbols\EmbeddedSymbols\EmbeddedSymbolManager.SymbolsCollection.vb (2)
239Case MethodKind.Ordinary, 374kind = MethodKind.Ordinary OrElse
Symbols\ErrorMethodSymbol.vb (1)
188Return MethodKind.Ordinary
Symbols\Metadata\PE\PEMethodSymbol.vb (7)
390Return MethodKind.Ordinary 404Return MethodKind.Ordinary 412Return MethodKind.Ordinary 547Case MethodKind.Ordinary 576result = MethodKind.Ordinary 580contender._packedFlags.InitializeMethodKind(MethodKind.Ordinary) 664Me.MethodKind = MethodKind.Ordinary AndAlso
Symbols\Source\OverrideHidingHelper.vb (1)
499Case MethodKind.Conversion, MethodKind.DelegateInvoke, MethodKind.UserDefinedOperator, MethodKind.Ordinary, MethodKind.DeclareMethod,
Symbols\Source\SourceMemberContainerTypeSymbol.vb (4)
1748If method IsNot Nothing AndAlso method.IsPartial AndAlso method.MethodKind = MethodKind.Ordinary Then 1798If candidate IsNot Nothing AndAlso candidate IsNot originalPartialMethod AndAlso candidate.MethodKind = MethodKind.Ordinary Then 2454Return sourceMethodSymbol.MethodKind = MethodKind.Ordinary OrElse sourceMethodSymbol.MethodKind = MethodKind.DeclareMethod 3432method.MethodKind <> MethodKind.Ordinary AndAlso
Symbols\Source\SourceMemberMethodSymbol.vb (1)
107If MethodKind = MethodKind.Ordinary Then
Symbols\Source\SourceMethodSymbol.vb (2)
1499If Not (Me.MethodKind <> MethodKind.Ordinary AndAlso Me.MethodKind <> MethodKind.DeclareMethod) AndAlso 1603If Me.MethodKind <> MethodKind.Ordinary AndAlso Me.MethodKind <> MethodKind.DeclareMethod Then
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (3)
381If DirectCast(member, MethodSymbol).MethodKind <> MethodKind.Ordinary Then 547Debug.Assert(method.MethodKind = MethodKind.Ordinary) 1231Return MethodKind.Ordinary
Symbols\Source\SynthesizedEntryPointSymbol.vb (1)
165Return MethodKind.Ordinary
Symbols\Source\SynthesizedInteractiveInitializerMethod.vb (1)
107Return MethodKind.Ordinary
Symbols\Symbol.vb (2)
618Case MethodKind.Ordinary, MethodKind.DeclareMethod, MethodKind.ReducedExtension 658Case MethodKind.Ordinary, MethodKind.DeclareMethod, MethodKind.ReducedExtension, MethodKind.DelegateInvoke, MethodKind.UserDefinedOperator, MethodKind.Conversion
Symbols\Symbol_Attributes.vb (1)
78Case MethodKind.Ordinary,
Symbols\SynthesizedSymbols\SynthesizedGlobalMethodBase.vb (1)
157Return MethodKind.Ordinary
Symbols\SynthesizedSymbols\SynthesizedInterfaceImplementationStubSymbol.vb (1)
174Return MethodKind.Ordinary
Symbols\SynthesizedSymbols\SynthesizedMethod.vb (1)
199Return MethodKind.Ordinary
Symbols\SynthesizedSymbols\SynthesizedRegularMethodBase.vb (1)
142Return MethodKind.Ordinary
Symbols\WellKnownMembers.vb (1)
428Dim targetMethodKind As MethodKind = MethodKind.Ordinary
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb (1)
159methodSymbol?.MethodKind = MethodKind.Ordinary AndAlso
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (3)
Symbols\EEMethodSymbol.vb (1)
190Return MethodKind.Ordinary
Symbols\PlaceholderMethodSymbol.vb (1)
103Return MethodKind.Ordinary
Symbols\SynthesizedContextMethodSymbol.vb (1)
65Return MethodKind.Ordinary
Microsoft.CodeAnalysis.VisualBasic.Features (1)
NavigationBar\VisualBasicNavigationBarItemService.vb (1)
277Return method.MethodKind = MethodKind.Ordinary OrElse
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (6)
ExtensionMethods\SemanticModelTests.vb (1)
65Assert.Equal(MethodKind.Ordinary, method.CallsiteReducedFromMethod.MethodKind)
Semantics\OptionalArgumentTests.vb (5)
2202Dim methods = [module].GlobalNamespace.GetMember(Of NamedTypeSymbol)("C").GetMembers().OfType(Of MethodSymbol)().Where(Function(m) m.MethodKind = MethodKind.Ordinary).ToArray() 2313Dim methods = [module].GlobalNamespace.GetMember(Of NamedTypeSymbol)("C").GetMembers().OfType(Of MethodSymbol)().Where(Function(m) m.MethodKind = MethodKind.Ordinary).ToArray() 2402Dim methods = [module].GlobalNamespace.GetMember(Of NamedTypeSymbol)("C").GetMembers().OfType(Of MethodSymbol)().Where(Function(m) m.MethodKind = MethodKind.Ordinary).ToArray() 2524Dim methods = [module].GlobalNamespace.GetMember(Of NamedTypeSymbol)("C").GetMembers().OfType(Of MethodSymbol)().Where(Function(m) m.MethodKind = MethodKind.Ordinary).ToArray() 2685Dim methods = [module].GlobalNamespace.GetMember(Of NamedTypeSymbol)("C").GetMembers().OfType(Of MethodSymbol)().Where(Function(m) m.MethodKind = MethodKind.Ordinary).ToArray()
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (50)
SymbolsTests\AnonymousDelegates\AnonymousDelegates_CreationAndEmit.vb (2)
310Assert.Equal(MethodKind.Ordinary, x16.GetMember(Of MethodSymbol)("BeginInvoke").MethodKind) 312Assert.Equal(MethodKind.Ordinary, x16.GetMember(Of MethodSymbol)("EndInvoke").MethodKind)
SymbolsTests\CheckedUserDefinedOperatorsTests.vb (3)
180Assert.Equal(MethodKind.Ordinary, m.MethodKind) 367Assert.Equal(MethodKind.Ordinary, m.MethodKind) 546Assert.Equal(MethodKind.Ordinary, m.MethodKind)
SymbolsTests\Metadata\MetadataMemberTests.vb (2)
214Assert.Equal(MethodKind.Ordinary, member1.MethodKind) 737Assert.NotEqual(MethodKind.Ordinary, m.MethodKind)
SymbolsTests\Metadata\PE\LoadingMethods.vb (14)
393Assert.Equal(MethodKind.Ordinary, classMethod.MethodKind) 422Assert.Equal(MethodKind.Ordinary, classMethod.MethodKind) 456Assert.Equal(MethodKind.Ordinary, classMethod.MethodKind) 488Assert.Equal(MethodKind.Ordinary, classMethod.MethodKind) 515Assert.Equal(MethodKind.Ordinary, classMethod.MethodKind) 541Assert.Equal(MethodKind.Ordinary, classMethod.MethodKind) 545Assert.Equal(MethodKind.Ordinary, classGenericMethod.MethodKind) 776Assert.Equal(MethodKind.Ordinary, DirectCast(m, MethodSymbol).MethodKind) 780Assert.Equal(MethodKind.Ordinary, DirectCast(m, MethodSymbol).MethodKind) 784Assert.Equal(MethodKind.Ordinary, DirectCast(m, MethodSymbol).MethodKind) 788Assert.Equal(MethodKind.Ordinary, DirectCast(m, MethodSymbol).MethodKind) 792Assert.Equal(MethodKind.Ordinary, DirectCast(m, MethodSymbol).MethodKind) 796Assert.Equal(MethodKind.Ordinary, DirectCast(m, MethodSymbol).MethodKind) 800Assert.Equal(MethodKind.Ordinary, DirectCast(m, MethodSymbol).MethodKind)
SymbolsTests\Metadata\PE\LoadingOperators.vb (27)
558New BaseLine(MethodKind.Ordinary, "Public Shared Overloads Function op_LogicalAnd(x As A1, y As A1) As A1"), 560New BaseLine(MethodKind.Ordinary, "Public Shared Overloads Function op_LogicalOr(x As A1, y As A1) As A1"), 574New BaseLine(MethodKind.Ordinary, "Public Shared Overloads Function op_UnsignedLeftShift(x As A1, y As Integer) As A1"), 581New BaseLine(MethodKind.Ordinary, "Public Shared Overloads Function op_LogicalNot(x As A1) As A1"), 583New BaseLine(MethodKind.Ordinary, "Public Shared Overloads Function op_UnsignedRightShift(x As A1, y As Integer) As A1"), 1154New BaseLine(MethodKind.Ordinary, "Public Shared Overloads Function OP_LOGICALAND(x As A1, y As A1) As A1"), 1156New BaseLine(MethodKind.Ordinary, "Public Shared Overloads Function OP_LOGICALOR(x As A1, y As A1) As A1"), 1170New BaseLine(MethodKind.Ordinary, "Public Shared Overloads Function OP_UNSIGNEDLEFTSHIFT(x As A1, y As Integer) As A1"), 1177New BaseLine(MethodKind.Ordinary, "Public Shared Overloads Function OP_LOGICALNOT(x As A1) As A1"), 1179New BaseLine(MethodKind.Ordinary, "Public Shared Overloads Function OP_UNSIGNEDRIGHTSHIFT(x As A1, y As Integer) As A1"), 1375Assert.Equal(MethodKind.Ordinary, method.MethodKind) 1916New BaseLine(MethodKind.Ordinary, "Public Shared Overloads Function op_LogicalAnd(x As A1, y As A1) As A1"), 1918New BaseLine(MethodKind.Ordinary, "Public Shared Overloads Function op_LogicalOr(x As A1, y As A1) As A1"), 1932New BaseLine(MethodKind.Ordinary, "Public Shared Overloads Function op_UnsignedLeftShift(x As A1, y As Integer) As A1"), 1939New BaseLine(MethodKind.Ordinary, "Public Shared Overloads Function op_LogicalNot(x As A1) As A1"), 1941New BaseLine(MethodKind.Ordinary, "Public Shared Overloads Function op_UnsignedRightShift(x As A1, y As Integer) As A1"), 2192Assert.Equal(MethodKind.Ordinary, DirectCast(a11.GetMembers("op_LogicalNot").Single(), MethodSymbol).MethodKind) 2195Assert.Equal(MethodKind.Ordinary, DirectCast(m, MethodSymbol).MethodKind) 2292Assert.Equal(MethodKind.Ordinary, DirectCast(a11.GetMembers().Where(Function(m) m.Name.Equals("op_OnesComplement")).Single(), MethodSymbol).MethodKind) 2293Assert.Equal(MethodKind.Ordinary, DirectCast(a11.GetMembers().Where(Function(m) m.Name.Equals("OP_ONESCOMPLEMENT")).Single(), MethodSymbol).MethodKind) 2294Assert.Equal(MethodKind.Ordinary, DirectCast(a11.GetMembers("op_LogicalNot").Single(), MethodSymbol).MethodKind) 2390Assert.Equal(MethodKind.Ordinary, DirectCast(a11.GetMembers().Where(Function(m) m.Name.Equals("OP_ONESCOMPLEMENT")).Single(), MethodSymbol).MethodKind) 2391Assert.Equal(MethodKind.Ordinary, DirectCast(a11.GetMembers().Where(Function(m) m.Name.Equals("op_OnesComplement")).Single(), MethodSymbol).MethodKind) 2392Assert.Equal(MethodKind.Ordinary, DirectCast(a11.GetMembers("op_LogicalNot").Single(), MethodSymbol).MethodKind) 2470Assert.Equal(MethodKind.Ordinary, DirectCast(a11.GetMembers("op_LogicalNot").Single(), MethodSymbol).MethodKind) 2550Assert.Equal(MethodKind.Ordinary, DirectCast(a11.GetMembers("op_LogicalNot").Single(), MethodSymbol).MethodKind) 2629Assert.Equal(MethodKind.Ordinary, DirectCast(a11.GetMembers().Where(Function(m) m.Name.Equals("OP_ONESCOMPLEMENT")).Single(), MethodSymbol).MethodKind)
SymbolsTests\Source\MethodTests.vb (2)
86Assert.Equal(MethodKind.Ordinary, m1.MethodKind) 194Assert.Equal(MethodKind.Ordinary, m1.MethodKind)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
MockSymbols.vb (1)
584Return MethodKind.Ordinary
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
CodeCleanup\Providers\AddMissingTokensCodeCleanupProvider.vb (1)
124Function(s) If(TryCast(s, IMethodSymbol)?.MethodKind = MethodKind.Ordinary, False))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb (1)
159methodSymbol?.MethodKind = MethodKind.Ordinary AndAlso
Microsoft.CodeAnalysis.Workspaces (19)
Editing\SyntaxGenerator.cs (2)
744case MethodKind.Ordinary or MethodKind.ExplicitInterfaceImplementation: 837case MethodKind.Ordinary:
FindSymbols\FindReferences\Finders\OrdinaryMethodReferenceFinder.cs (1)
16=> symbol.MethodKind is MethodKind.Ordinary or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (2)
427method is { MethodKind: MethodKind.Ordinary, CanBeReferencedByName: true }) 637IMethodSymbol { MethodKind: MethodKind.Ordinary, CanBeReferencedByName: true } => true,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (3)
138if (methodSymbol.MethodKind is MethodKind.Ordinary or 238=> symbol is IMethodSymbol { MethodKind: MethodKind.Ordinary }; 241=> symbol is IMethodSymbol { MethodKind: MethodKind.Ordinary or MethodKind.LocalFunction };
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (2)
130private static readonly SymbolKindOrTypeKind _method = new(MethodKind.Ordinary); 365case MethodKind.Ordinary:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (1)
48return method.MethodKind is MethodKind.Ordinary or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
75new SymbolKindOrTypeKind(MethodKind.Ordinary), 432CodeAnalysis.SymbolKind.Method => new(CodeAnalysis.MethodKind.Ordinary),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (2)
255if ((kind1 == MethodKind.Ordinary && kind2.IsPropertyAccessor()) || 256(kind1.IsPropertyAccessor() && kind2 == MethodKind.Ordinary))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (2)
165MethodKind methodKind = MethodKind.Ordinary, 186MethodKind methodKind = MethodKind.Ordinary,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractMethodSymbol.cs (1)
77public virtual MethodKind MethodKind => MethodKind.Ordinary;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationMethodSymbol.cs (1)
40MethodKind methodKind = MethodKind.Ordinary,
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
EditorConfigParsing\NamingStyleParserTests.cs (1)
162symbolKind => Assert.Equal(new SymbolKindOrTypeKind(MethodKind.Ordinary), symbolKind),
Microsoft.Interop.ComInterfaceGenerator (2)
ComMethodInfo.cs (2)
58case IMethodSymbol { MethodKind: MethodKind.Ordinary }: 89Debug.Assert(method is { IsStatic: false, MethodKind: MethodKind.Ordinary });
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\CSharpCodeModelService.cs (1)
2190case MethodKind.Ordinary:
Progression\CSharpProgressionLanguageService.cs (1)
127=> f.MethodKind is MethodKind.Ordinary or MethodKind.ExplicitInterfaceImplementation;
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
GlyphExtensionsTests.cs (2)
180MethodKind methodKind = MethodKind.Ordinary, 197MethodKind methodKind = MethodKind.Ordinary,
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
CodeModel\VisualBasicCodeModelService.vb (1)
2544Case MethodKind.Ordinary,
CodeModel\VisualBasicCodeModelService_Prototype.vb (1)
96If methodSymbol.MethodKind = MethodKind.Ordinary AndAlso