26 references to Method
illink (26)
Linker.Dataflow\InterproceduralState.cs (1)
63
if (CompilerGeneratedState.TryGetStateMachineType(methodIL.
Method
, out TypeDefinition? stateMachineType))
Linker.Dataflow\MethodBodyScanner.cs (6)
205
$"""In method {method.
Method
.FullName}, local variable V_{localVariable.Index} references {displayName} of type {localReference.ReferencedType.GetDisplayName()} which is a reference. Dataflow tracking has failed.""",
207
origin: new MessageOrigin(method.
Method
, ilOffset)));
250
MethodDefinition startingMethod = startingMethodIL.
Method
;
795
ParameterIndex paramNum = ParameterHelpers.GetParameterIndex(methodIL.
Method
, operation);
796
ParameterProxy param = new(methodIL.
Method
, paramNum);
945
origin: new MessageOrigin(methodIL.
Method
, operation.Offset)));
Linker.Dataflow\ReflectionMethodBodyScanner.cs (3)
73
_origin = new MessageOrigin(methodIL.
Method
);
96
protected override MethodReturnValue GetReturnValue(MethodIL methodIL) => _annotations.GetMethodReturnValue(methodIL.
Method
, isNewObj: false);
124
Debug.Assert(callingMethodIL.
Method
== _origin.Provider);
Linker.Steps\MarkStep.cs (15)
3807
if (ReflectionMethodBodyScanner.RequiresReflectionMethodBodyScannerForMethodBody(Context, methodIL.
Method
))
3835
if (!Annotations.IsProcessed(methodIL.
Method
))
3837
Debug.Assert(CompilerGeneratedState.IsNestedFunctionOrStateMachineMember(methodIL.
Method
));
3838
MethodDefinition owningMethod = methodIL.
Method
;
3841
Debug.Assert(owningMethod != methodIL.
Method
);
3852
MarkType(var.VariableType, new DependencyInfo(DependencyKind.VariableType, methodIL.
Method
), origin);
3856
MarkType(eh.CatchType, new DependencyInfo(DependencyKind.CatchType, methodIL.
Method
), origin);
3859
ReflectionMethodBodyScanner.RequiresReflectionMethodBodyScannerForMethodBody(Context, methodIL.
Method
);
3860
MessageOrigin ilOrigin = new MessageOrigin(methodIL.
Method
);
3862
MarkInstruction(instruction, methodIL.
Method
, ref requiresReflectionMethodBodyScanner, ref ilOrigin);
3866
if (CompilerGeneratedState.IsNestedFunctionOrStateMachineMember(methodIL.
Method
))
3877
return !methodIL.
Method
.IsStatic
3878
&& !Annotations.IsInstantiated(methodIL.
Method
.DeclaringType)
4052
Debug.Assert(!CompilerGeneratedState.IsNestedFunctionOrStateMachineMember(methodIL.
Method
));
4057
if (Context.CompilerGeneratedState.TryGetCompilerGeneratedCalleesForUserMethod(methodIL.
Method
, out List<IMemberDefinition>? compilerGeneratedCallees))
Linker\MethodBodyScanner.cs (1)
110
foreach (var param in methodIL.
Method
.GetParameters())