84 references to SignatureAttributes
Microsoft.CodeAnalysis (61)
PEWriter\Members.cs (7)
66
Generic =
SignatureAttributes
.Generic,
71
HasThis =
SignatureAttributes
.Instance,
76
ExplicitThis =
SignatureAttributes
.ExplicitThis,
90
private const
SignatureAttributes
SignatureAttributesMask =
91
SignatureAttributes
.Generic
92
|
SignatureAttributes
.Instance
93
|
SignatureAttributes
.ExplicitThis;
Symbols\Attributes\AttributeDescription.cs (54)
48
Debug.Assert(signature[0] == (byte)
SignatureAttributes
.Instance);
135
private static readonly byte[] s_signature_HasThis_Void = new byte[] { (byte)
SignatureAttributes
.Instance, 0, Void };
136
private static readonly byte[] s_signature_HasThis_Void_Byte = new byte[] { (byte)
SignatureAttributes
.Instance, 1, Void, Byte };
137
private static readonly byte[] s_signature_HasThis_Void_Int16 = new byte[] { (byte)
SignatureAttributes
.Instance, 1, Void, Int16 };
138
private static readonly byte[] s_signature_HasThis_Void_Int32 = new byte[] { (byte)
SignatureAttributes
.Instance, 1, Void, Int32 };
139
private static readonly byte[] s_signature_HasThis_Void_UInt32 = new byte[] { (byte)
SignatureAttributes
.Instance, 1, Void, UInt32 };
140
private static readonly byte[] s_signature_HasThis_Void_Int32_Int32 = new byte[] { (byte)
SignatureAttributes
.Instance, 2, Void, Int32, Int32 };
141
private static readonly byte[] s_signature_HasThis_Void_Int32_Int32_Int32_Int32 = new byte[] { (byte)
SignatureAttributes
.Instance, 4, Void, Int32, Int32, Int32, Int32 };
142
private static readonly byte[] s_signature_HasThis_Void_String = new byte[] { (byte)
SignatureAttributes
.Instance, 1, Void, String };
143
private static readonly byte[] s_signature_HasThis_Void_Object = new byte[] { (byte)
SignatureAttributes
.Instance, 1, Void, Object };
144
private static readonly byte[] s_signature_HasThis_Void_String_String = new byte[] { (byte)
SignatureAttributes
.Instance, 2, Void, String, String };
145
private static readonly byte[] s_signature_HasThis_Void_String_Boolean = new byte[] { (byte)
SignatureAttributes
.Instance, 2, Void, String, Boolean };
146
private static readonly byte[] s_signature_HasThis_Void_String_String_String = new byte[] { (byte)
SignatureAttributes
.Instance, 3, Void, String, String, String };
147
private static readonly byte[] s_signature_HasThis_Void_String_String_String_String = new byte[] { (byte)
SignatureAttributes
.Instance, 4, Void, String, String, String, String };
148
private static readonly byte[] s_signature_HasThis_Void_AttributeTargets = new byte[] { (byte)
SignatureAttributes
.Instance, 1, Void, TypeHandle, (byte)TypeHandleTarget.AttributeTargets };
149
private static readonly byte[] s_signature_HasThis_Void_AssemblyNameFlags = new byte[] { (byte)
SignatureAttributes
.Instance, 1, Void, TypeHandle, (byte)TypeHandleTarget.AssemblyNameFlags };
150
private static readonly byte[] s_signature_HasThis_Void_MethodImplOptions = new byte[] { (byte)
SignatureAttributes
.Instance, 1, Void, TypeHandle, (byte)TypeHandleTarget.MethodImplOptions };
151
private static readonly byte[] s_signature_HasThis_Void_CharSet = new byte[] { (byte)
SignatureAttributes
.Instance, 1, Void, TypeHandle, (byte)TypeHandleTarget.CharSet };
152
private static readonly byte[] s_signature_HasThis_Void_LayoutKind = new byte[] { (byte)
SignatureAttributes
.Instance, 1, Void, TypeHandle, (byte)TypeHandleTarget.LayoutKind };
153
private static readonly byte[] s_signature_HasThis_Void_UnmanagedType = new byte[] { (byte)
SignatureAttributes
.Instance, 1, Void, TypeHandle, (byte)TypeHandleTarget.UnmanagedType };
154
private static readonly byte[] s_signature_HasThis_Void_TypeLibTypeFlags = new byte[] { (byte)
SignatureAttributes
.Instance, 1, Void, TypeHandle, (byte)TypeHandleTarget.TypeLibTypeFlags };
155
private static readonly byte[] s_signature_HasThis_Void_ClassInterfaceType = new byte[] { (byte)
SignatureAttributes
.Instance, 1, Void, TypeHandle, (byte)TypeHandleTarget.ClassInterfaceType };
156
private static readonly byte[] s_signature_HasThis_Void_ComInterfaceType = new byte[] { (byte)
SignatureAttributes
.Instance, 1, Void, TypeHandle, (byte)TypeHandleTarget.ComInterfaceType };
157
private static readonly byte[] s_signature_HasThis_Void_CompilationRelaxations = new byte[] { (byte)
SignatureAttributes
.Instance, 1, Void, TypeHandle, (byte)TypeHandleTarget.CompilationRelaxations };
158
private static readonly byte[] s_signature_HasThis_Void_DebuggingModes = new byte[] { (byte)
SignatureAttributes
.Instance, 1, Void, TypeHandle, (byte)TypeHandleTarget.DebuggingModes };
159
private static readonly byte[] s_signature_HasThis_Void_SecurityCriticalScope = new byte[] { (byte)
SignatureAttributes
.Instance, 1, Void, TypeHandle, (byte)TypeHandleTarget.SecurityCriticalScope };
160
private static readonly byte[] s_signature_HasThis_Void_CallingConvention = new byte[] { (byte)
SignatureAttributes
.Instance, 1, Void, TypeHandle, (byte)TypeHandleTarget.CallingConvention };
161
private static readonly byte[] s_signature_HasThis_Void_AssemblyHashAlgorithm = new byte[] { (byte)
SignatureAttributes
.Instance, 1, Void, TypeHandle, (byte)TypeHandleTarget.AssemblyHashAlgorithm };
162
private static readonly byte[] s_signature_HasThis_Void_Int64 = new byte[] { (byte)
SignatureAttributes
.Instance, 1, Void, Int64 };
164
(byte)
SignatureAttributes
.Instance, 5, Void, Byte, Byte, UInt32, UInt32, UInt32 };
166
(byte)
SignatureAttributes
.Instance, 5, Void, Byte, Byte, Int32, Int32, Int32 };
168
private static readonly byte[] s_signature_HasThis_Void_Boolean = new byte[] { (byte)
SignatureAttributes
.Instance, 1, Void, Boolean };
169
private static readonly byte[] s_signature_HasThis_Void_Boolean_Boolean = new byte[] { (byte)
SignatureAttributes
.Instance, 2, Void, Boolean, Boolean };
171
private static readonly byte[] s_signature_HasThis_Void_Boolean_TransactionOption = new byte[] { (byte)
SignatureAttributes
.Instance, 2, Void, Boolean, TypeHandle, (byte)TypeHandleTarget.TransactionOption };
172
private static readonly byte[] s_signature_HasThis_Void_Boolean_TransactionOption_Int32 = new byte[] { (byte)
SignatureAttributes
.Instance, 3, Void, Boolean, TypeHandle, (byte)TypeHandleTarget.TransactionOption, Int32 };
173
private static readonly byte[] s_signature_HasThis_Void_Boolean_TransactionOption_Int32_Boolean = new byte[] { (byte)
SignatureAttributes
.Instance, 4, Void, Boolean, TypeHandle, (byte)TypeHandleTarget.TransactionOption, Int32, Boolean };
175
private static readonly byte[] s_signature_HasThis_Void_SecurityAction = new byte[] { (byte)
SignatureAttributes
.Instance, 1, Void, TypeHandle, (byte)TypeHandleTarget.SecurityAction };
176
private static readonly byte[] s_signature_HasThis_Void_Type = new byte[] { (byte)
SignatureAttributes
.Instance, 1, Void, TypeHandle, (byte)TypeHandleTarget.SystemType };
177
private static readonly byte[] s_signature_HasThis_Void_Type_Type = new byte[] { (byte)
SignatureAttributes
.Instance, 2, Void, TypeHandle, (byte)TypeHandleTarget.SystemType, TypeHandle, (byte)TypeHandleTarget.SystemType };
178
private static readonly byte[] s_signature_HasThis_Void_Type_Type_Type = new byte[] { (byte)
SignatureAttributes
.Instance, 3, Void, TypeHandle, (byte)TypeHandleTarget.SystemType, TypeHandle, (byte)TypeHandleTarget.SystemType, TypeHandle, (byte)TypeHandleTarget.SystemType };
179
private static readonly byte[] s_signature_HasThis_Void_Type_Type_Type_Type = new byte[] { (byte)
SignatureAttributes
.Instance, 4, Void, TypeHandle, (byte)TypeHandleTarget.SystemType, TypeHandle, (byte)TypeHandleTarget.SystemType, TypeHandle, (byte)TypeHandleTarget.SystemType, TypeHandle, (byte)TypeHandleTarget.SystemType };
180
private static readonly byte[] s_signature_HasThis_Void_Type_Int32 = new byte[] { (byte)
SignatureAttributes
.Instance, 2, Void, TypeHandle, (byte)TypeHandleTarget.SystemType, Int32 };
181
private static readonly byte[] s_signature_HasThis_Void_Type_String = new byte[] { (byte)
SignatureAttributes
.Instance, 2, Void, TypeHandle, (byte)TypeHandleTarget.SystemType, String };
183
private static readonly byte[] s_signature_HasThis_Void_String_Int32_Int32 = new byte[] { (byte)
SignatureAttributes
.Instance, 3, Void, String, Int32, Int32 };
184
private static readonly byte[] s_signature_HasThis_Void_Int32_String = new byte[] { (byte)
SignatureAttributes
.Instance, 2, Void, Int32, String };
186
private static readonly byte[] s_signature_HasThis_Void_SzArray_Boolean = new byte[] { (byte)
SignatureAttributes
.Instance, 1, Void, SzArray, Boolean };
187
private static readonly byte[] s_signature_HasThis_Void_SzArray_Byte = new byte[] { (byte)
SignatureAttributes
.Instance, 1, Void, SzArray, Byte };
188
private static readonly byte[] s_signature_HasThis_Void_SzArray_String = new byte[] { (byte)
SignatureAttributes
.Instance, 1, Void, SzArray, String };
189
private static readonly byte[] s_signature_HasThis_Void_Boolean_SzArray_String = new byte[] { (byte)
SignatureAttributes
.Instance, 2, Void, Boolean, SzArray, String };
190
private static readonly byte[] s_signature_HasThis_Void_Boolean_String = new byte[] { (byte)
SignatureAttributes
.Instance, 2, Void, Boolean, String };
192
private static readonly byte[] s_signature_HasThis_Void_String_DeprecationType_UInt32 = new byte[] { (byte)
SignatureAttributes
.Instance, 3, Void, String, TypeHandle, (byte)TypeHandleTarget.DeprecationType, UInt32 };
193
private static readonly byte[] s_signature_HasThis_Void_String_DeprecationType_UInt32_Platform = new byte[] { (byte)
SignatureAttributes
.Instance, 4, Void, String, TypeHandle, (byte)TypeHandleTarget.DeprecationType, UInt32, TypeHandle, (byte)TypeHandleTarget.Platform };
194
private static readonly byte[] s_signature_HasThis_Void_String_DeprecationType_UInt32_Type = new byte[] { (byte)
SignatureAttributes
.Instance, 4, Void, String, TypeHandle, (byte)TypeHandleTarget.DeprecationType, UInt32, TypeHandle, (byte)TypeHandleTarget.SystemType };
195
private static readonly byte[] s_signature_HasThis_Void_String_DeprecationType_UInt32_String = new byte[] { (byte)
SignatureAttributes
.Instance, 4, Void, String, TypeHandle, (byte)TypeHandleTarget.DeprecationType, UInt32, String };
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Attributes\SourceAttributeData.cs (1)
258
if (targetSignature[0] != (byte)
SignatureAttributes
.Instance)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenFunctionPointersTests.cs (1)
4067
DefineInvalidSignatureAttributeIL(metadataBuilder, ilBuilder, headerToUseForM: new SignatureHeader(SignatureKind.Method, SignatureCallingConvention.Default, ((
SignatureAttributes
)0x80)));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\Retargeting\RetargetCustomAttributes.cs (1)
33
new byte[][] { new byte[] { (byte)
SignatureAttributes
.Instance, 1, (byte)SignatureTypeCode.Void, (byte)SignatureTypeCode.TypeHandle, (byte)AttributeDescription.TypeHandleTarget.SystemType } });
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Attributes\SourceAttributeData.vb (1)
145
If targetSignature(0) <>
SignatureAttributes
.Instance Then
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
Emit\NoPiaEmbedTypes.vb (2)
1306
Assert.Equal(CByte(SignatureCallingConvention.Default) Or CByte(
SignatureAttributes
.Instance), signatureHeader.RawValue)
1430
Assert.Equal(CByte(SignatureKind.Property) Or CByte(
SignatureAttributes
.Instance), CByte(p4.CallingConvention))
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolsTests\Retargeting\RetargetingCustomAttributes.vb (1)
45
{New Byte() {CByte(
SignatureAttributes
.Instance), 1, CByte(SignatureTypeCode.Void), CByte(SignatureTypeCode.TypeHandle), CByte(AttributeDescription.TypeHandleTarget.SystemType)}})
System.Reflection.Metadata (16)
System\Reflection\Metadata\Ecma335\Encoding\BlobEncoders.cs (5)
84
var
attributes =
85
(genericParameterCount != 0 ?
SignatureAttributes
.Generic : 0) |
86
(isInstanceMethod ?
SignatureAttributes
.Instance : 0);
105
Builder.WriteByte(new SignatureHeader(SignatureKind.Property, SignatureCallingConvention.Default, (isInstanceProperty ?
SignatureAttributes
.Instance : 0)).RawValue);
1105
Builder.WriteByte(new SignatureHeader(SignatureKind.Method, convention, (
SignatureAttributes
)attributes).RawValue);
System\Reflection\Metadata\Ecma335\Encoding\FunctionPointerAttributes.cs (4)
8
None =
SignatureAttributes
.None,
9
HasThis =
SignatureAttributes
.Instance,
10
HasExplicitThis =
SignatureAttributes
.Instance |
SignatureAttributes
.ExplicitThis
System\Reflection\Metadata\Signatures\SignatureHeader.cs (7)
27
public SignatureHeader(SignatureKind kind, SignatureCallingConvention convention,
SignatureAttributes
attributes)
69
public
SignatureAttributes
Attributes
71
get { return (
SignatureAttributes
)(_rawValue & ~CallingConventionOrKindMask); }
76
get { return (_rawValue & (byte)
SignatureAttributes
.ExplicitThis) != 0; }
81
get { return (_rawValue & (byte)
SignatureAttributes
.Instance) != 0; }
86
get { return (_rawValue & (byte)
SignatureAttributes
.Generic) != 0; }
125
if (Attributes !=
SignatureAttributes
.None)