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