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)
58
if (ReflectionMethodBodyScanner.IsPInvokeDangerous (calledMethod.Definition,
_context
, out bool comDangerousMethod)) {
62
if (
_context
.Annotations.DoesMethodRequireUnreferencedCode (calledMethod.Definition, out RequiresUnreferencedCodeAttribute? requiresUnreferencedCode))
126
TypeDefinition? staticTypeDef = staticType?.ResolveToTypeDefinition (
_context
);
137
AddReturnValue (
_context
.Annotations.FlowAnnotations.GetMethodReturnValue (calledMethod, _isNewObj, annotation));
140
AddReturnValue (
_context
.Annotations.FlowAnnotations.GetMethodReturnValue (calledMethod, _isNewObj));
158
AddReturnValue (new SystemTypeValue (new (staticType,
_context
)));
160
AddReturnValue (
_context
.Annotations.FlowAnnotations.GetMethodReturnValue (calledMethod, _isNewObj, DynamicallyAccessedMemberTypes.PublicFields));
172
AddReturnValue (
_context
.Annotations.FlowAnnotations.GetMethodReturnValue (calledMethod, _isNewObj, annotation));
207
type =
_context
.Resolve (type.BaseType);
214
foreach (var method in type.Type.GetMethodsOnTypeHierarchy (
_context
, m => m.Name == name, bindingFlags)) {
215
if (MethodProxy.TryCreate (method,
_context
, out MethodProxy? methodProxy))
222
foreach (var nestedType in type.Type.GetNestedTypesOnType (
_context
, t => t.Name == name, bindingFlags))
223
yield return new SystemTypeValue (new TypeProxy (nestedType,
_context
));
228
if (type.Type.ResolveToTypeDefinition (
_context
)?.BaseType is TypeReference baseTypeRef &&
_context
.TryResolve (baseTypeRef) is TypeDefinition baseTypeDefinition) {
229
baseType = new TypeProxy (baseTypeDefinition,
_context
);
239
var resolvedAssembly =
_context
.TryResolve (assemblyName);
257
resolvedType = new TypeProxy (foundType,
_context
);