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
;
804
ParameterIndex paramNum = ParameterHelpers.GetParameterIndex(methodIL.
Method
, operation);
805
ParameterProxy param = new(methodIL.
Method
, paramNum);
965
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)
3814
if (ReflectionMethodBodyScanner.RequiresReflectionMethodBodyScannerForMethodBody(Context, methodIL.
Method
))
3865
if (!Annotations.IsProcessed(methodIL.
Method
))
3867
Debug.Assert(CompilerGeneratedState.IsNestedFunctionOrStateMachineMember(methodIL.
Method
));
3868
MethodDefinition owningMethod = methodIL.
Method
;
3871
Debug.Assert(owningMethod != methodIL.
Method
);
3882
MarkType(var.VariableType, new DependencyInfo(DependencyKind.VariableType, methodIL.
Method
), origin);
3886
MarkType(eh.CatchType, new DependencyInfo(DependencyKind.CatchType, methodIL.
Method
), origin);
3889
ReflectionMethodBodyScanner.RequiresReflectionMethodBodyScannerForMethodBody(Context, methodIL.
Method
);
3890
MessageOrigin ilOrigin = new MessageOrigin(methodIL.
Method
);
3892
MarkInstruction(instruction, methodIL.
Method
, ref requiresReflectionMethodBodyScanner, ref ilOrigin);
3896
if (CompilerGeneratedState.IsNestedFunctionOrStateMachineMember(methodIL.
Method
))
3901
Debug.Assert(requiresReflectionMethodBodyScanner == CheckRequiresReflectionMethodBodyScanner(methodIL), $"Inconsistent result for {nameof(requiresReflectionMethodBodyScanner)} for method {methodIL.
Method
.GetDisplayName()}");
3907
return !methodIL.
Method
.IsStatic
3908
&& !Annotations.IsInstantiated(methodIL.
Method
.DeclaringType)
4102
Debug.Assert(!CompilerGeneratedState.IsNestedFunctionOrStateMachineMember(methodIL.
Method
));
4107
if (Context.CompilerGeneratedState.TryGetCompilerGeneratedCalleesForUserMethod(methodIL.
Method
, out List<IMemberDefinition>? compilerGeneratedCallees))
Linker\MethodBodyScanner.cs (1)
110
foreach (var param in methodIL.
Method
.GetParameters())