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