35 references to SignatureKind
Microsoft.CodeAnalysis (3)
MetadataReader\MetadataDecoder.cs (3)
854if (signatureHeader.Kind != SignatureKind.LocalVariables) 1747if (signatureHeader.Kind != SignatureKind.MethodSpecification) 1839if (signatureHeader.Kind != SignatureKind.Field)
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Metadata\PE\MemberRefMetadataDecoder.cs (1)
153case (byte)SignatureKind.Field:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenFunctionPointersTests.cs (1)
4067DefineInvalidSignatureAttributeIL(metadataBuilder, ilBuilder, headerToUseForM: new SignatureHeader(SignatureKind.Method, SignatureCallingConvention.Default, ((SignatureAttributes)0x80)));
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Metadata\PE\MemberRefMetadataDecoder.vb (1)
127Case SignatureKind.Field
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Emit\NoPiaEmbedTypes.vb (1)
1430Assert.Equal(CByte(SignatureKind.Property) Or CByte(SignatureAttributes.Instance), CByte(p4.CallingConvention))
System.Diagnostics.FileVersionInfo (1)
System\Diagnostics\FileVersionInfo.Unix.cs (1)
313if (header.Kind == SignatureKind.Method && // attr ctor must be a method
System.Reflection.Metadata (27)
System\Reflection\Metadata\Ecma335\CustomAttributeDecoder.cs (1)
59if (header.Kind != SignatureKind.Method || header.IsGeneric)
System\Reflection\Metadata\Ecma335\Encoding\BlobEncoders.cs (6)
32Builder.WriteByte((byte)SignatureKind.Field); 60Builder.WriteByte((byte)SignatureKind.MethodSpecification); 88Builder.WriteByte(new SignatureHeader(SignatureKind.Method, convention, attributes).RawValue); 105Builder.WriteByte(new SignatureHeader(SignatureKind.Property, SignatureCallingConvention.Default, (isInstanceProperty ? SignatureAttributes.Instance : 0)).RawValue); 160Builder.WriteByte((byte)SignatureKind.LocalVariables); 1105Builder.WriteByte(new SignatureHeader(SignatureKind.Method, convention, (SignatureAttributes)attributes).RawValue);
System\Reflection\Metadata\Ecma335\SignatureDecoder.cs (9)
219CheckHeader(header, SignatureKind.MethodSpecification); 232CheckHeader(header, SignatureKind.LocalVariables); 244CheckHeader(header, SignatureKind.Field); 331private static void CheckHeader(SignatureHeader header, SignatureKind expectedKind) 341SignatureKind kind = header.Kind; 342if (kind != SignatureKind.Method && kind != SignatureKind.Property) 344throw new BadImageFormatException(SR.Format(SR.UnexpectedSignatureHeader2, SignatureKind.Property, SignatureKind.Method, header.Kind, header.RawValue));
System\Reflection\Metadata\Signatures\SignatureHeader.cs (5)
27public SignatureHeader(SignatureKind kind, SignatureCallingConvention convention, SignatureAttributes attributes) 53public SignatureKind Kind 62return SignatureKind.Method; 65return (SignatureKind)callingConventionOrKind; 119if (Kind == SignatureKind.Method)
System\Reflection\Metadata\TypeSystem\MemberReference.cs (2)
110SignatureKind.Method => MemberReferenceKind.Method, 111SignatureKind.Field => MemberReferenceKind.Field,
System\Reflection\Metadata\TypeSystem\StandaloneSignature.cs (4)
59/// Determines the kind of signature, which can be <see cref="SignatureKind.Method"/> or <see cref="SignatureKind.LocalVariables"/> 69SignatureKind.Method => StandaloneSignatureKind.Method, 70SignatureKind.LocalVariables => StandaloneSignatureKind.LocalVariables,