33 overrides of Signature
ILCompiler.Compiler (22)
Compiler\CompilerTypeSystemContext.InterfaceThunks.cs (1)
196
public override MethodSignature
Signature
=> _targetMethod.Signature;
Compiler\ReachabilityInstrumentationProvider.cs (1)
269
public override MethodSignature
Signature
IL\Stubs\StartupCode\NativeLibraryStartupMethod.cs (1)
87
public override MethodSignature
Signature
IL\Stubs\StartupCode\StartupCodeMainMethod.cs (2)
175
public override MethodSignature
Signature
250
public override MethodSignature
Signature
parent\parent\Common\Compiler\CompilerTypeSystemContext.BoxedTypes.cs (2)
393
public override MethodSignature
Signature
=> _targetMethod.Signature;
506
public override MethodSignature
Signature
=> _targetMethod.Signature;
parent\parent\Common\Compiler\TypeMapMetadata.cs (1)
181
public override MethodSignature
Signature
=> new MethodSignature(MethodSignatureFlags.Static, 0, Context.GetWellKnownType(WellKnownType.Void), []);
parent\parent\Common\TypeSystem\IL\Stubs\AssemblyGetExecutingAssemblyMethodThunk.cs (1)
63
public override MethodSignature
Signature
parent\parent\Common\TypeSystem\IL\Stubs\AsyncResumptionStub.cs (1)
34
public override MethodSignature
Signature
=> _signature ??= InitializeSignature();
parent\parent\Common\TypeSystem\IL\Stubs\CalliMarshallingMethodThunk.cs (1)
56
public override MethodSignature
Signature
parent\parent\Common\TypeSystem\IL\Stubs\DelegateMarshallingMethodThunk.cs (1)
123
public override MethodSignature
Signature
parent\parent\Common\TypeSystem\IL\Stubs\DelegateThunks.cs (2)
46
public sealed override MethodSignature
Signature
686
public override MethodSignature
Signature
parent\parent\Common\TypeSystem\IL\Stubs\DynamicInvokeMethodThunk.cs (1)
92
public override MethodSignature
Signature
parent\parent\Common\TypeSystem\IL\Stubs\ForwardDelegateCreationThunk.cs (1)
54
public override MethodSignature
Signature
parent\parent\Common\TypeSystem\IL\Stubs\GetFieldHelperMethodOverride.cs (1)
47
public override MethodSignature
Signature
parent\parent\Common\TypeSystem\IL\Stubs\MethodBaseGetCurrentMethodThunk.cs (1)
66
public override MethodSignature
Signature
parent\parent\Common\TypeSystem\IL\Stubs\StructMarshallingThunk.cs (1)
73
public override MethodSignature
Signature
parent\parent\Common\TypeSystem\IL\Stubs\TypeGetTypeMethodThunk.cs (1)
60
public override MethodSignature
Signature
parent\parent\Common\TypeSystem\Interop\IL\InlineArrayType.cs (1)
352
public override MethodSignature
Signature
parent\parent\Common\TypeSystem\Interop\IL\PInvokeDelegateWrapperConstructor.cs (1)
44
public override MethodSignature
Signature
ILCompiler.ReadyToRun (4)
parent\parent\Common\Compiler\CompilerTypeSystemContext.BoxedTypes.cs (2)
393
public override MethodSignature
Signature
=> _targetMethod.Signature;
506
public override MethodSignature
Signature
=> _targetMethod.Signature;
parent\parent\Common\Compiler\TypeMapMetadata.cs (1)
181
public override MethodSignature
Signature
=> new MethodSignature(MethodSignatureFlags.Static, 0, Context.GetWellKnownType(WellKnownType.Void), []);
parent\parent\Common\TypeSystem\IL\Stubs\AsyncResumptionStub.cs (1)
34
public override MethodSignature
Signature
=> _signature ??= InitializeSignature();
ILCompiler.TypeSystem (7)
parent\parent\Common\TypeSystem\Common\ArrayType.cs (1)
229
public override MethodSignature
Signature
parent\parent\Common\TypeSystem\Common\InstantiatedMethod.cs (1)
63
public override MethodSignature
Signature
parent\parent\Common\TypeSystem\Common\MethodDelegator.cs (1)
26
public override MethodSignature
Signature
=> _wrappedMethod.Signature;
parent\parent\Common\TypeSystem\Common\MethodForInstantiatedType.cs (1)
56
public override MethodSignature
Signature
parent\parent\Common\TypeSystem\Ecma\EcmaMethod.cs (1)
92
public override MethodSignature
Signature
parent\parent\Common\TypeSystem\IL\Stubs\PInvokeTargetNativeMethod.cs (1)
51
public override MethodSignature
Signature
parent\parent\Common\TypeSystem\RuntimeDetermined\MethodForRuntimeDeterminedType.cs (1)
35
public override MethodSignature
Signature
=> _typicalMethodDef.Signature;
462 references to Signature
ilc (5)
parent\parent\Common\TypeSystem\IL\HelperExtensions.cs (2)
57
Debug.Assert(method.
Signature
.Length == 0 && method.
Signature
.IsStatic);
RdXmlRootProvider.cs (3)
166
if (parameter.Count != method.
Signature
.Length)
169
for (int i = 0; i < method.
Signature
.Length; i++)
171
if (method.
Signature
[i] != parameter[i])
ILCompiler.Compiler (252)
Compiler\BodySubstitution.cs (1)
43
Debug.Assert(method.
Signature
.ReturnType.IsVoid);
Compiler\BodySubstitutionParser.cs (2)
78
if (method.
Signature
.ReturnType.IsVoid)
82
object substitution = TryCreateSubstitution(method.
Signature
.ReturnType, GetAttribute(methodNav, "value"));
Compiler\Compilation.cs (3)
187
if (intrinsicMethod.
Signature
.IsStatic && intrinsicMethod.Name == "GetType"u8)
199
if (intrinsicMethod.
Signature
.IsStatic && intrinsicMethod.Name == "GetExecutingAssembly"u8)
211
if (intrinsicMethod.
Signature
.IsStatic && intrinsicMethod.Name == "GetCurrentMethod"u8)
Compiler\CompilerTypeSystemContext.InterfaceThunks.cs (4)
73
Debug.Assert(!targetMethod.
Signature
.IsStatic);
177
Debug.Assert(!targetMethod.
Signature
.IsStatic);
196
public override MethodSignature Signature => _targetMethod.
Signature
;
255
for (int i = 0; i < _targetMethod.
Signature
.Length; i++)
Compiler\Dataflow\AsyncMaskingILProvider.cs (1)
33
if (method.IsAsync && method.GetTypicalMethodDefinition().
Signature
.ReturnsTaskOrValueTask())
Compiler\Dataflow\AttributeDataFlow.cs (2)
85
if (setter != null && setter.
Signature
.Length > 0 && !setter.
Signature
.IsStatic)
Compiler\Dataflow\DiagnosticUtilities.cs (2)
108
if (!method.
Signature
.IsStatic)
130
if ((method.
Signature
.IsStatic || method.IsConstructor) && method.OwningType is TypeDesc owningType &&
Compiler\Dataflow\FlowAnnotations.cs (2)
716
found.IsStatic != body.OwningMethod.
Signature
.IsStatic ||
736
LogValidationWarning((method.
Signature
.ReturnType, method), baseMethod, origin);
Compiler\Dataflow\MethodBodyScanner.cs (3)
798
bool ilHasReturnValue = !methodIL.OwningMethod.
Signature
.ReturnType.IsVoid;
1172
if (!isNewObj && !methodCalled.
Signature
.IsStatic)
1304
if (isNewObj || !calledMethod.
Signature
.ReturnType.IsVoid)
Compiler\Dataflow\MethodReturnValue.cs (1)
24
StaticType = isNewObj ? method.OwningType : method.
Signature
.ReturnType;
Compiler\Dataflow\ReflectionMethodBodyScanner.cs (7)
297
if (!calledMethod.
Signature
.IsStatic)
447
if (!method.
Signature
.IsStatic && !method.HasInstantiation && !method.IsConstructor && !method.OwningType.IsValueType)
490
aotUnsafeDelegate = IsAotUnsafeDelegate(calledMethod.
Signature
.ReturnType);
491
comDangerousMethod = IsComInterop(returnParamMetadata.MarshalAsDescriptor, calledMethod.
Signature
.ReturnType);
492
for (int paramIndex = 0; paramIndex < calledMethod.
Signature
.Length; paramIndex++)
501
aotUnsafeDelegate |= IsAotUnsafeDelegate(calledMethod.
Signature
[paramIndex]);
502
comDangerousMethod |= IsComInterop(marshalAsDescriptor, calledMethod.
Signature
[paramIndex]);
Compiler\DelegateCreationInfo.cs (4)
66
return TargetMethod.OwningType.IsValueType && !TargetMethod.
Signature
.IsStatic;
191
int paramCountTargetMethod = targetMethod.
Signature
.Length;
192
if (!targetMethod.
Signature
.IsStatic)
209
if (targetMethod.
Signature
.IsStatic)
Compiler\DependencyAnalysis\AddressTakenMethodNode.cs (1)
35
public override MethodSignature Signature => Method.
Signature
;
Compiler\DependencyAnalysis\EETypeNode.cs (2)
151
MethodDesc slotDecl = method.
Signature
.IsStatic ?
455
bool isStaticInterfaceMethod = interfaceMethod.
Signature
.IsStatic;
Compiler\DependencyAnalysis\ExactMethodInstantiationsNode.cs (2)
55
bool getUnboxingStub = method.OwningType.IsValueType && !method.
Signature
.IsStatic;
108
bool getUnboxingStub = method.OwningType.IsValueType && !method.
Signature
.IsStatic;
Compiler\DependencyAnalysis\GenericLookupResult.cs (2)
1103
if (instantiatedConstrainedMethod.
Signature
.IsStatic)
1134
Debug.Assert(instantiatedConstraintType.IsValueType || (instantiatedConstrainedMethod.OwningType.IsInterface && instantiatedConstrainedMethod.
Signature
.IsStatic));
Compiler\DependencyAnalysis\GenericVirtualMethodImplNode.cs (2)
27
Debug.Assert(method.IsVirtual || (method.
Signature
.IsStatic && !method.IsAbstract));
51
bool getUnboxingStub = _method.OwningType.IsValueType && !_method.
Signature
.IsStatic;
Compiler\DependencyAnalysis\ILScanNodeFactory.cs (1)
47
Debug.Assert(!method.
Signature
.IsStatic);
Compiler\DependencyAnalysis\InterfaceDispatchMapNode.cs (6)
108
if (isInterface && !declMethod.
Signature
.IsStatic)
114
var implMethod = declMethod.
Signature
.IsStatic ?
180
if (!declMethod.
Signature
.IsStatic && !needsEntriesForInstanceInterfaceMethodImpls)
186
var implMethod = declMethod.
Signature
.IsStatic ?
204
if (targetMethod.
Signature
.IsStatic)
256
if (declMethod.
Signature
.IsStatic)
Compiler\DependencyAnalysis\MetadataEETypeNode.cs (1)
67
if (intfaceMethod.
Signature
.IsStatic)
Compiler\DependencyAnalysis\NativeLayoutVertexNode.cs (3)
109
public virtual bool IsUnboxingStub => _method.OwningType.IsValueType && !_method.
Signature
.IsStatic;
653
if (method.
Signature
.IsStatic && !method.OwningType.IsInterface)
1480
return (_constrainedMethod.HasInstantiation, _constrainedMethod.
Signature
.IsStatic) switch
Compiler\DependencyAnalysis\ReflectionInvokeMapNode.cs (4)
54
var signature = method.
Signature
;
60
if (method.OwningType.IsValueType && !method.
Signature
.IsStatic)
153
bool goesThroughInstantiatingUnboxingThunk = method.OwningType.IsValueType && !method.
Signature
.IsStatic && !method.HasInstantiation;
193
unboxingStub: method.OwningType.IsValueType && !method.
Signature
.IsStatic))));
Compiler\DependencyAnalysis\ReflectionInvokeSupportDependencyAlgorithm.cs (1)
31
MethodSignature sig = method.
Signature
;
Compiler\DependencyAnalysis\SealedVTableNode.cs (12)
129
if (!virtualSlots[i].
Signature
.IsStatic && !needsEntriesForInstanceInterfaceMethodImpls)
139
node = factory.AddressTakenMethodEntrypoint(implMethod.GetCanonMethodTarget(CanonicalFormKind.Specific), unboxingStub: !implMethod.
Signature
.IsStatic && declType.IsValueType);
141
node = factory.MethodEntrypoint(implMethod.GetCanonMethodTarget(CanonicalFormKind.Specific), unboxingStub: !implMethod.
Signature
.IsStatic && declType.IsValueType);
170
if (!declMethod.
Signature
.IsStatic && !needsEntriesForInstanceInterfaceMethodImpls)
177
var implMethod = declMethod.
Signature
.IsStatic ?
185
if (implMethod.
Signature
.IsStatic || !implMethod.OwningType.HasSameTypeDefinition(declType))
195
if (targetMethod.CanMethodBeInSealedVTable(factory) || implMethod.
Signature
.IsStatic)
199
node = factory.AddressTakenMethodEntrypoint(targetMethod.GetCanonMethodTarget(CanonicalFormKind.Specific), unboxingStub: !targetMethod.
Signature
.IsStatic && declType.IsValueType);
201
node = factory.MethodEntrypoint(targetMethod.GetCanonMethodTarget(CanonicalFormKind.Specific), unboxingStub: !targetMethod.
Signature
.IsStatic && declType.IsValueType);
218
if (canonImplMethod.IsCanonicalMethod(CanonicalFormKind.Any) && !canonImplMethod.
Signature
.IsStatic)
234
node = factory.AddressTakenMethodEntrypoint(canonImplMethod, unboxingStub: implMethod.OwningType.IsValueType && !implMethod.
Signature
.IsStatic);
236
node = factory.MethodEntrypoint(canonImplMethod, unboxingStub: implMethod.OwningType.IsValueType && !implMethod.
Signature
.IsStatic);
Compiler\DependencyAnalysis\StringAllocatorMethodNode.cs (1)
41
var signatureBuilder = new MethodSignatureBuilder(constructorMethod.
Signature
);
Compiler\DependencyAnalysis\Target_ARM\ARMReadyToRunGenericHelperNode.cs (2)
177
Debug.Assert(target.Constructor.Method.
Signature
.Length == 3);
182
Debug.Assert(target.Constructor.Method.
Signature
.Length == 2);
Compiler\DependencyAnalysis\Target_ARM\ARMReadyToRunHelperNode.cs (2)
116
Debug.Assert(target.Constructor.Method.
Signature
.Length == 3);
121
Debug.Assert(target.Constructor.Method.
Signature
.Length == 2);
Compiler\DependencyAnalysis\Target_ARM64\ARM64ReadyToRunGenericHelperNode.cs (2)
175
Debug.Assert(target.Constructor.Method.
Signature
.Length == 3);
180
Debug.Assert(target.Constructor.Method.
Signature
.Length == 2);
Compiler\DependencyAnalysis\Target_ARM64\ARM64ReadyToRunHelperNode.cs (2)
131
Debug.Assert(target.Constructor.Method.
Signature
.Length == 3);
136
Debug.Assert(target.Constructor.Method.
Signature
.Length == 2);
Compiler\DependencyAnalysis\Target_LoongArch64\LoongArch64ReadyToRunGenericHelperNode.cs (2)
177
Debug.Assert(target.Constructor.Method.
Signature
.Length == 3);
182
Debug.Assert(target.Constructor.Method.
Signature
.Length == 2);
Compiler\DependencyAnalysis\Target_LoongArch64\LoongArch64ReadyToRunHelperNode.cs (2)
123
Debug.Assert(target.Constructor.Method.
Signature
.Length == 3);
128
Debug.Assert(target.Constructor.Method.
Signature
.Length == 2);
Compiler\DependencyAnalysis\Target_RiscV64\RiscV64ReadyToRunGenericHelperNode.cs (2)
174
Debug.Assert(target.Constructor.Method.
Signature
.Length == 3);
179
Debug.Assert(target.Constructor.Method.
Signature
.Length == 2);
Compiler\DependencyAnalysis\Target_RiscV64\RiscV64ReadyToRunHelperNode.cs (2)
121
Debug.Assert(target.Constructor.Method.
Signature
.Length == 3);
126
Debug.Assert(target.Constructor.Method.
Signature
.Length == 2);
Compiler\DependencyAnalysis\Target_X64\X64ReadyToRunGenericHelperNode.cs (2)
185
Debug.Assert(target.Constructor.Method.
Signature
.Length == 3);
190
Debug.Assert(target.Constructor.Method.
Signature
.Length == 2);
Compiler\DependencyAnalysis\Target_X64\X64ReadyToRunHelperNode.cs (2)
136
Debug.Assert(target.Constructor.Method.
Signature
.Length == 3);
141
Debug.Assert(target.Constructor.Method.
Signature
.Length == 2);
Compiler\DependencyAnalysis\Target_X86\X86ReadyToRunGenericHelperNode.cs (2)
174
Debug.Assert(target.Constructor.Method.
Signature
.Length == 3);
183
Debug.Assert(target.Constructor.Method.
Signature
.Length == 2);
Compiler\DependencyAnalysis\Target_X86\X86ReadyToRunHelperNode.cs (2)
141
Debug.Assert(target.Constructor.Method.
Signature
.Length == 3);
149
Debug.Assert(target.Constructor.Method.
Signature
.Length == 2);
Compiler\DependencyAnalysis\TentativeInstanceMethodNode.cs (1)
27
Debug.Assert(!methodNode.Method.
Signature
.IsStatic);
Compiler\DependencyAnalysis\TypeGVMEntriesNode.cs (1)
114
MethodDesc slotDecl = method.
Signature
.IsStatic ?
Compiler\DependencyAnalysis\TypeMetadataNode.cs (1)
90
_ = method.
Signature
;
Compiler\ILAssemblyGeneratingMethodDebugInfoProvider.cs (4)
68
if (!owningMethod.
Signature
.IsStatic)
70
_tw.Write(fmt.FormatName(owningMethod.
Signature
.ReturnType));
85
for (int i = 0; i < owningMethod.
Signature
.Length; i++)
89
_tw.Write(fmt.FormatName(owningMethod.
Signature
[i]));
Compiler\LibraryRootProvider.cs (1)
86
MethodSignature signature = method.
Signature
;
Compiler\Logging\DocumentationSignatureParser.cs (2)
616
if (GetSignaturePart(method.
Signature
.ReturnType) != returnType)
623
if (!AllParametersMatch(method.
Signature
, parameters))
Compiler\MetadataManager.cs (5)
422
if (method.IsAsync && !method.GetTypicalMethodDefinition().
Signature
.ReturnsTaskOrValueTask())
472
if (method.
Signature
.IsStatic && method.IsSynchronized)
707
return _typeSystemContext.GetDynamicInvokeThunk(method.
Signature
,
708
!method.
Signature
.IsStatic && method.OwningType.IsValueType);
944
MetadataRecord signature = transform.HandleMethodSignature(methodToGenerateMetadataFor.
Signature
);
Compiler\SubstitutedILProvider.cs (7)
681
TypeFlags returnType = method.
Signature
.ReturnType.UnderlyingType.Category;
746
for (int i = 0; i < callee.
Signature
.Length + (callee.
Signature
.IsStatic ? 0 : 1); i++)
815
&& ((opcode != ILOpcode.callvirt && !method.
Signature
.IsStatic) || !method.IsVirtual))
820
if (((opcode != ILOpcode.callvirt && !method.
Signature
.IsStatic) || !method.IsVirtual)
846
if (method.
Signature
.Length > 0 || !method.
Signature
.IsStatic)
Compiler\TypePreinit.cs (10)
343
bool returnsVoid = methodIL.OwningMethod.
Signature
.ReturnType.IsVoid;
352
returnValue = stack.PopIntoLocation(methodIL.OwningMethod.
Signature
.ReturnType);
482
MethodSignature methodSig = method.
Signature
;
505
&& (method.
Signature
.IsStatic || method.IsConstructor || owningType.IsValueType || owningType.IsInterface) // ECMA-335 I.8.9.5
554
MethodSignature ctorSig = ctor.
Signature
;
627
if ((firstParameter == null) != pointedMethod.
Signature
.IsStatic)
1981
var sig = method.
Signature
;
3283
Debug.Assert(_methodPointed.
Signature
.IsStatic == (_target == null));
3294
if (_methodPointed.
Signature
.IsStatic)
3334
public bool IsKnownImmutable => _methodPointed.
Signature
.IsStatic;
Compiler\UserDefinedTypeDescriptor.cs (1)
193
MethodSignature signature = method.
Signature
;
Compiler\WindowsNodeMangler.cs (2)
101
callConv = method.
Signature
.GetStandaloneMethodSignatureCallingConventions();
112
foreach (var p in method.
Signature
)
IL\ILImporter.Scanner.cs (12)
141
(_canonMethod.
Signature
.IsStatic || _canonMethod.IsConstructor || owningType.IsValueType || owningType.IsInterface))
164
if (_canonMethod.
Signature
.IsStatic)
517
MethodSignature sig = ctorMethod.GetTypicalMethodDefinition().
Signature
;
549
if ((method.
Signature
.Flags & MethodSignatureFlags.UnmanagedCallingConventionMask) == MethodSignatureFlags.CallingConventionVarargs)
570
bool allowAsyncVariant = method.GetTypicalMethodDefinition().
Signature
.ReturnsTaskOrValueTask();
766
|| methodAfterConstraintResolution.
Signature
.IsStatic);
773
else if (method.
Signature
.IsStatic)
803
if (targetMethod.
Signature
.IsStatic)
853
Debug.Assert(targetMethod.OwningType.IsValueType || targetMethod.
Signature
.IsStatic);
989
else if (method.
Signature
.IsStatic)
2045
TypeDesc taskReturnType = taskReturningMethod.
Signature
.ReturnType;
2053
TypeDesc returnType = runtimeDeterminedCaller.
Signature
.ReturnType;
IL\RvaIntrinsicPatternAnalyzer.cs (3)
167
int argumentCount = constructor.
Signature
.Length;
324
MethodSignature signature = method.
Signature
;
337
MethodSignature signature = method.
Signature
;
IL\Stubs\StartupCode\StartupCodeMainMethod.cs (1)
254
return WrappedMethod.
Signature
;
parent\parent\Common\Compiler\AsyncMethodVariant.cs (1)
36
var signature = _wrappedMethod.
Signature
;
parent\parent\Common\Compiler\CompilerTypeSystemContext.Async.cs (6)
39
Debug.Assert(originalMethod.
Signature
.ReturnsTaskOrValueTask());
40
Debug.Assert(resolvedMethod.
Signature
.ReturnsTaskOrValueTask());
46
if (!originalMethod.
Signature
.ReturnType.HasInstantiation
47
&& !asyncVariant.
Signature
.ReturnType.IsVoid)
193
Debug.Assert(taskReturningMethod.
Signature
.ReturnsTaskOrValueTask());
244
Debug.Assert(!asyncVariantMethod.
Signature
.ReturnType.IsVoid);
parent\parent\Common\Compiler\CompilerTypeSystemContext.BoxedTypes.cs (7)
57
Debug.Assert(!targetMethod.
Signature
.IsStatic);
383
Debug.Assert(!targetMethod.
Signature
.IsStatic);
393
public override MethodSignature Signature => _targetMethod.
Signature
;
458
for (int i = 0; i < _targetMethod.
Signature
.Length; i++)
496
Debug.Assert(!targetMethod.
Signature
.IsStatic);
506
public override MethodSignature Signature => _targetMethod.
Signature
;
565
for (int i = 0; i < _targetMethod.
Signature
.Length; i++)
parent\parent\Common\Compiler\CompilerTypeSystemContext.Validation.cs (1)
227
MethodSignature sig = method.
Signature
;
parent\parent\Common\Compiler\Dataflow\DynamicallyAccessedMembersBinder.cs (4)
156
if ((bindingFlags & (BindingFlags.Instance | BindingFlags.Static)) == BindingFlags.Static && !method.
Signature
.IsStatic)
159
if ((bindingFlags & (BindingFlags.Instance | BindingFlags.Static)) == BindingFlags.Instance && method.
Signature
.IsStatic)
202
if ((bindingFlags & (BindingFlags.Instance | BindingFlags.Static)) == BindingFlags.Static && !method.
Signature
.IsStatic)
205
if ((bindingFlags & (BindingFlags.Instance | BindingFlags.Static)) == BindingFlags.Instance && method.
Signature
.IsStatic)
parent\parent\Common\Compiler\Dataflow\EcmaExtensions.cs (7)
73
if (!method.
Signature
.IsStatic)
83
if (!method.
Signature
[index].IsByRef)
121
int implicitThisOffset = !method.
Signature
.IsStatic ? 1 : 0;
122
return new ParameterProxyEnumerable(implicitThisOffset, method.
Signature
.Length + implicitThisOffset, method);
128
public static int GetMetadataParametersCount(this MethodDesc method) => method.
Signature
.Length;
139
=> method.
Signature
.Length + (method.
Signature
.IsStatic ? 0 : 1);
parent\parent\Common\Compiler\Dataflow\MethodProxy.cs (3)
71
internal partial bool IsStatic() => Method.
Signature
.IsStatic;
73
internal partial bool HasImplicitThis() => !Method.
Signature
.IsStatic;
75
internal partial bool ReturnsVoid() => Method.
Signature
.ReturnType.IsVoid;
parent\parent\Common\Compiler\Dataflow\ParameterProxy.cs (1)
18
: Method.Method.
Signature
[MetadataIndex].InstantiateSignature (Method.Method.OwningType.Instantiation, Method.Method.Instantiation);
parent\parent\Common\Compiler\DependencyAnalysis\GVMDependenciesNode.cs (2)
144
MethodDesc slotDecl = interfaceMethod.
Signature
.IsStatic ?
173
if (implementingMethodInstantiation.
Signature
.IsStatic)
parent\parent\Common\Compiler\DependencyAnalysis\INodeWithTypeSignature.cs (1)
17
MethodSignature INodeWithTypeSignature.Signature => Method.
Signature
;
parent\parent\Common\Compiler\DisplayNameHelpers.cs (5)
88
if (method.
Signature
.Length > 0)
90
for (int i = 0; i < method.
Signature
.Length - 1; i++)
92
TypeDesc instantiatedType = method.
Signature
[i].InstantiateSignature(method.OwningType.Instantiation, method.Instantiation);
96
sb.Append(method.
Signature
[method.
Signature
.Length - 1].GetDisplayNameWithoutNamespace());
parent\parent\Common\Compiler\MethodExtensions.cs (3)
119
if (method.
Signature
.IsStatic)
149
return !method.
Signature
.IsStatic && /* Static methods don't have this */
203
public static bool IsAsyncCall(this MethodDesc method) => method.IsAsyncVariant() || method.IsReturnDroppingAsyncThunk() || (method.IsAsync && !method.
Signature
.ReturnsTaskOrValueTask());
parent\parent\Common\Compiler\ObjectWriter\OutputInfoBuilder.cs (4)
239
if (!method.
Signature
.ReturnType.IsVoid)
241
output.Append(typeNameFormatter.FormatName(method.
Signature
.ReturnType));
248
for (int paramIndex = 0; paramIndex < method.
Signature
.Length; paramIndex++)
254
output.Append(typeNameFormatter.FormatName(method.
Signature
[paramIndex]));
parent\parent\Common\Compiler\ProcessLinkerXmlBase.cs (3)
534
formatter.AppendName(sb, meth.
Signature
.ReturnType);
544
for (int i = 0; i < meth.
Signature
.Length; i++)
549
formatter.AppendName(sb, meth.
Signature
[i]);
parent\parent\Common\Compiler\TypeExtensions.cs (6)
46
(method.HasInstantiation || method.
Signature
.IsStatic || method.ImplementationType.IsValueType || (method.ImplementationType.IsInterface && !method.IsAbstract));
64
return (method.
Signature
.IsStatic || method.ImplementationType.IsValueType || (method.ImplementationType.IsInterface && !method.IsAbstract)) &&
76
!method.
Signature
.IsStatic &&
430
if (interfaceMethod.
Signature
.IsStatic)
641
Debug.Assert(method.
Signature
.IsStatic);
759
if (method.
Signature
.IsStatic)
parent\parent\Common\JitInterface\WasmLowering.cs (1)
576
return GetSignature(method.
Signature
, GetLoweringFlags(method));
parent\parent\Common\TypeSystem\IL\DelegateInfo.cs (1)
74
return InvokeMethod.
Signature
;
parent\parent\Common\TypeSystem\IL\HelperExtensions.cs (2)
57
Debug.Assert(method.
Signature
.Length == 0 && method.
Signature
.IsStatic);
parent\parent\Common\TypeSystem\IL\NativeAotILProvider.cs (1)
108
if (method.Name == "CreateInstance"u8 && method.
Signature
.Length == 0 && method.HasInstantiation
parent\parent\Common\TypeSystem\IL\Stubs\AsyncResumptionStub.cs (5)
59
if (!_targetMethod.
Signature
.IsStatic)
82
foreach (var param in _targetMethod.
Signature
)
100
bool returnsVoid = _targetMethod.
Signature
.ReturnType.IsVoid;
104
resultLocal = ilEmitter.NewLocal(_targetMethod.
Signature
.ReturnType);
122
ilStream.Emit(ILOpcode.stobj, ilEmitter.NewToken(_targetMethod.
Signature
.ReturnType));
parent\parent\Common\TypeSystem\IL\Stubs\AsyncThunks.cs (2)
25
MethodSignature sig = taskReturningMethod.
Signature
;
273
MethodSignature sig = returnDroppingMethod.
Signature
;
parent\parent\Common\TypeSystem\IL\Stubs\DelegateMarshallingMethodThunk.cs (3)
131
_signature = _invokeMethod.
Signature
;
146
MethodSignature delegateSignature = _invokeMethod.
Signature
;
230
return _invokeMethod.
Signature
;
parent\parent\Common\TypeSystem\IL\Stubs\DelegateMethodILEmitter.cs (4)
58
MethodSignature signature = method.
Signature
;
83
TypeDesc[] parameters = new TypeDesc[method.
Signature
.Length];
86
parameters[i] = method.
Signature
[i].ReplaceTypesInConstructionOfType(typesToReplace, replacementTypes);
88
TypeDesc returnType = method.
Signature
.ReturnType.ReplaceTypesInConstructionOfType(typesToReplace, replacementTypes);
parent\parent\Common\TypeSystem\IL\Stubs\DelegateThunks.cs (2)
159
if (!_delegateInfo.Thunks.SignatureSupportsOpenInstanceThunks(specializedMethod.
Signature
))
494
if (!_delegateInfo.Thunks.SignatureSupportsObjectArrayThunk(specializedMethod.
Signature
))
parent\parent\Common\TypeSystem\IL\Stubs\GetCanonTypeIntrinsic.cs (2)
18
Debug.Assert(target.
Signature
.Length == 0);
25
Debug.Assert(target.
Signature
.ReturnType == runtimeTypeHandleType);
parent\parent\Common\TypeSystem\IL\Stubs\PInvokeILEmitter.cs (4)
66
methodSig = targetMethod.
Signature
;
268
bool isHRSwappedRetVal = !_flags.PreserveSig && !_targetMethod.
Signature
.ReturnType.IsVoid;
325
_targetMethod.
Signature
.Flags, 0, nativeReturnType, nativeParameterTypes);
396
bool isHRSwappedRetVal = !_flags.PreserveSig && !_targetMethod.
Signature
.ReturnType.IsVoid;
parent\parent\Common\TypeSystem\IL\Stubs\TypeGetTypeMethodThunk.cs (8)
75
Debug.Assert(Signature[0] == _helperMethod.
Signature
[0]);
78
Debug.Assert(_helperMethod.
Signature
[1].IsString);
81
for (int i = 2; i < _helperMethod.
Signature
.Length; i++)
92
Debug.Assert(_helperMethod.
Signature
[i] == Signature[i - 1]);
98
Debug.Assert(_helperMethod.
Signature
[i].IsWellKnownType(WellKnownType.Boolean));
149
return key.DefaultAssemblyName.GetHashCode() ^ key.GetTypeOverload.
Signature
.GetHashCode();
158
key.GetTypeOverload.
Signature
.Equals(value.Signature);
176
MethodSignature signature = key.GetTypeOverload.
Signature
;
parent\parent\Common\TypeSystem\IL\Stubs\TypeSystemThrowingILEmitter.cs (3)
34
if (helper.
Signature
.Length != exception.Arguments.Count + 1)
60
if (helper.
Signature
.Length != exception.Arguments.Count + 1)
78
Debug.Assert(helper.
Signature
.Length == exception.Arguments.Count + 1);
parent\parent\Common\TypeSystem\IL\Stubs\UnsafeIntrinsics.cs (10)
101
Debug.Assert(method.
Signature
.IsStatic && method.
Signature
.Length == 2);
119
Debug.Assert(method.
Signature
.IsStatic && method.
Signature
.Length == 2);
139
Debug.Assert(method.
Signature
.IsStatic && method.
Signature
.Length == (write ? 2 : 1));
157
Debug.Assert(method.
Signature
.IsStatic && method.
Signature
.Length == 2);
212
Debug.Assert(method.
Signature
.IsStatic && method.
Signature
.Length == 1);
parent\parent\Common\TypeSystem\Interop\IL\Marshaller.cs (1)
450
targetMethod.
Signature
,
parent\parent\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (1)
320
var sig = method.GetTypicalMethodDefinition().
Signature
;
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.cs (3)
292
|| interfaceMethod.
Signature
.Length != method.Signature.Length
293
|| interfaceMethod.
Signature
.IsStatic != method.Signature.IsStatic)
296
MethodDesc impl = interfaceMethod.
Signature
.IsStatic ?
ILCompiler.MetadataTransform (4)
ILCompiler\Metadata\Transform.CustomAttribute.cs (1)
53
Cts.MethodSignature sig = constructor.
Signature
;
ILCompiler\Metadata\Transform.Method.cs (3)
79
Cts.MethodSignature sig = entity.
Signature
;
82
: HandleMethodSignature(entity.
Signature
);
140
record.Signature = HandleMethodSignature(entity.GetTypicalMethodDefinition().
Signature
);
ILCompiler.ReadyToRun (137)
Compiler\DependencyAnalysis\InheritedVirtualMethodsNode.cs (1)
99
if (interfaceMethod.HasInstantiation || interfaceMethod.
Signature
.IsStatic)
Compiler\DependencyAnalysis\ReadyToRun\CopiedMethodILNode.cs (1)
83
if (method.GetTypicalMethodDefinition().
Signature
.ReturnsTaskOrValueTask())
Compiler\DependencyAnalysis\ReadyToRun\DelegateCtorSignature.cs (1)
46
if (_targetMethod.Method.IsVirtual && _targetMethod.Method.
Signature
.IsStatic)
Compiler\DependencyAnalysis\ReadyToRun\GCRefMapBuilder.cs (2)
126
(ArgIterator<TypeHandle> argit, TransitionBlock transitionBlock) = BuildArgIterator(method.
Signature
, method.Context,
220
GcScanRoots(method.
Signature
[argIndex], in argDest, delta: 0, frame, topLevel: true);
Compiler\DependencyAnalysis\ReadyToRun\TypeValidationChecker.cs (6)
382
if (!methodBody.
Signature
.ApplySubstitution(type.Instantiation).EquivalentWithCovariantReturnType(methodDecl.
Signature
.ApplySubstitution(type.Instantiation)))
400
bool isStatic = methodBody.
Signature
.IsStatic;
441
bool staticInterfaceMethod = interfaceMethod.
Signature
.IsStatic;
507
if (!implementationMethod.
Signature
.ApplySubstitution(type.Instantiation).EquivalentWithCovariantReturnType(implementationOnBaseType.
Signature
.ApplySubstitution(type.Instantiation)))
Compiler\DependencyAnalysis\ReadyToRun\WasmImportThunkPortableEntrypoint.cs (1)
111
MethodSignature signature = method.
Signature
;
Compiler\DependencyAnalysis\ReadyToRunCodegenNodeFactory.cs (2)
166
&& !method.
Signature
.IsStatic
197
WasmSignature signature = WasmLowering.GetSignature(thunk.
Signature
, WasmLowering.LoweringFlags.None);
Compiler\ProfileDataManager.cs (5)
202
if (targetMeth.
Signature
.IsStatic || !targetMeth.IsTypicalMethodDefinition)
215
entities = SampleMethodsCompatibleWithDelegateInvocation(targetMeth.
Signature
, rand);
430
if (!method.
Signature
.IsStatic && !method.IsAbstract && !method.IsGenericMethodDefinition)
434
if (!delegateTargets.TryGetValue(method.
Signature
, out HashSet<MethodDesc> set))
435
delegateTargets.Add(method.
Signature
, set = new HashSet<MethodDesc>());
Compiler\ReadyToRunLibraryRootProvider.cs (1)
90
MethodSignature signature = method.
Signature
;
Compiler\RuntimeDeterminedTypeHelper.cs (7)
106
method1.
Signature
.Length != method2.
Signature
.Length ||
108
!Equals(method1.
Signature
.ReturnType, method2.
Signature
.ReturnType))
112
for (int argIndex = 0; argIndex < method1.
Signature
.Length; argIndex++)
114
if (!Equals(method1.
Signature
[argIndex], method2.
Signature
[argIndex]))
IL\ReadyToRunILProvider.cs (4)
54
&& method.
Signature
.Length == 0
61
MethodDesc createDefaultInstance = method.OwningType.GetKnownMethod("CreateDefaultInstance"u8, method.GetTypicalMethodDefinition().
Signature
);
189
if (method.
Signature
.ReturnsTaskOrValueTask())
201
if (method.
Signature
.ReturnsTaskOrValueTask())
IL\Stubs\PInvokeILEmitter.cs (1)
52
_targetMethod.
Signature
.Flags, 0, nativeReturnType,
JitInterface\CorInfoImpl.ReadyToRun.cs (12)
769
if (ShouldSkipCompilation(compilation.InstructionSetSupport, method) || MethodSignatureIsUnstable(method.
Signature
, out var _))
799
if (MethodSignatureIsUnstable(MethodBeingCompiled.
Signature
, out var _))
1980
bool isStaticVirtual = (originalMethod.
Signature
.IsStatic && originalMethod.IsVirtual);
1985
if (originalMethod.
Signature
.IsStatic && isCallVirt)
2061
Debug.Assert(!methodAfterConstraintResolution.OwningType.IsInterface || (isStaticVirtual && methodAfterConstraintResolution.
Signature
.IsStatic));
2137
else if (targetMethod.
Signature
.IsStatic)
2410
foreach (TypeDesc type in method.
Signature
)
2455
if (MethodSignatureIsUnstable(method.
Signature
, out string unstableMessage))
2537
ValidateSafetyOfUsingTypeEquivalenceInSignature(targetMethod.GetTypicalMethodDefinition().
Signature
);
2564
VerifyMethodSignatureIsStable(targetMethod.
Signature
);
2629
VerifyMethodSignatureIsStable(targetMethod.
Signature
);
3058
if ((td.IsValueType) && !md.
Signature
.IsStatic
parent\parent\Common\Compiler\AsyncMethodVariant.cs (1)
36
var signature = _wrappedMethod.
Signature
;
parent\parent\Common\Compiler\CompilerTypeSystemContext.Async.cs (6)
39
Debug.Assert(originalMethod.
Signature
.ReturnsTaskOrValueTask());
40
Debug.Assert(resolvedMethod.
Signature
.ReturnsTaskOrValueTask());
46
if (!originalMethod.
Signature
.ReturnType.HasInstantiation
47
&& !asyncVariant.
Signature
.ReturnType.IsVoid)
193
Debug.Assert(taskReturningMethod.
Signature
.ReturnsTaskOrValueTask());
244
Debug.Assert(!asyncVariantMethod.
Signature
.ReturnType.IsVoid);
parent\parent\Common\Compiler\CompilerTypeSystemContext.BoxedTypes.cs (7)
57
Debug.Assert(!targetMethod.
Signature
.IsStatic);
383
Debug.Assert(!targetMethod.
Signature
.IsStatic);
393
public override MethodSignature Signature => _targetMethod.
Signature
;
458
for (int i = 0; i < _targetMethod.
Signature
.Length; i++)
496
Debug.Assert(!targetMethod.
Signature
.IsStatic);
506
public override MethodSignature Signature => _targetMethod.
Signature
;
565
for (int i = 0; i < _targetMethod.
Signature
.Length; i++)
parent\parent\Common\Compiler\CompilerTypeSystemContext.Validation.cs (1)
227
MethodSignature sig = method.
Signature
;
parent\parent\Common\Compiler\Dataflow\DynamicallyAccessedMembersBinder.cs (4)
156
if ((bindingFlags & (BindingFlags.Instance | BindingFlags.Static)) == BindingFlags.Static && !method.
Signature
.IsStatic)
159
if ((bindingFlags & (BindingFlags.Instance | BindingFlags.Static)) == BindingFlags.Instance && method.
Signature
.IsStatic)
202
if ((bindingFlags & (BindingFlags.Instance | BindingFlags.Static)) == BindingFlags.Static && !method.
Signature
.IsStatic)
205
if ((bindingFlags & (BindingFlags.Instance | BindingFlags.Static)) == BindingFlags.Instance && method.
Signature
.IsStatic)
parent\parent\Common\Compiler\Dataflow\EcmaExtensions.cs (7)
73
if (!method.
Signature
.IsStatic)
83
if (!method.
Signature
[index].IsByRef)
121
int implicitThisOffset = !method.
Signature
.IsStatic ? 1 : 0;
122
return new ParameterProxyEnumerable(implicitThisOffset, method.
Signature
.Length + implicitThisOffset, method);
128
public static int GetMetadataParametersCount(this MethodDesc method) => method.
Signature
.Length;
139
=> method.
Signature
.Length + (method.
Signature
.IsStatic ? 0 : 1);
parent\parent\Common\Compiler\Dataflow\MethodProxy.cs (3)
71
internal partial bool IsStatic() => Method.
Signature
.IsStatic;
73
internal partial bool HasImplicitThis() => !Method.
Signature
.IsStatic;
75
internal partial bool ReturnsVoid() => Method.
Signature
.ReturnType.IsVoid;
parent\parent\Common\Compiler\Dataflow\ParameterProxy.cs (1)
18
: Method.Method.
Signature
[MetadataIndex].InstantiateSignature (Method.Method.OwningType.Instantiation, Method.Method.Instantiation);
parent\parent\Common\Compiler\DependencyAnalysis\GVMDependenciesNode.cs (2)
144
MethodDesc slotDecl = interfaceMethod.
Signature
.IsStatic ?
173
if (implementingMethodInstantiation.
Signature
.IsStatic)
parent\parent\Common\Compiler\DependencyAnalysis\INodeWithTypeSignature.cs (1)
17
MethodSignature INodeWithTypeSignature.Signature => Method.
Signature
;
parent\parent\Common\Compiler\DisplayNameHelpers.cs (5)
88
if (method.
Signature
.Length > 0)
90
for (int i = 0; i < method.
Signature
.Length - 1; i++)
92
TypeDesc instantiatedType = method.
Signature
[i].InstantiateSignature(method.OwningType.Instantiation, method.Instantiation);
96
sb.Append(method.
Signature
[method.
Signature
.Length - 1].GetDisplayNameWithoutNamespace());
parent\parent\Common\Compiler\MethodExtensions.cs (2)
149
return !method.
Signature
.IsStatic && /* Static methods don't have this */
203
public static bool IsAsyncCall(this MethodDesc method) => method.IsAsyncVariant() || method.IsReturnDroppingAsyncThunk() || (method.IsAsync && !method.
Signature
.ReturnsTaskOrValueTask());
parent\parent\Common\Compiler\ObjectWriter\OutputInfoBuilder.cs (4)
239
if (!method.
Signature
.ReturnType.IsVoid)
241
output.Append(typeNameFormatter.FormatName(method.
Signature
.ReturnType));
248
for (int paramIndex = 0; paramIndex < method.
Signature
.Length; paramIndex++)
254
output.Append(typeNameFormatter.FormatName(method.
Signature
[paramIndex]));
parent\parent\Common\Compiler\ProcessLinkerXmlBase.cs (3)
534
formatter.AppendName(sb, meth.
Signature
.ReturnType);
544
for (int i = 0; i < meth.
Signature
.Length; i++)
549
formatter.AppendName(sb, meth.
Signature
[i]);
parent\parent\Common\Compiler\TypeExtensions.cs (6)
46
(method.HasInstantiation || method.
Signature
.IsStatic || method.ImplementationType.IsValueType || (method.ImplementationType.IsInterface && !method.IsAbstract));
64
return (method.
Signature
.IsStatic || method.ImplementationType.IsValueType || (method.ImplementationType.IsInterface && !method.IsAbstract)) &&
76
!method.
Signature
.IsStatic &&
430
if (interfaceMethod.
Signature
.IsStatic)
641
Debug.Assert(method.
Signature
.IsStatic);
759
if (method.
Signature
.IsStatic)
parent\parent\Common\JitInterface\CorInfoImpl.cs (13)
883
Get_CORINFO_SIG_INFO(method.
Signature
, sig, scope);
1115
Debug.Assert(!method.
Signature
.IsStatic);
1145
if (method.
Signature
.IsStatic)
1784
if ((methodDesc.
Signature
.Flags & MethodSignatureFlags.UnmanagedCallingConventionMask) == 0)
1798
callingConventions = methodDesc.
Signature
.GetStandaloneMethodSignatureCallingConventions();
2037
ValidateSafetyOfUsingTypeEquivalenceInSignature(method.
Signature
);
2123
if (!method.GetTypicalMethodDefinition().
Signature
.ReturnsTaskOrValueTask())
2939
if (md.
Signature
.IsStatic)
3704
TypeDesc taskReturnType = taskReturningMethod.
Signature
.ReturnType;
3710
TypeDesc returnType = caller.
Signature
.ReturnType;
3712
TypeDesc runtimeDeterminedReturnType = runtimeDeterminedCaller.
Signature
.ReturnType;
4880
if (!isFallbackBodyCompilation && !this.MethodBeingCompiled.
Signature
.IsStatic) // Must be a static method
4895
if (!isFallbackBodyCompilation && MarshalHelpers.IsMarshallingRequired(this.MethodBeingCompiled.
Signature
, ((MetadataType)this.MethodBeingCompiled.OwningType).Module)) // Only blittable arguments
parent\parent\Common\JitInterface\UnboxingMethodDesc.cs (1)
26
Debug.Assert(!wrappedMethod.
Signature
.IsStatic);
parent\parent\Common\JitInterface\WasmLowering.cs (1)
576
return GetSignature(method.
Signature
, GetLoweringFlags(method));
parent\parent\Common\TypeSystem\IL\HelperExtensions.cs (2)
57
Debug.Assert(method.
Signature
.Length == 0 && method.
Signature
.IsStatic);
parent\parent\Common\TypeSystem\IL\Stubs\AsyncResumptionStub.cs (5)
59
if (!_targetMethod.
Signature
.IsStatic)
82
foreach (var param in _targetMethod.
Signature
)
100
bool returnsVoid = _targetMethod.
Signature
.ReturnType.IsVoid;
104
resultLocal = ilEmitter.NewLocal(_targetMethod.
Signature
.ReturnType);
122
ilStream.Emit(ILOpcode.stobj, ilEmitter.NewToken(_targetMethod.
Signature
.ReturnType));
parent\parent\Common\TypeSystem\IL\Stubs\AsyncThunks.cs (2)
25
MethodSignature sig = taskReturningMethod.
Signature
;
273
MethodSignature sig = returnDroppingMethod.
Signature
;
parent\parent\Common\TypeSystem\IL\Stubs\UnsafeIntrinsics.cs (10)
101
Debug.Assert(method.
Signature
.IsStatic && method.
Signature
.Length == 2);
119
Debug.Assert(method.
Signature
.IsStatic && method.
Signature
.Length == 2);
139
Debug.Assert(method.
Signature
.IsStatic && method.
Signature
.Length == (write ? 2 : 1));
157
Debug.Assert(method.
Signature
.IsStatic && method.
Signature
.Length == 2);
212
Debug.Assert(method.
Signature
.IsStatic && method.
Signature
.Length == 1);
parent\parent\Common\TypeSystem\Interop\IL\Marshaller.cs (1)
450
targetMethod.
Signature
,
parent\parent\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (1)
320
var sig = method.GetTypicalMethodDefinition().
Signature
;
PortableCallHelpers\InteropSignature.cs (1)
46
=> WasmLowering.GetSignature(method.
Signature
, flags).SignatureString;
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.cs (3)
292
|| interfaceMethod.
Signature
.Length != method.Signature.Length
293
|| interfaceMethod.
Signature
.IsStatic != method.Signature.IsStatic)
296
MethodDesc impl = interfaceMethod.
Signature
.IsStatic ?
ILCompiler.RyuJit (30)
Compiler\DependencyAnalysis\MethodCodeNode.cs (2)
189
MethodSignature sig = _method.
Signature
;
233
varType = _method.
Signature
[(int)varInfo.VarNumber - offset];
Compiler\DependencyAnalysis\RyuJitNodeFactory.cs (1)
55
Debug.Assert(!method.
Signature
.IsStatic);
JitInterface\CorInfoImpl.RyuJit.cs (9)
403
Debug.Assert(targetMethod.IsVirtual && targetMethod.
Signature
.IsStatic
426
Debug.Assert(directMethod.OwningType.IsValueType || directMethod.
Signature
.IsStatic);
979
MethodSignature sig = methodIL.OwningMethod.
Signature
;
1214
if (method.
Signature
.IsStatic && (flags & CORINFO_CALLINFO_FLAGS.CORINFO_CALLINFO_CALLVIRT) != 0)
1268
|| methodAfterConstraintResolution.
Signature
.IsStatic);
1276
else if (method.
Signature
.IsStatic)
1333
if (targetMethod.
Signature
.IsStatic)
1389
pResult->nullInstanceCheck = !targetMethod.
Signature
.IsStatic;
1561
else if (targetMethod.
Signature
.IsStatic)
parent\parent\Common\JitInterface\CorInfoImpl.cs (12)
883
Get_CORINFO_SIG_INFO(method.
Signature
, sig, scope);
1115
Debug.Assert(!method.
Signature
.IsStatic);
1145
if (method.
Signature
.IsStatic)
1784
if ((methodDesc.
Signature
.Flags & MethodSignatureFlags.UnmanagedCallingConventionMask) == 0)
1798
callingConventions = methodDesc.
Signature
.GetStandaloneMethodSignatureCallingConventions();
2123
if (!method.GetTypicalMethodDefinition().
Signature
.ReturnsTaskOrValueTask())
2939
if (md.
Signature
.IsStatic)
3704
TypeDesc taskReturnType = taskReturningMethod.
Signature
.ReturnType;
3710
TypeDesc returnType = caller.
Signature
.ReturnType;
3712
TypeDesc runtimeDeterminedReturnType = runtimeDeterminedCaller.
Signature
.ReturnType;
4880
if (!isFallbackBodyCompilation && !this.MethodBeingCompiled.
Signature
.IsStatic) // Must be a static method
4895
if (!isFallbackBodyCompilation && MarshalHelpers.IsMarshallingRequired(this.MethodBeingCompiled.
Signature
, ((MetadataType)this.MethodBeingCompiled.OwningType).Module)) // Only blittable arguments
parent\parent\Common\JitInterface\UnboxingMethodDesc.cs (1)
26
Debug.Assert(!wrappedMethod.
Signature
.IsStatic);
parent\parent\Common\TypeSystem\IL\HelperExtensions.cs (2)
57
Debug.Assert(method.
Signature
.Length == 0 && method.
Signature
.IsStatic);
parent\parent\Common\TypeSystem\IL\Stubs\TypeSystemThrowingILEmitter.cs (3)
34
if (helper.
Signature
.Length != exception.Arguments.Count + 1)
60
if (helper.
Signature
.Length != exception.Arguments.Count + 1)
78
Debug.Assert(helper.
Signature
.Length == exception.Arguments.Count + 1);
ILCompiler.TypeSystem (34)
parent\parent\Common\TypeSystem\Common\CastingHelper.TypeEquivalence.cs (2)
191
return invoke1.
Signature
.EquivalentTo(invoke2.
Signature
, visited);
parent\parent\Common\TypeSystem\Common\InstantiatedMethod.cs (1)
69
MethodSignature template = _methodDef.
Signature
;
parent\parent\Common\TypeSystem\Common\MetadataVirtualMethodAlgorithm.cs (12)
384
MethodSignature sig = targetMethod.
Signature
;
392
if (candidate.
Signature
.EquivalentTo(sig))
398
if (candidate.
Signature
.Equals(sig))
588
if (implSlot.
Signature
.EquivalentWithCovariantReturnType(unificationGroup.DefiningMethod.
Signature
))
609
(addDeclGroup.RequiresSlotUnification(declSlot) && addDeclGroup.DefiningMethod.
Signature
.EquivalentWithCovariantReturnType(declSlot.
Signature
)));
643
if (implSlot.
Signature
.EquivalentWithCovariantReturnType(unificationGroup.DefiningMethod.
Signature
))
700
Debug.Assert(!interfaceMethod.
Signature
.IsStatic);
773
Debug.Assert(!interfaceMethod.
Signature
.IsStatic);
1195
Debug.Assert(interfaceMethod.
Signature
.IsStatic);
parent\parent\Common\TypeSystem\Common\MethodDelegator.cs (1)
26
public override MethodSignature Signature => _wrappedMethod.
Signature
;
parent\parent\Common\TypeSystem\Common\MethodDesc.ToString.cs (1)
73
sb.Append(
Signature
.ToString(includeReturnType: false));
parent\parent\Common\TypeSystem\Common\MethodForInstantiatedType.cs (1)
62
MethodSignature template = _typicalMethodDef.
Signature
;
parent\parent\Common\TypeSystem\Common\ThrowHelper.Common.cs (1)
94
return Method(method.OwningType, method.GetName(), method.
Signature
);
parent\parent\Common\TypeSystem\Common\TypeDesc.cs (2)
543
if (signature == null || signature.Equals(method.
Signature
.ApplySubstitution(substitution)))
556
if (signature == null || signature.EquivalentTo(method.
Signature
.ApplySubstitution(substitution)))
parent\parent\Common\TypeSystem\Common\TypeDesc.TypeEquivalence.cs (1)
135
if (!method.
Signature
.IsStatic)
parent\parent\Common\TypeSystem\IL\HelperExtensions.cs (2)
57
Debug.Assert(method.
Signature
.Length == 0 && method.
Signature
.IsStatic);
parent\parent\Common\TypeSystem\IL\ILDisassembler.cs (1)
84
MethodSignature signature = method.GetMethodDefinition().
Signature
;
parent\parent\Common\TypeSystem\IL\ILStackHelper.cs (2)
255
methodSignature : ((MethodDesc)obj).
Signature
;
278
bool hasReturnValue = !methodIL.OwningMethod.
Signature
.ReturnType.IsVoid;
parent\parent\Common\TypeSystem\IL\MethodILDebugView.cs (4)
33
if (!owningMethod.
Signature
.IsStatic)
35
disasm.AppendType(sb, owningMethod.
Signature
.ReturnType);
50
for (int i = 0; i < owningMethod.
Signature
.Length; i++)
54
disasm.AppendType(sb, owningMethod.
Signature
[i]);
parent\parent\Common\TypeSystem\IL\UnsafeAccessors.cs (2)
256
MethodSignature maybeSig = method.
Signature
;
437
if (context.IsTargetStatic != md.
Signature
.IsStatic)
parent\parent\Common\TypeSystem\RuntimeDetermined\MethodForRuntimeDeterminedType.cs (1)
35
public override MethodSignature Signature => _typicalMethodDef.
Signature
;