100 references to WriteReference
Microsoft.CodeAnalysis (4)
PEWriter\MetadataWriter.DynamicAnalysis.cs (4)
345writer.WriteReference(MetadataTokens.GetHeapOffset(row.Name), isSmall: (sizes.BlobIndexSize == 2)); 346writer.WriteReference(MetadataTokens.GetHeapOffset(row.HashAlgorithm), isSmall: (sizes.GuidIndexSize == 2)); 347writer.WriteReference(MetadataTokens.GetHeapOffset(row.Hash), isSmall: (sizes.BlobIndexSize == 2)); 355writer.WriteReference(MetadataTokens.GetHeapOffset(row.Spans), isSmall: (sizes.BlobIndexSize == 2));
System.Reflection.Metadata (96)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (96)
1928writer.WriteReference(SerializeHandle(stringMap, _moduleRow.Value.Name), metadataSizes.StringReferenceIsSmall); 1929writer.WriteReference(SerializeHandle(_moduleRow.Value.ModuleVersionId), metadataSizes.GuidReferenceIsSmall); 1930writer.WriteReference(SerializeHandle(_moduleRow.Value.EncId), metadataSizes.GuidReferenceIsSmall); 1931writer.WriteReference(SerializeHandle(_moduleRow.Value.EncBaseId), metadataSizes.GuidReferenceIsSmall); 1956writer.WriteReference(typeRef.ResolutionScope, metadataSizes.ResolutionScopeCodedIndexIsSmall); 1957writer.WriteReference(SerializeHandle(stringMap, typeRef.Name), metadataSizes.StringReferenceIsSmall); 1958writer.WriteReference(SerializeHandle(stringMap, typeRef.Namespace), metadataSizes.StringReferenceIsSmall); 1967writer.WriteReference(SerializeHandle(stringMap, typeDef.Name), metadataSizes.StringReferenceIsSmall); 1968writer.WriteReference(SerializeHandle(stringMap, typeDef.Namespace), metadataSizes.StringReferenceIsSmall); 1969writer.WriteReference(typeDef.Extends, metadataSizes.TypeDefOrRefCodedIndexIsSmall); 1970writer.WriteReference(typeDef.FieldList, metadataSizes.FieldDefReferenceIsSmall); 1971writer.WriteReference(typeDef.MethodList, metadataSizes.MethodDefReferenceIsSmall); 1980writer.WriteReference(SerializeHandle(stringMap, fieldDef.Name), metadataSizes.StringReferenceIsSmall); 1981writer.WriteReference(SerializeHandle(fieldDef.Signature), metadataSizes.BlobReferenceIsSmall); 2000writer.WriteReference(SerializeHandle(stringMap, method.Name), metadataSizes.StringReferenceIsSmall); 2001writer.WriteReference(SerializeHandle(method.Signature), metadataSizes.BlobReferenceIsSmall); 2002writer.WriteReference(method.ParamList, metadataSizes.ParameterReferenceIsSmall); 2012writer.WriteReference(SerializeHandle(stringMap, param.Name), metadataSizes.StringReferenceIsSmall); 2022writer.WriteReference(interfaceImpl.Class, metadataSizes.TypeDefReferenceIsSmall); 2023writer.WriteReference(interfaceImpl.Interface, metadataSizes.TypeDefOrRefCodedIndexIsSmall); 2031writer.WriteReference(memberRef.Class, metadataSizes.MemberRefParentCodedIndexIsSmall); 2032writer.WriteReference(SerializeHandle(stringMap, memberRef.Name), metadataSizes.StringReferenceIsSmall); 2033writer.WriteReference(SerializeHandle(memberRef.Signature), metadataSizes.BlobReferenceIsSmall); 2046writer.WriteReference(constant.Parent, metadataSizes.HasConstantCodedIndexIsSmall); 2047writer.WriteReference(SerializeHandle(constant.Value), metadataSizes.BlobReferenceIsSmall); 2061writer.WriteReference(customAttribute.Parent, metadataSizes.HasCustomAttributeCodedIndexIsSmall); 2062writer.WriteReference(customAttribute.Type, metadataSizes.CustomAttributeTypeCodedIndexIsSmall); 2063writer.WriteReference(SerializeHandle(customAttribute.Value), metadataSizes.BlobReferenceIsSmall); 2074writer.WriteReference(fieldMarshal.Parent, metadataSizes.HasFieldMarshalCodedIndexIsSmall); 2075writer.WriteReference(SerializeHandle(fieldMarshal.NativeType), metadataSizes.BlobReferenceIsSmall); 2088writer.WriteReference(declSecurity.Parent, metadataSizes.DeclSecurityCodedIndexIsSmall); 2089writer.WriteReference(SerializeHandle(declSecurity.PermissionSet), metadataSizes.BlobReferenceIsSmall); 2099writer.WriteReference(classLayout.Parent, metadataSizes.TypeDefReferenceIsSmall); 2108writer.WriteReference(fieldLayout.Field, metadataSizes.FieldDefReferenceIsSmall); 2116writer.WriteReference(SerializeHandle(row.Signature), metadataSizes.BlobReferenceIsSmall); 2124writer.WriteReference(eventMap.Parent, metadataSizes.TypeDefReferenceIsSmall); 2125writer.WriteReference(eventMap.EventList, metadataSizes.EventDefReferenceIsSmall); 2134writer.WriteReference(SerializeHandle(stringMap, eventRow.Name), metadataSizes.StringReferenceIsSmall); 2135writer.WriteReference(eventRow.EventType, metadataSizes.TypeDefOrRefCodedIndexIsSmall); 2143writer.WriteReference(propertyMap.Parent, metadataSizes.TypeDefReferenceIsSmall); 2144writer.WriteReference(propertyMap.PropertyList, metadataSizes.PropertyDefReferenceIsSmall); 2153writer.WriteReference(SerializeHandle(stringMap, property.Name), metadataSizes.StringReferenceIsSmall); 2154writer.WriteReference(SerializeHandle(property.Type), metadataSizes.BlobReferenceIsSmall); 2167writer.WriteReference(methodSemantic.Method, metadataSizes.MethodDefReferenceIsSmall); 2168writer.WriteReference(methodSemantic.Association, metadataSizes.HasSemanticsCodedIndexIsSmall); 2176writer.WriteReference(methodImpl.Class, metadataSizes.TypeDefReferenceIsSmall); 2177writer.WriteReference(methodImpl.MethodBody, metadataSizes.MethodDefOrRefCodedIndexIsSmall); 2178writer.WriteReference(methodImpl.MethodDecl, metadataSizes.MethodDefOrRefCodedIndexIsSmall); 2186writer.WriteReference(SerializeHandle(stringMap, moduleRef.Name), metadataSizes.StringReferenceIsSmall); 2194writer.WriteReference(SerializeHandle(typeSpec.Signature), metadataSizes.BlobReferenceIsSmall); 2203writer.WriteReference(implMap.MemberForwarded, metadataSizes.MemberForwardedCodedIndexIsSmall); 2204writer.WriteReference(SerializeHandle(stringMap, implMap.ImportName), metadataSizes.StringReferenceIsSmall); 2205writer.WriteReference(implMap.ImportScope, metadataSizes.ModuleRefReferenceIsSmall); 2214writer.WriteReference(fieldRva.Field, metadataSizes.FieldDefReferenceIsSmall); 2229writer.WriteReference(SerializeHandle(_assemblyRow.Value.AssemblyKey), metadataSizes.BlobReferenceIsSmall); 2230writer.WriteReference(SerializeHandle(stringMap, _assemblyRow.Value.AssemblyName), metadataSizes.StringReferenceIsSmall); 2231writer.WriteReference(SerializeHandle(stringMap, _assemblyRow.Value.AssemblyCulture), metadataSizes.StringReferenceIsSmall); 2244writer.WriteReference(SerializeHandle(row.PublicKeyToken), metadataSizes.BlobReferenceIsSmall); 2245writer.WriteReference(SerializeHandle(stringMap, row.Name), metadataSizes.StringReferenceIsSmall); 2246writer.WriteReference(SerializeHandle(stringMap, row.Culture), metadataSizes.StringReferenceIsSmall); 2247writer.WriteReference(SerializeHandle(row.HashValue), metadataSizes.BlobReferenceIsSmall); 2256writer.WriteReference(SerializeHandle(stringMap, fileReference.FileName), metadataSizes.StringReferenceIsSmall); 2257writer.WriteReference(SerializeHandle(fileReference.HashValue), metadataSizes.BlobReferenceIsSmall); 2267writer.WriteReference(SerializeHandle(stringMap, exportedType.TypeName), metadataSizes.StringReferenceIsSmall); 2268writer.WriteReference(SerializeHandle(stringMap, exportedType.TypeNamespace), metadataSizes.StringReferenceIsSmall); 2269writer.WriteReference(exportedType.Implementation, metadataSizes.ImplementationCodedIndexIsSmall); 2279writer.WriteReference(SerializeHandle(stringMap, manifestResource.Name), metadataSizes.StringReferenceIsSmall); 2280writer.WriteReference(manifestResource.Implementation, metadataSizes.ImplementationCodedIndexIsSmall); 2288writer.WriteReference(nestedClass.NestedClass, metadataSizes.TypeDefReferenceIsSmall); 2289writer.WriteReference(nestedClass.EnclosingClass, metadataSizes.TypeDefReferenceIsSmall); 2299writer.WriteReference(genericParam.Owner, metadataSizes.TypeOrMethodDefCodedIndexIsSmall); 2300writer.WriteReference(SerializeHandle(stringMap, genericParam.Name), metadataSizes.StringReferenceIsSmall); 2308writer.WriteReference(genericParamConstraint.Owner, metadataSizes.GenericParamReferenceIsSmall); 2309writer.WriteReference(genericParamConstraint.Constraint, metadataSizes.TypeDefOrRefCodedIndexIsSmall); 2317writer.WriteReference(methodSpec.Method, metadataSizes.MethodDefOrRefCodedIndexIsSmall); 2318writer.WriteReference(SerializeHandle(methodSpec.Instantiation), metadataSizes.BlobReferenceIsSmall); 2326writer.WriteReference(SerializeHandle(row.Name), metadataSizes.BlobReferenceIsSmall); 2327writer.WriteReference(SerializeHandle(row.HashAlgorithm), metadataSizes.GuidReferenceIsSmall); 2328writer.WriteReference(SerializeHandle(row.Hash), metadataSizes.BlobReferenceIsSmall); 2329writer.WriteReference(SerializeHandle(row.Language), metadataSizes.GuidReferenceIsSmall); 2337writer.WriteReference(row.Document, metadataSizes.DocumentReferenceIsSmall); 2338writer.WriteReference(SerializeHandle(row.SequencePoints), metadataSizes.BlobReferenceIsSmall); 2346writer.WriteReference(row.Method, metadataSizes.MethodDefReferenceIsSmall); 2347writer.WriteReference(row.ImportScope, metadataSizes.ImportScopeReferenceIsSmall); 2348writer.WriteReference(row.VariableList, metadataSizes.LocalVariableReferenceIsSmall); 2349writer.WriteReference(row.ConstantList, metadataSizes.LocalConstantReferenceIsSmall); 2361writer.WriteReference(SerializeHandle(stringMap, row.Name), metadataSizes.StringReferenceIsSmall); 2369writer.WriteReference(SerializeHandle(stringMap, row.Name), metadataSizes.StringReferenceIsSmall); 2370writer.WriteReference(SerializeHandle(row.Signature), metadataSizes.BlobReferenceIsSmall); 2378writer.WriteReference(row.Parent, metadataSizes.ImportScopeReferenceIsSmall); 2379writer.WriteReference(SerializeHandle(row.Imports), metadataSizes.BlobReferenceIsSmall); 2387writer.WriteReference(row.MoveNextMethod, metadataSizes.MethodDefReferenceIsSmall); 2388writer.WriteReference(row.KickoffMethod, metadataSizes.MethodDefReferenceIsSmall); 2402writer.WriteReference(row.Parent, metadataSizes.HasCustomDebugInformationCodedIndexIsSmall); 2403writer.WriteReference(SerializeHandle(row.Kind), metadataSizes.GuidReferenceIsSmall); 2404writer.WriteReference(SerializeHandle(row.Value), metadataSizes.BlobReferenceIsSmall);