34 references to CodedIndex
Microsoft.CodeAnalysis (7)
PEWriter\MetadataWriter.cs (2)
1900int result = CodedIndex.TypeOrMethodDef(GetDeclaringTypeOrMethodHandle(x)) - CodedIndex.TypeOrMethodDef(GetDeclaringTypeOrMethodHandle(y));
PEWriter\MetadataWriter.PortablePdb.cs (5)
189builder.WriteCompressedInteger(CodedIndex.TypeDefOrRefOrSpec(GetTypeHandle(type))); 196builder.WriteCompressedInteger(CodedIndex.TypeDefOrRefOrSpec(GetTypeHandle(type))); 223builder.WriteCompressedInteger(CodedIndex.TypeDefOrRefOrSpec(GetTypeHandle(type))); 233builder.WriteCompressedInteger(CodedIndex.TypeDefOrRefOrSpec(GetTypeHandle(type))); 362writer.WriteCompressedInteger(CodedIndex.TypeDefOrRefOrSpec(GetTypeHandle(import.TargetTypeOpt))); // TODO: index in release build
System.Reflection.Emit (2)
System\Reflection\Emit\ModuleBuilderImpl.cs (2)
188int primary = CodedIndex.TypeOrMethodDef(x._parentHandle).CompareTo(CodedIndex.TypeOrMethodDef(y._parentHandle));
System.Reflection.Metadata (25)
System\Reflection\Metadata\Ecma335\Encoding\BlobEncoders.cs (3)
1069int codedIndex = CodedIndex.TypeDefOrRef(type); 1132int codedIndex = CodedIndex.TypeDefOrRef(genericType); 1241Builder.WriteCompressedInteger(CodedIndex.TypeDefOrRefOrSpec(type));
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (22)
473Extends = baseType.IsNil ? 0 : CodedIndex.TypeDefOrRefOrSpec(baseType), 521/// If a type implements multiple interfaces the corresponding entries must be added in the order determined by their coded indices (<see cref="CodedIndex.TypeDefOrRefOrSpec"/>). 531Interface = CodedIndex.TypeDefOrRefOrSpec(implementedInterface) 573ResolutionScope = resolutionScope.IsNil ? 0 : CodedIndex.ResolutionScope(resolutionScope), 641EventType = CodedIndex.TypeDefOrRefOrSpec(type) 667int parentCodedIndex = CodedIndex.HasConstant(parent); 695int associationCodedIndex = CodedIndex.HasSemantics(association); 749int parentCodedIndex = CodedIndex.HasCustomAttribute(parent); 758Type = CodedIndex.CustomAttributeType(constructor), 775Method = CodedIndex.MethodDefOrRef(method), 824/// Generic parameters must be added in an order determined by the coded index of their parent entity (<see cref="CodedIndex.TypeOrMethodDef"/>). 845Owner = CodedIndex.TypeOrMethodDef(parent) 867Constraint = CodedIndex.TypeDefOrRefOrSpec(constraint), 926int codedIndex = CodedIndex.HasFieldMarshal(parent); 1029MemberForwarded = CodedIndex.MemberForwarded(method), 1054MethodBody = CodedIndex.MethodDefOrRef(methodBody), 1055MethodDecl = CodedIndex.MethodDefOrRef(methodDeclaration) 1081Class = CodedIndex.MemberRefParent(parent), 1107Implementation = implementation.IsNil ? 0 : CodedIndex.Implementation(implementation), 1148Implementation = CodedIndex.Implementation(implementation), 1172int parentCodedIndex = CodedIndex.HasDeclSecurity(parent); 1409Parent = CodedIndex.HasCustomDebugInformation(parent),