4 overrides of IsGenericMethod
Microsoft.CodeAnalysis.CSharp (4)
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
527public override bool IsGenericMethod => Arity > 0;
Symbols\ReducedExtensionMethodSymbol.cs (1)
477public override bool IsGenericMethod
Symbols\SignatureOnlyMethodSymbol.cs (1)
67public override bool IsGenericMethod { get { return Arity > 0; } }
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
40public override bool IsGenericMethod
50 references to IsGenericMethod
Microsoft.CodeAnalysis.CSharp (50)
Binder\Binder_Invocation.cs (2)
894if (boundMethodGroup.TypeArgumentsOpt.IsDefaultOrEmpty && singleCandidate.IsGenericMethod) 1958return method.IsGenericMethod && method.ConstructedFrom == method;
Binder\LocalBinderFactory.cs (1)
415binder = match.IsGenericMethod
Compilation\CSharpCompilation.cs (1)
2007if (candidate.IsGenericMethod || candidate.ContainingType.IsGenericType)
Compiler\MethodBodySynthesizer.Lowered.cs (1)
248this.IsGenericMethod ?
Emitter\Model\MethodSymbolAdapter.cs (3)
42AdaptedMethodSymbol.IsGenericMethod) 58(!AdaptedMethodSymbol.IsGenericMethod || PEModuleBuilder.IsGenericType(AdaptedMethodSymbol.ContainingType))) 99if (AdaptedMethodSymbol.IsGenericMethod)
Emitter\Model\PEModuleBuilder.cs (2)
1271bool methodIsGeneric = methodSymbol.IsGenericMethod; 1431return container.Kind == SymbolKind.Method && ((MethodSymbol)container).IsGenericMethod ||
FlowAnalysis\NullableWalker.cs (5)
6887if (method?.IsGenericMethod == true) 7883Debug.Assert(method.IsGenericMethod); 8313if (result is MethodSymbol resultMethod && resultMethod.IsGenericMethod) 9876if (method.IsGenericMethod && HasImplicitTypeArguments(group.Syntax)) 10238if (deconstructMethod.IsGenericMethod)
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (1)
487!method.IsGenericMethod &&
Lowering\ClosureConversion\ClosureConversion.cs (4)
508var isNonGeneric = !_topLevelMethod.IsGenericMethod; 1023Debug.Assert((typeArgumentsOpt.IsDefault && !originalMethod.IsGenericMethod) || (typeArgumentsOpt.Length == originalMethod.Arity)); 1043if (synthesizedMethod.IsGenericMethod) 1674!referencedMethod.IsGenericMethod;
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
264Debug.Assert(symbol?.IsGenericMethod != true);
Lowering\LocalRewriter\LocalRewriter.cs (1)
435if (localFunction.IsGenericMethod)
Lowering\MethodToClassRewriter.cs (3)
326if (!newMethod.IsGenericMethod) 332Debug.Assert(methodBeingCalled.IsGenericMethod); 748if (!methodBeingWrapped.IsGenericMethod)
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
292var frameType = method.IsGenericMethod ? stateMachineType.Construct(method.TypeArgumentsWithAnnotations, unbound: false) : stateMachineType;
Lowering\SyntheticBoundNodeFactory.cs (1)
811Debug.Assert(methodSymbol.IsGenericMethod);
Symbols\ConstraintsHelper.cs (1)
1573if (!method.IsGenericMethod)
Symbols\MethodSymbol.cs (2)
476return m.IsGenericMethod ? m.Construct(this.TypeArgumentsWithAnnotations) : m; 1059if (method.IsGenericMethod)
Symbols\MethodSymbolExtensions.cs (2)
86Debug.Assert(method.IsGenericMethod == (typeArguments.Length > 0)); 87return method.IsGenericMethod ? method.Construct(typeArguments) : method;
Symbols\NativeIntegerTypeSymbol.cs (2)
90if (underlyingMethod.IsGenericMethod || underlyingMethod.IsAccessor()) 336Debug.Assert(!underlyingMethod.IsGenericMethod);
Symbols\PublicModel\MethodSymbol.cs (1)
230return _underlying.IsGenericMethod;
Symbols\ReducedExtensionMethodSymbol.cs (2)
120if (!method.IsGenericMethod || method != method.ConstructedFrom) 479get { return _reducedFrom.IsGenericMethod; }
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
983if (!method.IsGenericMethod && !retargetedType.IsGenericType)
Symbols\Source\LocalFunctionSymbol.cs (1)
140if (IsEntryPointCandidate && !IsGenericMethod &&
Symbols\Source\ParameterHelpers.cs (1)
914return method.IsGenericMethod ? method : null;
Symbols\Source\SourceConstructorSymbolBase.cs (1)
73if (this.IsVararg && (IsGenericMethod || ContainingType.IsGenericType || _lazyParameters.Length > 0 && _lazyParameters[_lazyParameters.Length - 1].IsParams))
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
981if (overridingMethod.IsGenericMethod)
Symbols\Source\SourceMemberMethodSymbol.cs (1)
691if (IsGenericMethod)
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
836if (current.IsGenericMethod) 971if (IsGenericMethod || ContainingType.IsGenericType)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
900else if (isVararg && (IsGenericMethod || ContainingType.IsGenericType || Parameters.Length > 0 && Parameters[Parameters.Length - 1].IsParams))
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (1)
316if (IsGenericMethod)
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (1)
173Debug.Assert(!this.IsGenericMethod);
Symbols\TypeSymbol.cs (1)
1944if (implementedMethod.IsGenericMethod)
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
44return UnderlyingMethod.IsGenericMethod;