Implemented interface member:
property
Handle
ILAssembler.EntityRegistry.IHasHandle.Handle
1 override of Handle
ILAssembler (1)
EntityRegistry.cs (1)
1919public override EntityHandle Handle => base.Handle.IsNil ? PseudoHandle : base.Handle;
1 write to Handle
ILAssembler (1)
EntityRegistry.cs (1)
1775Handle = token;
72 references to Handle
ILAssembler (72)
Actions\GrammarActions.BuildImage.cs (1)
516MetadataTokens.GetToken(association.Method.Handle);
Actions\GrammarActions.Instructions.References.cs (2)
82MaterializeCalliSignature(context.Value)).Handle); 110method.Definition.MethodBody.Token(entity.Handle);
Actions\GrammarActions.Types.References.cs (3)
106: new EntityRegistry.FakeTypeEntity(resolvedToken.Handle); 155_entityRegistry.GetOrCreateAssemblyReference(assembly.AssemblyName, _ => { }).Handle), 166: new EntityRegistry.FakeTypeEntity(module.Handle);
BlobBuilderExtensions.cs (1)
95builder.WriteCompressedInteger(CodedIndex.TypeDefOrRefOrSpec(entity.Handle));
EntityRegistry.cs (64)
191var owner1 = gp1.Owner!.Handle; 192var owner2 = gp2.Owner!.Handle; 212var owner1 = c1.Owner!.Handle; 213var owner2 = c2.Owner!.Handle; 268EntityBase scope => scope.Handle 283type.BaseType is null ? default : type.BaseType.Handle, 290(TypeDefinitionHandle)type.Handle, 296(TypeDefinitionHandle)type.Handle, 304(TypeDefinitionHandle)type.Handle, 311builder.AddNestedType((TypeDefinitionHandle)type.Handle, (TypeDefinitionHandle)type.ContainingType.Handle); 339builder.AddFieldLayout((FieldDefinitionHandle)fieldDef.Handle, fieldDef.Offset.Value); 344builder.AddFieldRelativeVirtualAddress((FieldDefinitionHandle)fieldDef.Handle, dataOffset); 349builder.AddMarshallingDescriptor(fieldDef.Handle, builder.GetOrAddBlob(fieldDef.MarshallingDescriptor)); 354builder.AddConstant(fieldDef.Handle, fieldDef.ConstantValue); 371? (StandaloneSignatureHandle)methodDef.LocalsSignature.Handle 428(MethodDefinitionHandle)methodDef.Handle, 431(ModuleReferenceHandle)methodDef.MethodImportInformation.Value.ModuleName.Handle); 453builder.AddMarshallingDescriptor(param.Handle, builder.GetOrAddBlob(param.MarshallingDescriptor)); 458builder.AddConstant(param.Handle, param.ConstantValue); 465(TypeDefinitionHandle)impl.Type.Handle, 466impl.InterfaceType is FakeTypeEntity fakeType ? fakeType.TypeColumnHandle : impl.InterfaceType.Handle); 472(TypeDefinitionHandle)impl.Type.Handle, 473impl.MethodBody.Handle, 474impl.MethodDeclaration.Handle); 480if (memberRef.Handle.Kind is HandleKind.MethodDefinition or HandleKind.FieldDefinition) 486if (memberRef.Parent.Handle.Kind == HandleKind.MethodDefinition) 488var method = (MethodDefinitionEntity)GetSeenEntities(TableIndex.MethodDef)[MetadataTokens.GetRowNumber(memberRef.Parent.Handle) - 1]; 496memberRef.Parent.Handle, 504declSecurity.Parent?.Handle ?? default, 512|| customAttr.Constructor.Handle.IsNil) 521{ Handle: var h } => h, 526customAttr.Constructor.Handle, 541evt.Type?.Handle ?? default(TypeDefinitionHandle)); 545if (accessor.Method.Handle.Kind == HandleKind.MethodDefinition) 547builder.AddMethodSemantics(evt.Handle, accessor.Semantic, (MethodDefinitionHandle)accessor.Method.Handle); 561if (accessor.Method.Handle.Kind == HandleKind.MethodDefinition) 563builder.AddMethodSemantics(prop.Handle, accessor.Semantic, (MethodDefinitionHandle)accessor.Method.Handle); 569builder.AddConstant(prop.Handle, prop.ConstantValue); 627exportedType.Implementation.Handle, 636resource.Implementation?.Handle ?? default, 642builder.AddMethodSpecification(methodSpec.Parent.Handle, builder.GetOrAddBlob(RewriteMethodSpecBlob(methodSpec.Signature, signatureRewriter))); 650genericParam.Owner!.Handle, 659(GenericParameterHandle)constraint.Owner!.Handle, 660constraint.BaseType.Handle); 687if (!item.Handle.IsNil) 689return item.Handle; 698if (!item.Handle.IsNil) 700return item.Handle; 708if (otherList.Count != 0 && !otherList[otherList.Count - 1].Handle.IsNil) 710return MetadataTokens.EntityHandle(tokenType, MetadataTokens.GetRowNumber(otherList[otherList.Count - 1].Handle) + 1); 1270((IHasHandle)typeRef).SetHandle(nestedTypeDef.Handle); 1285((IHasHandle)typeRef).SetHandle(typeDef.Handle); 1298((IHasHandle)typeRef).SetHandle(typeDef.Handle); 1544case TypeEntity { Handle.Kind: HandleKind.TypeDefinition } type: 1546var typeDef = (TypeDefinitionEntity)GetSeenEntities(TableIndex.TypeDef)[MetadataTokens.GetRowNumber(type.Handle) - 1]; 1552((IHasHandle)memberRef).SetHandle(method.Handle); 1566case TypeEntity { Handle.Kind: HandleKind.TypeDefinition } type: 1568var typeDef = (TypeDefinitionEntity)GetSeenEntities(TableIndex.TypeDef)[MetadataTokens.GetRowNumber(type.Handle) - 1]; 1574((IHasHandle)memberRef).SetHandle(field.Handle); 1919public override EntityHandle Handle => base.Handle.IsNil ? PseudoHandle : base.Handle;
MethodBodyWriter.cs (1)
274EntityRegistry.ExceptionRegion.CatchRegion clause => (ExceptionRegionKind.Catch, MetadataTokens.GetToken(clause.CatchType.Handle)),