Implemented interface member:
property
Handle
ILAssembler.EntityRegistry.IHasHandle.Handle
1 write to Handle
ILAssembler (1)
EntityRegistry.cs (1)
1124Handle = token;
56 references to Handle
ILAssembler (56)
BlobBuilderExtensions.cs (1)
94builder.WriteCompressedInteger(CodedIndex.TypeDefOrRefOrSpec(entity.Handle));
EntityRegistry.cs (42)
185resolutionScope is FakeTypeEntity fakeScope ? fakeScope.ResolutionScopeColumnHandle : resolutionScope.Handle, 197type.BaseType is null ? default : type.BaseType.Handle, 202(TypeDefinitionHandle)type.Handle, 205(TypeDefinitionHandle)type.Handle, 211(TypeDefinitionHandle)type.Handle, 218builder.AddNestedType((TypeDefinitionHandle)type.Handle, (TypeDefinitionHandle)type.ContainingType.Handle); 231builder.AddFieldLayout((FieldDefinitionHandle)fieldDef.Handle, fieldDef.Offset.Value); 236builder.AddFieldRelativeVirtualAddress((FieldDefinitionHandle)fieldDef.Handle, dataOffset); 241builder.AddMarshallingDescriptor(fieldDef.Handle, builder.GetOrAddBlob(fieldDef.MarshallingDescriptor)); 246builder.AddConstant(fieldDef.Handle, fieldDef.ConstantValue); 272(MethodDefinitionHandle)methodDef.Handle, 275(ModuleReferenceHandle)methodDef.MethodImportInformation.Value.ModuleName.Handle); 288builder.AddMarshallingDescriptor(param.Handle, builder.GetOrAddBlob(param.MarshallingDescriptor)); 293builder.AddConstant(param.Handle, param.ConstantValue); 300(TypeDefinitionHandle)impl.Type.Handle, 301impl.InterfaceType is FakeTypeEntity fakeType ? fakeType.TypeColumnHandle : impl.InterfaceType.Handle); 307memberRef.Parent.Handle, 315declSecurity.Parent?.Handle ?? default, 326{ Handle: var h } => h, 331customAttr.Constructor.Handle, 346evt.Type.Handle); 350builder.AddMethodSemantics(evt.Handle, accessor.Semantic, (MethodDefinitionHandle)accessor.Method.Handle); 363builder.AddMethodSemantics(prop.Handle, accessor.Semantic, (MethodDefinitionHandle)accessor.Method.Handle); 368builder.AddConstant(prop.Handle, prop.ConstantValue); 426exportedType.Implementation.Handle, 435resource.Implementation?.Handle ?? default, 441builder.AddMethodSpecification(methodSpec.Parent.Handle, builder.GetOrAddBlob(methodSpec.Signature)); 447genericParam.Owner!.Handle, 456(GenericParameterHandle)constraint.Owner!.Handle, 457constraint.BaseType.Handle); 482if (!item.Handle.IsNil) 484return item.Handle; 493if (!item.Handle.IsNil) 495return item.Handle; 503if (otherList.Count != 0 && !otherList[otherList.Count - 1].Handle.IsNil) 505return MetadataTokens.EntityHandle(tokenType, MetadataTokens.GetRowNumber(otherList[otherList.Count - 1].Handle) + 1); 962case TypeEntity { Handle.Kind: HandleKind.TypeDefinition } type: 964var typeDef = (TypeDefinitionEntity)GetSeenEntities(TableIndex.TypeDef)[MetadataTokens.GetRowNumber(type.Handle) - 1]; 971((IHasHandle)memberRef).SetHandle(method.Handle);
GrammarVisitor.cs (13)
155MetadataTokens.GetToken(method.Handle), 302methodTokens[method.VTableSlot - 1] = MetadataTokens.GetToken(method.Handle); 664parameters => parameters.AddParameter().Type().Type(debuggingModesType.Handle, isValueType: true)); 1363return new(new EntityRegistry.FakeTypeEntity(resolvedToken.Handle)); 2975_currentMethod.Definition.MethodBody.Token(VisitMdtoken(mdtoken).Value.Handle); 2986_currentMethod.Definition.MethodBody.Token(fieldRef.Handle); 3023_currentMethod.Definition.MethodBody.Token(methodRef.Handle); 3093_currentMethod!.Definition.MethodBody.Token(_entityRegistry.GetOrCreateStandaloneSignature(signature).Handle); 3182_currentMethod.Definition.MethodBody.Token(tok.Handle); 3188_currentMethod.Definition.MethodBody.Token(arg.Handle); 4709_currentMethod!.Definition.MethodBody.ControlFlowBuilder!.AddCatchRegion(tryStart, tryEnd, catchClause.Start, catchClause.End, catchClause.Type.Handle); 5323return new(new EntityRegistry.FakeTypeEntity(module.Handle)); 5331}).Handle));