53 references to DecodeValue
Microsoft.CodeAnalysis (30)
Symbols\Attributes\CommonAttributeData.cs (18)
150
return constructorArgs[i].
DecodeValue
<T>(specialType);
173
return index >= 0 ? namedArguments[index].Value.
DecodeValue
<T>(specialType) : defaultValue;
213
byte scale = args[0].
DecodeValue
<byte>(SpecialType.System_Byte);
214
bool isNegative = args[1].
DecodeValue
<byte>(SpecialType.System_Byte) != 0;
222
high = args[2].
DecodeValue
<int>(SpecialType.System_Int32);
223
mid = args[3].
DecodeValue
<int>(SpecialType.System_Int32);
224
low = args[4].
DecodeValue
<int>(SpecialType.System_Int32);
232
high = unchecked((int)args[2].
DecodeValue
<uint>(SpecialType.System_UInt32));
233
mid = unchecked((int)args[3].
DecodeValue
<uint>(SpecialType.System_UInt32));
234
low = unchecked((int)args[4].
DecodeValue
<uint>(SpecialType.System_UInt32));
242
long value = this.CommonConstructorArguments[0].
DecodeValue
<long>(SpecialType.System_Int64);
415
options = (MethodImplOptions)attribute.CommonConstructorArguments[0].
DecodeValue
<short>(SpecialType.System_Int16);
419
options = attribute.CommonConstructorArguments[0].
DecodeValue
<MethodImplOptions>(SpecialType.System_Enum);
440
var value = (MethodImplAttributes)namedArg.Value.
DecodeValue
<int>(SpecialType.System_Enum);
477
LayoutKind kind = attribute.CommonConstructorArguments[0].
DecodeValue
<LayoutKind>(SpecialType.System_Enum);
497
charSet = namedArg.Value.
DecodeValue
<CharSet>(SpecialType.System_Enum);
518
alignment = namedArg.Value.
DecodeValue
<int>(SpecialType.System_Int32);
530
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);
311
elementTypeVariant = namedArg.Value.
DecodeValue
<Cci.VarEnum>(SpecialType.System_Enum);
321
elementTypeSymbol = namedArg.Value.
DecodeValue
<ITypeSymbolInternal>(SpecialType.None);
379
elementCount = namedArg.Value.
DecodeValue
<int>(SpecialType.System_Int32);
Microsoft.CodeAnalysis.CSharp (23)
Symbols\Attributes\AttributeData.cs (9)
261
string? memberName = value.
DecodeValue
<string>(SpecialType.System_String);
273
var memberName = member.
DecodeValue
<string>(SpecialType.System_String);
309
var sense = arguments.Attribute.CommonConstructorArguments[0].
DecodeValue
<bool>(SpecialType.System_Boolean);
312
var memberName = value.
DecodeValue
<string>(SpecialType.System_String);
324
var memberName = member.
DecodeValue
<string>(SpecialType.System_String);
578
ctorArgument.
DecodeValue
<ClassInterfaceType>(SpecialType.System_Enum) :
579
(ClassInterfaceType)ctorArgument.
DecodeValue
<short>(SpecialType.System_Int16);
603
ctorArgument.
DecodeValue
<ComInterfaceType>(SpecialType.System_Enum) :
604
(ComInterfaceType)ctorArgument.
DecodeValue
<short>(SpecialType.System_Int16);
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
189
int offset = attribute.CommonConstructorArguments[0].
DecodeValue
<int>(SpecialType.System_Int32);
Symbols\Source\SourceAssemblySymbol.cs (1)
2547
wrapNonExceptionThrows = namedArg.Value.
DecodeValue
<bool>(SpecialType.System_Boolean);
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1340
var name = constant.
DecodeValue
<string>(SpecialType.System_String);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (7)
890
charSet = namedArg.Value.
DecodeValue
<CharSet>(SpecialType.System_Enum);
895
setLastError = namedArg.Value.
DecodeValue
<bool>(SpecialType.System_Boolean);
900
exactSpelling = namedArg.Value.
DecodeValue
<bool>(SpecialType.System_Boolean);
904
preserveSig = namedArg.Value.
DecodeValue
<bool>(SpecialType.System_Boolean);
909
callingConvention = namedArg.Value.
DecodeValue
<CallingConvention>(SpecialType.System_Enum);
913
bestFitMapping = namedArg.Value.
DecodeValue
<bool>(SpecialType.System_Boolean);
917
throwOnUnmappable = namedArg.Value.
DecodeValue
<bool>(SpecialType.System_Boolean);
Symbols\Source\SourceNamedTypeSymbol.cs (2)
1197
string? methodName = attribute.CommonConstructorArguments[1].
DecodeValue
<string>(SpecialType.System_String);
1209
int length = attribute.CommonConstructorArguments[0].
DecodeValue
<int>(SpecialType.System_Int32);
Symbols\Source\SourcePropertySymbolBase.cs (2)
1465
string? indexerName = attributeData.CommonConstructorArguments[0].
DecodeValue
<string>(SpecialType.System_String);
1726
string indexerName = attribute.CommonConstructorArguments[0].
DecodeValue
<string>(SpecialType.System_String);