Implemented interface member:
method
TryResolve
Mono.Linker.ITryResolveMetadata.TryResolve(Mono.Cecil.TypeReference)
68 references to TryResolve
illink (68)
Linker.Dataflow\CompilerGeneratedState.cs (4)
360
} else if (context.
TryResolve
((TypeReference) param.Owner) is { } owningType) {
389
&& compilerGeneratedType == context.
TryResolve
(typeRef)) {
398
&& compilerGeneratedType == context.
TryResolve
(typeRef)) {
411
if (tr is GenericInstanceType git && compilerGeneratedType == context.
TryResolve
(git)) {
Linker.Dataflow\DynamicallyAccessedMembersBinder.cs (9)
186
type = context.
TryResolve
(type.BaseType);
226
type = context.
TryResolve
(type.BaseType);
298
type = context.
TryResolve
(type.BaseType);
347
type = context.
TryResolve
(type.BaseType);
361
TypeDefinition? interfaceType = context.
TryResolve
(i.InterfaceType);
372
type = context.
TryResolve
(type.BaseType);
394
var baseType = context.
TryResolve
(type.BaseType);
406
var interfaceType = context.
TryResolve
(iface.InterfaceType);
445
type = context.
TryResolve
(type.BaseType);
Linker.Dataflow\DynamicallyAccessedMembersTypeHierarchy.cs (6)
62
TypeDefinition? baseType = _context.
TryResolve
(type.BaseType);
76
var interfaceType = _context.
TryResolve
(iface.InterfaceType);
179
TypeDefinition? baseType = _context.
TryResolve
(type.BaseType);
185
var interfaceType = _context.
TryResolve
(iface.InterfaceType);
212
var baseType = _context.
TryResolve
(type.BaseType);
230
var interfaceType = _context.
TryResolve
(iface.InterfaceType);
Linker.Dataflow\HandleCallAction.cs (1)
228
if (type.Type.ResolveToTypeDefinition (_context)?.BaseType is TypeReference baseTypeRef && _context.
TryResolve
(baseTypeRef) is TypeDefinition baseTypeDefinition) {
Linker.Dataflow\ReflectionMethodBodyScanner.cs (1)
212
var parameterTypeDef = context.
TryResolve
(parameterType);
Linker.Steps\CodeRewriterStep.cs (2)
238
var definition = context.
TryResolve
(rtype);
245
rtype = context.
TryResolve
(rtype);
Linker.Steps\DiscoverCustomOperatorsHandler.cs (2)
128
var typeDef = Context.
TryResolve
(type);
143
return Context.
TryResolve
(nullableType.GenericArguments[0]);
Linker.Steps\LinkAttributesParser.cs (3)
191
var parameterType = _context.
TryResolve
(p.ParameterType);
192
if (parameterType == null || parameterType != _context.
TryResolve
(args[p.MetadataIndex].Type))
261
var typedef = _context.
TryResolve
(typeref);
Linker.Steps\MarkStep.cs (17)
601
MarkType (type, new DependencyInfo (DependencyKind.DynamicInterfaceCastableImplementation, iface.InterfaceType), new MessageOrigin (Context.
TryResolve
(iface.InterfaceType)));
878
type = Context.
TryResolve
(typeReference);
884
type = Context.
TryResolve
(context.DeclaringType);
1219
type = Context.
TryResolve
(type.BaseType);
1256
type = Context.
TryResolve
(type.BaseType);
1270
type = Context.
TryResolve
(type.BaseType);
1702
typeWithFields = Context.
TryResolve
(typeWithFields.BaseType);
1964
if (Context.
TryResolve
(type.BaseType) is TypeDefinition baseType &&
2084
return Context.
TryResolve
((TypeReference) property.Argument.Value);
2224
if (Context.
TryResolve
(type.BaseType) is not TypeDefinition baseType)
2250
if (Context.
TryResolve
(proxyTypeReference) is TypeDefinition proxyType) {
2551
} while ((type = Context.
TryResolve
(type.BaseType)) != null);
2700
return Context.
TryResolve
(type.ElementType);
2876
if (reference.Name == ".ctor" && Context.
TryResolve
(arrayType) is TypeDefinition typeDefinition) {
3365
TypeDefinition? returnTypeDefinition = Context.
TryResolve
(method.ReturnType);
3387
TypeDefinition? paramTypeDefinition = Context.
TryResolve
(paramTypeReference);
3658
if (Context.
TryResolve
(operand) is TypeDefinition typeDefinition) {
Linker.Steps\ProcessLinkerXmlBase.cs (1)
585
_context.
TryResolve
(target) is TypeDefinition typeDefinition &&
Linker.Steps\SealerStep.cs (2)
46
var btd = Context.
TryResolve
(t.BaseType);
58
var bt = Context.
TryResolve
(type);
Linker.Steps\SweepStep.cs (2)
368
TypeDefinition? attributeType = Context.
TryResolve
(attr.AttributeType);
391
var baseDefinition = Context.
TryResolve
(definition.BaseType);
Linker.Steps\UnreachableBlocksOptimizer.cs (2)
287
sizeOfImpl = (UIntPtrSize ??= FindSizeMethod (_context.
TryResolve
(type)));
289
sizeOfImpl = (IntPtrSize ??= FindSizeMethod (_context.
TryResolve
(type)));
Linker\BannedApiExtensions.cs (1)
40
=> context.
TryResolve
(type);
Linker\DependencyRecorderHelper.cs (2)
34
var td = context.
TryResolve
(t);
113
var resolved = context.
TryResolve
(typeRef);
Linker\LinkContext.cs (2)
932
td =
TryResolve
(ts.GetElementType ());
975
?
TryResolve
(typeReference)
Linker\MarkingHelpers.cs (1)
42
_context.
TryResolve
(typeReference) is TypeDefinition typeDefinition &&
Linker\MethodBodyScanner.cs (3)
90
currentType = context.
TryResolve
(currentType.BaseType);
160
if (context.
TryResolve
(iface.InterfaceType) == interfaceType) {
191
var resolved = context.
TryResolve
(item);
Linker\SerializationMarker.cs (1)
187
TypeDefinition? type = _context.
TryResolve
(typeRef);
Linker\TypeHierarchyCache.cs (1)
52
baseType = context.
TryResolve
(baseType.BaseType);
Linker\TypeMapInfo.cs (4)
152
var type = Context.
TryResolve
(typeRef);
304
var baseType = context.
TryResolve
(type)?.BaseType;
312
return context.
TryResolve
(type)?.BaseType;
332
var potentialImplInterface = context.
TryResolve
(interfaceImpl.InterfaceType);
Linker\TypeReferenceExtensions.cs (1)
453
? context.
TryResolve
(typeReference)