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