Implemented interface member:
property
Handle
ILAssembler.EntityRegistry.IHasHandle.Handle
1 override of Handle
ILAssembler (1)
EntityRegistry.cs (1)
1930public override EntityHandle Handle => base.Handle.IsNil ? PseudoHandle : base.Handle;
1 write to Handle
ILAssembler (1)
EntityRegistry.cs (1)
1785Handle = token;
73 references to Handle
ILAssembler (73)
Actions\GrammarActions.BuildImage.cs (2)
508MetadataTokens.GetToken(association.Method.Handle); 731AddLocalScopes((MethodDefinitionHandle)method.Handle, method.DebugInfo.LocalScopes);
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)
192var owner1 = gp1.Owner!.Handle; 193var owner2 = gp2.Owner!.Handle; 213var owner1 = c1.Owner!.Handle; 214var owner2 = c2.Owner!.Handle; 269EntityBase scope => scope.Handle 284type.BaseType is null ? default : type.BaseType.Handle, 291(TypeDefinitionHandle)type.Handle, 297(TypeDefinitionHandle)type.Handle, 305(TypeDefinitionHandle)type.Handle, 312builder.AddNestedType((TypeDefinitionHandle)type.Handle, (TypeDefinitionHandle)type.ContainingType.Handle); 341builder.AddFieldLayout((FieldDefinitionHandle)fieldDef.Handle, fieldDef.Offset.Value); 346builder.AddFieldRelativeVirtualAddress((FieldDefinitionHandle)fieldDef.Handle, dataLocation.Offset); 352builder.AddMarshallingDescriptor(fieldDef.Handle, builder.GetOrAddBlob(fieldDef.MarshallingDescriptor)); 357builder.AddConstant(fieldDef.Handle, fieldDef.ConstantValue); 375? (StandaloneSignatureHandle)methodDef.LocalsSignature.Handle 433(MethodDefinitionHandle)methodDef.Handle, 436(ModuleReferenceHandle)methodDef.MethodImportInformation.Value.ModuleName.Handle); 458builder.AddMarshallingDescriptor(param.Handle, builder.GetOrAddBlob(param.MarshallingDescriptor)); 463builder.AddConstant(param.Handle, param.ConstantValue); 470(TypeDefinitionHandle)impl.Type.Handle, 471impl.InterfaceType is FakeTypeEntity fakeType ? fakeType.TypeColumnHandle : impl.InterfaceType.Handle); 477(TypeDefinitionHandle)impl.Type.Handle, 478impl.MethodBody.Handle, 479impl.MethodDeclaration.Handle); 485if (memberRef.Handle.Kind is HandleKind.MethodDefinition or HandleKind.FieldDefinition) 491if (memberRef.Parent.Handle.Kind == HandleKind.MethodDefinition) 493var method = (MethodDefinitionEntity)GetSeenEntities(TableIndex.MethodDef)[MetadataTokens.GetRowNumber(memberRef.Parent.Handle) - 1]; 501memberRef.Parent.Handle, 509declSecurity.Parent?.Handle ?? default, 517|| customAttr.Constructor.Handle.IsNil) 526{ Handle: var h } => h, 531customAttr.Constructor.Handle, 546evt.Type?.Handle ?? default(TypeDefinitionHandle)); 550if (accessor.Method.Handle.Kind == HandleKind.MethodDefinition) 552builder.AddMethodSemantics(evt.Handle, accessor.Semantic, (MethodDefinitionHandle)accessor.Method.Handle); 566if (accessor.Method.Handle.Kind == HandleKind.MethodDefinition) 568builder.AddMethodSemantics(prop.Handle, accessor.Semantic, (MethodDefinitionHandle)accessor.Method.Handle); 574builder.AddConstant(prop.Handle, prop.ConstantValue); 632exportedType.Implementation.Handle, 641resource.Implementation?.Handle ?? default, 647builder.AddMethodSpecification(methodSpec.Parent.Handle, builder.GetOrAddBlob(RewriteMethodSpecBlob(methodSpec.Signature, signatureRewriter))); 655genericParam.Owner!.Handle, 664(GenericParameterHandle)constraint.Owner!.Handle, 665constraint.BaseType.Handle); 692if (!item.Handle.IsNil) 694return item.Handle; 703if (!item.Handle.IsNil) 705return item.Handle; 713if (otherList.Count != 0 && !otherList[otherList.Count - 1].Handle.IsNil) 715return MetadataTokens.EntityHandle(tokenType, MetadataTokens.GetRowNumber(otherList[otherList.Count - 1].Handle) + 1); 1280((IHasHandle)typeRef).SetHandle(nestedTypeDef.Handle); 1295((IHasHandle)typeRef).SetHandle(typeDef.Handle); 1308((IHasHandle)typeRef).SetHandle(typeDef.Handle); 1554case TypeEntity { Handle.Kind: HandleKind.TypeDefinition } type: 1556var typeDef = (TypeDefinitionEntity)GetSeenEntities(TableIndex.TypeDef)[MetadataTokens.GetRowNumber(type.Handle) - 1]; 1562((IHasHandle)memberRef).SetHandle(method.Handle); 1576case TypeEntity { Handle.Kind: HandleKind.TypeDefinition } type: 1578var typeDef = (TypeDefinitionEntity)GetSeenEntities(TableIndex.TypeDef)[MetadataTokens.GetRowNumber(type.Handle) - 1]; 1584((IHasHandle)memberRef).SetHandle(field.Handle); 1930public override EntityHandle Handle => base.Handle.IsNil ? PseudoHandle : base.Handle;
MethodBodyWriter.cs (1)
274EntityRegistry.ExceptionRegion.CatchRegion clause => (ExceptionRegionKind.Catch, MetadataTokens.GetToken(clause.CatchType.Handle)),