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