1 write to _context
illink (1)
Linker.Dataflow\HandleCallAction.cs (1)
36
_context
= context;
18 references to _context
illink (18)
Linker.Dataflow\HandleCallAction.cs (18)
60
if (ReflectionMethodBodyScanner.IsPInvokeDangerous(calledMethod.Definition,
_context
, out bool comDangerousMethod))
65
if (
_context
.Annotations.DoesMethodRequireUnreferencedCode(calledMethod.Definition, out RequiresUnreferencedCodeAttribute? requiresUnreferencedCode))
134
TypeDefinition? staticTypeDef = staticType?.ResolveToTypeDefinition(
_context
);
149
AddReturnValue(
_context
.Annotations.FlowAnnotations.GetMethodReturnValue(calledMethod, _isNewObj, annotation));
154
AddReturnValue(
_context
.Annotations.FlowAnnotations.GetMethodReturnValue(calledMethod, _isNewObj));
174
AddReturnValue(new SystemTypeValue(new(staticType,
_context
)));
178
AddReturnValue(
_context
.Annotations.FlowAnnotations.GetMethodReturnValue(calledMethod, _isNewObj, DynamicallyAccessedMemberTypes.PublicFields));
192
AddReturnValue(
_context
.Annotations.FlowAnnotations.GetMethodReturnValue(calledMethod, _isNewObj, annotation));
228
type =
_context
.Resolve(type.BaseType);
235
foreach (var method in type.Type.GetMethodsOnTypeHierarchy(
_context
, m => m.Name == name, bindingFlags))
237
if (MethodProxy.TryCreate(method,
_context
, out MethodProxy? methodProxy))
244
foreach (var nestedType in type.Type.GetNestedTypesOnType(
_context
, t => t.Name == name, bindingFlags))
245
yield return new SystemTypeValue(new TypeProxy(nestedType,
_context
));
250
if (type.Type.ResolveToTypeDefinition(
_context
)?.BaseType is TypeReference baseTypeRef &&
_context
.TryResolve(baseTypeRef) is TypeDefinition baseTypeDefinition)
252
baseType = new TypeProxy(baseTypeDefinition,
_context
);
262
var resolvedAssembly =
_context
.TryResolve(assemblyName);
282
resolvedType = new TypeProxy(foundType,
_context
);