27 references to Method
illink (27)
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
;
805
ParameterIndex paramNum = ParameterHelpers.GetParameterIndex(methodIL.
Method
, operation);
806
ParameterProxy param = new(methodIL.
Method
, paramNum);
966
origin: new MessageOrigin(methodIL.
Method
, operation.Offset)));
Linker.Dataflow\ReflectionMethodBodyScanner.cs (3)
89
_origin = new MessageOrigin(methodIL.
Method
);
116
protected override MethodReturnValue GetReturnValue(MethodIL methodIL) => _annotations.GetMethodReturnValue(methodIL.
Method
, isNewObj: false);
169
Debug.Assert(callingMethodIL.
Method
== _origin.Provider);
Linker.Steps\MarkStep.cs (16)
3807
if (ReflectionMethodBodyScanner.RequiresReflectionMethodBodyScannerForMethodBody(Context, methodIL.
Method
))
3858
if (!Annotations.IsProcessed(methodIL.
Method
))
3860
Debug.Assert(CompilerGeneratedState.IsNestedFunctionOrStateMachineMember(methodIL.
Method
));
3861
MethodDefinition owningMethod = methodIL.
Method
;
3864
Debug.Assert(owningMethod != methodIL.
Method
);
3875
MarkType(var.VariableType, new DependencyInfo(DependencyKind.VariableType, methodIL.
Method
), origin);
3879
MarkType(eh.CatchType, new DependencyInfo(DependencyKind.CatchType, methodIL.
Method
), origin);
3882
ReflectionMethodBodyScanner.RequiresReflectionMethodBodyScannerForMethodBody(Context, methodIL.
Method
);
3883
MessageOrigin ilOrigin = new MessageOrigin(methodIL.
Method
);
3885
MarkInstruction(instruction, methodIL.
Method
, ref requiresReflectionMethodBodyScanner, ref ilOrigin);
3889
if (CompilerGeneratedState.IsNestedFunctionOrStateMachineMember(methodIL.
Method
))
3894
Debug.Assert(requiresReflectionMethodBodyScanner == CheckRequiresReflectionMethodBodyScanner(methodIL), $"Inconsistent result for {nameof(requiresReflectionMethodBodyScanner)} for method {methodIL.
Method
.GetDisplayName()}");
3900
return !methodIL.
Method
.IsStatic
3901
&& !Annotations.IsInstantiated(methodIL.
Method
.DeclaringType)
4095
Debug.Assert(!CompilerGeneratedState.IsNestedFunctionOrStateMachineMember(methodIL.
Method
));
4100
if (Context.CompilerGeneratedState.TryGetCompilerGeneratedCalleesForUserMethod(methodIL.
Method
, out List<IMemberDefinition>? compilerGeneratedCallees))
Linker\MethodBodyScanner.cs (1)
110
foreach (var param in methodIL.
Method
.GetParameters())