65 references to DecodeValue
Microsoft.CodeAnalysis (30)
Symbols\Attributes\CommonAttributeData.cs (18)
145
return constructorArgs[i].
DecodeValue
<T>(specialType);
168
return index >= 0 ? namedArguments[index].Value.
DecodeValue
<T>(specialType) : defaultValue;
208
byte scale = args[0].
DecodeValue
<byte>(SpecialType.System_Byte);
209
bool isNegative = args[1].
DecodeValue
<byte>(SpecialType.System_Byte) != 0;
217
high = args[2].
DecodeValue
<int>(SpecialType.System_Int32);
218
mid = args[3].
DecodeValue
<int>(SpecialType.System_Int32);
219
low = args[4].
DecodeValue
<int>(SpecialType.System_Int32);
227
high = unchecked((int)args[2].
DecodeValue
<uint>(SpecialType.System_UInt32));
228
mid = unchecked((int)args[3].
DecodeValue
<uint>(SpecialType.System_UInt32));
229
low = unchecked((int)args[4].
DecodeValue
<uint>(SpecialType.System_UInt32));
237
long value = this.CommonConstructorArguments[0].
DecodeValue
<long>(SpecialType.System_Int64);
373
options = (MethodImplOptions)attribute.CommonConstructorArguments[0].
DecodeValue
<short>(SpecialType.System_Int16);
377
options = attribute.CommonConstructorArguments[0].
DecodeValue
<MethodImplOptions>(SpecialType.System_Enum);
398
var value = (MethodImplAttributes)namedArg.Value.
DecodeValue
<int>(SpecialType.System_Enum);
435
LayoutKind kind = attribute.CommonConstructorArguments[0].
DecodeValue
<LayoutKind>(SpecialType.System_Enum);
455
charSet = namedArg.Value.
DecodeValue
<CharSet>(SpecialType.System_Enum);
476
alignment = namedArg.Value.
DecodeValue
<int>(SpecialType.System_Int32);
488
size = namedArg.Value.
DecodeValue
<int>(Microsoft.CodeAnalysis.SpecialType.System_Int32);
Symbols\Attributes\MarshalAsAttributeDecoder.cs (12)
104
unmanagedType = (UnmanagedType)attribute.CommonConstructorArguments[0].
DecodeValue
<short>(SpecialType.System_Int16);
108
unmanagedType = attribute.CommonConstructorArguments[0].
DecodeValue
<UnmanagedType>(SpecialType.System_Enum);
131
typeName = namedArg.Value.
DecodeValue
<string>(SpecialType.System_String);
142
typeSymbol = namedArg.Value.
DecodeValue
<ITypeSymbolInternal>(SpecialType.None);
147
cookie = namedArg.Value.
DecodeValue
<string>(SpecialType.System_String);
187
parameterIndex = namedArg.Value.
DecodeValue
<int>(SpecialType.System_Int32);
223
elementType = namedArg.Value.
DecodeValue
<UnmanagedType>(SpecialType.System_Enum);
237
elementCount = namedArg.Value.
DecodeValue
<int>(SpecialType.System_Int32);
252
parameterIndex = namedArg.Value.
DecodeValue
<short>(SpecialType.System_Int16);
300
elementTypeVariant = namedArg.Value.
DecodeValue
<Cci.VarEnum>(SpecialType.System_Enum);
310
elementTypeSymbol = namedArg.Value.
DecodeValue
<ITypeSymbolInternal>(SpecialType.None);
368
elementCount = namedArg.Value.
DecodeValue
<int>(SpecialType.System_Int32);
Microsoft.CodeAnalysis.CSharp (21)
Symbols\Attributes\AttributeData.cs (9)
283
string? memberName = value.
DecodeValue
<string>(SpecialType.System_String);
295
var memberName = member.
DecodeValue
<string>(SpecialType.System_String);
331
var sense = arguments.Attribute.CommonConstructorArguments[0].
DecodeValue
<bool>(SpecialType.System_Boolean);
334
var memberName = value.
DecodeValue
<string>(SpecialType.System_String);
346
var memberName = member.
DecodeValue
<string>(SpecialType.System_String);
600
ctorArgument.
DecodeValue
<ClassInterfaceType>(SpecialType.System_Enum) :
601
(ClassInterfaceType)ctorArgument.
DecodeValue
<short>(SpecialType.System_Int16);
626
ctorArgument.
DecodeValue
<ComInterfaceType>(SpecialType.System_Enum) :
627
(ComInterfaceType)ctorArgument.
DecodeValue
<short>(SpecialType.System_Int16);
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
188
int offset = attribute.CommonConstructorArguments[0].
DecodeValue
<int>(SpecialType.System_Int32);
Symbols\Source\SourceAssemblySymbol.cs (1)
2507
wrapNonExceptionThrows = namedArg.Value.
DecodeValue
<bool>(SpecialType.System_Boolean);
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1331
var name = constant.
DecodeValue
<string>(SpecialType.System_String);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (7)
832
charSet = namedArg.Value.
DecodeValue
<CharSet>(SpecialType.System_Enum);
837
setLastError = namedArg.Value.
DecodeValue
<bool>(SpecialType.System_Boolean);
842
exactSpelling = namedArg.Value.
DecodeValue
<bool>(SpecialType.System_Boolean);
846
preserveSig = namedArg.Value.
DecodeValue
<bool>(SpecialType.System_Boolean);
851
callingConvention = namedArg.Value.
DecodeValue
<CallingConvention>(SpecialType.System_Enum);
855
bestFitMapping = namedArg.Value.
DecodeValue
<bool>(SpecialType.System_Boolean);
859
throwOnUnmappable = namedArg.Value.
DecodeValue
<bool>(SpecialType.System_Boolean);
Symbols\Source\SourcePropertySymbolBase.cs (2)
1194
string? indexerName = attributeData.CommonConstructorArguments[0].
DecodeValue
<string>(SpecialType.System_String);
1414
string indexerName = attribute.CommonConstructorArguments[0].
DecodeValue
<string>(SpecialType.System_String);
Microsoft.CodeAnalysis.VisualBasic (14)
Symbols\Attributes\AttributeData.vb (6)
444
ctorArgument.
DecodeValue
(Of ClassInterfaceType)(SpecialType.System_Enum),
445
CType(ctorArgument.
DecodeValue
(Of Short)(SpecialType.System_Int16), ClassInterfaceType))
471
ctorArgument.
DecodeValue
(Of ComInterfaceType)(SpecialType.System_Enum),
472
CType(ctorArgument.
DecodeValue
(Of Short)(SpecialType.System_Int16), ComInterfaceType))
489
ctorArgument.
DecodeValue
(Of Cci.TypeLibTypeFlags)(SpecialType.System_Enum),
490
CType(ctorArgument.
DecodeValue
(Of Short)(SpecialType.System_Int16), Cci.TypeLibTypeFlags))
Symbols\Source\SourceFieldSymbol.vb (1)
732
Dim offset = attrData.CommonConstructorArguments(0).
DecodeValue
(Of Integer)(SpecialType.System_Int32)
Symbols\Source\SourceMethodSymbol.vb (7)
1678
charSet = namedArg.Value.
DecodeValue
(Of CharSet)(SpecialType.System_Enum)
1681
setLastError = namedArg.Value.
DecodeValue
(Of Boolean)(SpecialType.System_Boolean)
1684
exactSpelling = namedArg.Value.
DecodeValue
(Of Boolean)(SpecialType.System_Boolean)
1687
preserveSig = namedArg.Value.
DecodeValue
(Of Boolean)(SpecialType.System_Boolean)
1690
callingConvention = namedArg.Value.
DecodeValue
(Of System.Runtime.InteropServices.CallingConvention)(SpecialType.System_Enum)
1693
bestFitMapping = namedArg.Value.
DecodeValue
(Of Boolean)(SpecialType.System_Boolean)
1696
throwOnUnmappable = namedArg.Value.
DecodeValue
(Of Boolean)(SpecialType.System_Boolean)