4 overrides of IsGenericMethod
Microsoft.CodeAnalysis.CSharp (4)
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
499
public override bool
IsGenericMethod
=> Arity > 0;
Symbols\ReducedExtensionMethodSymbol.cs (1)
469
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
68 references to IsGenericMethod
Microsoft.CodeAnalysis.CSharp (50)
Binder\Binder_Invocation.cs (2)
781
if (boundMethodGroup.TypeArgumentsOpt.IsDefaultOrEmpty && localFunction.
IsGenericMethod
)
1636
return method.
IsGenericMethod
&& method.ConstructedFrom() == method;
Binder\LocalBinderFactory.cs (1)
374
binder = match.
IsGenericMethod
Compilation\CSharpCompilation.cs (1)
1829
if (candidate.
IsGenericMethod
|| candidate.ContainingType.IsGenericType)
Compiler\MethodBodySynthesizer.Lowered.cs (1)
248
this.
IsGenericMethod
?
Emitter\Model\MethodReference.cs (1)
54
return UnderlyingMethod.
IsGenericMethod
;
Emitter\Model\MethodSymbolAdapter.cs (4)
39
AdaptedMethodSymbol.
IsGenericMethod
)
55
(!AdaptedMethodSymbol.
IsGenericMethod
|| PEModuleBuilder.IsGenericType(AdaptedMethodSymbol.ContainingType)))
96
if (AdaptedMethodSymbol.
IsGenericMethod
)
147
return AdaptedMethodSymbol.
IsGenericMethod
;
Emitter\Model\PEModuleBuilder.cs (2)
1328
bool methodIsGeneric = methodSymbol.
IsGenericMethod
;
1488
return container.Kind == SymbolKind.Method && ((MethodSymbol)container).
IsGenericMethod
||
FlowAnalysis\NullableWalker.cs (5)
6206
if (method?.
IsGenericMethod
== true)
7021
Debug.Assert(method.
IsGenericMethod
);
7412
if (result is MethodSymbol resultMethod && resultMethod.
IsGenericMethod
)
8918
if (method.
IsGenericMethod
&& HasImplicitTypeArguments(group.Syntax))
9293
if (deconstructMethod.
IsGenericMethod
)
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (1)
487
!method.
IsGenericMethod
&&
Lowering\ClosureConversion\ClosureConversion.cs (4)
500
var isNonGeneric = !_topLevelMethod.
IsGenericMethod
;
1008
Debug.Assert((typeArgumentsOpt.IsDefault && !originalMethod.
IsGenericMethod
) || (typeArgumentsOpt.Length == originalMethod.Arity));
1028
if (synthesizedMethod.
IsGenericMethod
)
1646
!referencedMethod.
IsGenericMethod
;
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
262
Debug.Assert(symbol?.
IsGenericMethod
!= true);
Lowering\LocalRewriter\LocalRewriter.cs (1)
371
if (localFunction.
IsGenericMethod
)
Lowering\MethodToClassRewriter.cs (3)
321
if (!newMethod.
IsGenericMethod
)
327
Debug.Assert(methodBeingCalled.
IsGenericMethod
);
744
if (!methodBeingWrapped.
IsGenericMethod
)
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
287
var frameType = method.
IsGenericMethod
? stateMachineType.Construct(method.TypeArgumentsWithAnnotations, unbound: false) : stateMachineType;
Symbols\ConstraintsHelper.cs (1)
1487
if (!method.
IsGenericMethod
)
Symbols\MethodSymbol.cs (2)
472
return m.
IsGenericMethod
? m.Construct(this.TypeArgumentsWithAnnotations) : m;
1049
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())
316
Debug.Assert(!underlyingMethod.
IsGenericMethod
);
Symbols\PublicModel\MethodSymbol.cs (1)
229
return _underlying.
IsGenericMethod
;
Symbols\ReducedExtensionMethodSymbol.cs (2)
117
if (!method.
IsGenericMethod
|| method != method.ConstructedFrom)
471
get { return _reducedFrom.
IsGenericMethod
; }
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
1002
if (!method.
IsGenericMethod
&& !retargetedType.IsGenericType)
Symbols\Source\LocalFunctionSymbol.cs (1)
126
if (IsEntryPointCandidate && !
IsGenericMethod
&&
Symbols\Source\ParameterHelpers.cs (1)
881
return method.
IsGenericMethod
? method : null;
Symbols\Source\SourceConstructorSymbolBase.cs (1)
75
if (_lazyIsVararg && (
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)
584
if (
IsGenericMethod
)
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
776
if (current.
IsGenericMethod
)
912
if (
IsGenericMethod
|| ContainingType.IsGenericType)
Symbols\Source\SourceOrdinaryMethodSymbolBase.cs (1)
424
else if (isVararg && (
IsGenericMethod
|| ContainingType.IsGenericType || Parameters.Length > 0 && Parameters[Parameters.Length - 1].IsParams))
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (1)
173
Debug.Assert(!this.
IsGenericMethod
);
Symbols\TypeSymbol.cs (1)
1915
if (implementedMethod.
IsGenericMethod
)
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
44
return UnderlyingMethod.
IsGenericMethod
;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
Emit\EmitMetadataTests.cs (3)
470
Assert.True(m5.
IsGenericMethod
);
610
Assert.False(ctor.
IsGenericMethod
);
631
Assert.False(cctor.
IsGenericMethod
);
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (2)
Symbols\EEMethodSymbol.cs (1)
387
if (this.
IsGenericMethod
)
Symbols\PlaceholderMethodSymbol.cs (1)
190
return this.
IsGenericMethod
? Cci.CallingConvention.Generic : Cci.CallingConvention.Default;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\LocalFunctionTests.cs (2)
6838
Assert.True(method.
IsGenericMethod
);
6868
Assert.True(method.
IsGenericMethod
);
Semantics\NativeIntegerTests.cs (1)
435
if (method.
IsGenericMethod
)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (10)
Symbols\CompilationCreationTests.cs (2)
2378
Assert.False(foo2.
IsGenericMethod
);
2394
Assert.True(foo3.
IsGenericMethod
);
Symbols\Metadata\MetadataMemberTests.cs (2)
216
Assert.False(member1.
IsGenericMethod
);
322
Assert.False(member1.
IsGenericMethod
);
Symbols\Metadata\PE\LoadingMethods.cs (6)
140
Assert.False(basicC1_M5.
IsGenericMethod
); // Check genericity before cracking signature
142
Assert.False(basicC1_M6.
IsGenericMethod
); // Check genericity after cracking signature
144
Assert.True(basicC1_M7.
IsGenericMethod
); // Check genericity before cracking signature
147
Assert.True(basicC1_M8.
IsGenericMethod
); // Check genericity after cracking signature
151
Assert.Equal(1, basicC1_M9.Count(m => m.
IsGenericMethod
));
152
Assert.Equal(1, basicC1_M9.Count(m => !m.
IsGenericMethod
));