302 references to System_Int16
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (1)
277case SpecialType.System_Int16:
ILLink.RoslynAnalyzer (1)
TrimAnalysis\TrimAnalysisVisitor.cs (1)
449 case SpecialType.System_Int16 when constantValue is short int16ConstantValue:
Microsoft.Analyzers.Local (1)
CallAnalysis\ToInvariantString.cs (1)
19SpecialType.System_Int16,
Microsoft.CodeAnalysis (49)
Compilation\Expression.cs (1)
23case SpecialType.System_Int16:
ConstantValue.cs (2)
442case SpecialType.System_Int16: return ConstantValueTypeDiscriminator.Int16; 494case ConstantValueTypeDiscriminator.Int16: return SpecialType.System_Int16;
Emit\CommonPEModuleBuilder.cs (1)
1088this.GetSpecialType(SpecialType.System_Int16, syntaxNodeOpt, diagnostics),
MetadataReader\MetadataTypeCodeExtensions.cs (3)
34return SpecialType.System_Int16; 112case SpecialType.System_Int16: 154case SpecialType.System_Int16:
SpecialMembers.cs (2)
586(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int16, 665(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int16,
SpecialTypeExtensions.cs (12)
24case SpecialType.System_Int16: 49case SpecialType.System_Int16: 72case SpecialType.System_Int16: 105case SpecialType.System_Int16: 148case SpecialType.System_Int16: 170case SpecialType.System_Int16: 188case SpecialType.System_Int16: 212case SpecialType.System_Int16: 243case SpecialType.System_Int16: 263case SpecialType.System_Int16: 333return SpecialType.System_Int16; 382SpecialType.System_Int16 => (ulong)(short)value,
SpecialTypes.cs (2)
112s_typeIdToTypeCodeMap[(int)SpecialType.System_Int16] = Microsoft.Cci.PrimitiveTypeCode.Int16; 136s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.Int16] = SpecialType.System_Int16;
Symbols\Attributes\CommonAttributeData.cs (2)
413if (attribute.AttributeConstructor.Parameters[0].Type.SpecialType == SpecialType.System_Int16) 415options = (MethodImplOptions)attribute.CommonConstructorArguments[0].DecodeValue<short>(SpecialType.System_Int16);
Symbols\Attributes\MarshalAsAttributeDecoder.cs (3)
102if (attribute.AttributeConstructor.Parameters[0].Type.SpecialType == SpecialType.System_Int16) 104unmanagedType = (UnmanagedType)attribute.CommonConstructorArguments[0].DecodeValue<short>(SpecialType.System_Int16); 252parameterIndex = namedArg.Value.DecodeValue<short>(SpecialType.System_Int16);
Symbols\INamedTypeSymbolInternal.cs (1)
50case SpecialType.System_Int16:
Symbols\TypedConstant.cs (1)
166case SpecialType.System_Int16:
WellKnownMembers.cs (19)
146(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int16, // Return Type 154(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int16, // Return Type 162(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int16, // Return Type 702(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int16, 1370(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int16, // Return Type 1586(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int16, // Return Type 2082(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int16, // Field Signature 3610(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int16, // Argument: short 3618(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int16, // Argument: short 3631(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int16, // Argument 3662(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int16, 3670(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int16, // Argument: short 3678(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int16, // Argument: short 3691(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int16, // Argument 3700(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int16, // Argument: short 3708(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int16, // Argument: short 3721(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int16, // Argument 3734(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int16, // Argument 3751(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int16, // Argument
Microsoft.CodeAnalysis.CodeStyle (19)
src\Compilers\Core\Portable\SpecialTypeExtensions.cs (12)
24case SpecialType.System_Int16: 49case SpecialType.System_Int16: 72case SpecialType.System_Int16: 105case SpecialType.System_Int16: 148case SpecialType.System_Int16: 170case SpecialType.System_Int16: 188case SpecialType.System_Int16: 212case SpecialType.System_Int16: 243case SpecialType.System_Int16: 263case SpecialType.System_Int16: 333return SpecialType.System_Int16; 382SpecialType.System_Int16 => (ulong)(short)value,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (3)
292case SpecialType.System_Int16: 386case SpecialType.System_Int16: 660case SpecialType.System_Int16:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\PredefinedTypeExtensions.cs (1)
20PredefinedType.Int16 => SpecialType.System_Int16,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs (1)
20SpecialType.System_Int16 => PredefinedType.Int16,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (1)
62SpecialType.System_Int16 => (short)1,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IntegerUtilities.cs (1)
65SpecialType.System_Int16 => unchecked((short)v),
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
390case SpecialType.System_Int16:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
138SpecialType.System_Int16 => value is short,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (1)
21case SpecialType.System_Int16:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
420case SpecialType.System_Int16:
Microsoft.CodeAnalysis.CSharp (45)
Binder\Binder_Expressions.cs (2)
7264case SpecialType.System_Int16: 7323specialType != SpecialType.System_Int16 &&
Binder\Binder_Operators.cs (1)
1696case SpecialType.System_Int16:
Binder\Binder_Patterns.cs (1)
1703SpecialType.System_Int16 => BinaryOperatorKind.Int, // operands are converted to int
Binder\DecisionDagBuilder.cs (2)
1566case (SpecialType.System_Int16, SpecialType.System_UInt16): 1567case (SpecialType.System_UInt16, SpecialType.System_Int16):
Binder\PatternExplainer.cs (1)
725case SpecialType.System_Int16:
Binder\Semantics\Conversions\ConversionsBase.cs (4)
1375case SpecialType.System_Int16: 2106case SpecialType.System_Int16: 2190case SpecialType.System_Int16: 3928case SpecialType.System_Int16:
Binder\Semantics\Operators\OperatorFacts.cs (1)
42case SpecialType.System_Int16:
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
3742case SpecialType.System_Int16:
CodeGen\EmitArrayInitializer.cs (1)
802SpecialType.System_Int16 or SpecialType.System_UInt16 or SpecialType.System_Char or
CodeGen\EmitExpression.cs (1)
1338case SpecialType.System_Int16:
CodeGen\EmitOperators.cs (1)
687case SpecialType.System_Int16:
Compilation\BuiltInOperators.cs (1)
266case UnaryOperatorKind.Short: opType = _compilation.GetSpecialType(SpecialType.System_Int16); break;
Compilation\CSharpCompilation.cs (1)
1724case SpecialType.System_Int16:
FlowAnalysis\AbstractFlowPass.cs (1)
1464case SpecialType.System_Int16:
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (1)
336var versionSymbol = F.SynthesizedLocal(F.SpecialType(SpecialType.System_Int16));
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
219SpecialType.System_Int16 or SpecialType.System_UInt16 or SpecialType.System_Char
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
419SpecialType.System_Int16 => true,
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (6)
1557case SpecialType.System_Int16: 1586case SpecialType.System_Int16: 1607case SpecialType.System_Int16: 1631case SpecialType.System_Int16: 1661case SpecialType.System_Int16: return SpecialMember.System_Decimal__op_Explicit_ToInt16; 1681case SpecialType.System_Int16: return SpecialMember.System_Decimal__op_Implicit_FromInt16;
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (2)
920specialType = SpecialType.System_Int16; 1034case SpecialType.System_Int16:
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
643case SpecialType.System_Int16:
Symbols\Attributes\AttributeData.cs (2)
581(ClassInterfaceType)ctorArgument.DecodeValue<short>(SpecialType.System_Int16); 606(ComInterfaceType)ctorArgument.DecodeValue<short>(SpecialType.System_Int16);
Symbols\Attributes\SourceAttributeData.cs (1)
358if (specType != SpecialType.System_Int16)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
1920case SpecialType.System_Int16:
Symbols\Source\SourceAssemblySymbol.cs (1)
2791case SpecialType.System_Int16:
Symbols\SpecialTypeExtensions.cs (2)
18case SpecialType.System_Int16: 41case SpecialType.System_Int16:
Symbols\TypeSymbolExtensions.cs (5)
648case SpecialType.System_Int16: 1347case SpecialType.System_Int16: 1454case SpecialType.System_Int16: 2218case SpecialType.System_Int16: return 5; 2241case SpecialType.System_Int16: return 20;
Syntax\SyntaxKindExtensions.cs (1)
24return SpecialType.System_Int16;
Utilities\ValueSetFactory.cs (1)
39SpecialType.System_Int16 => ForShort,
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ITypeSymbolExtensions.cs (1)
22case SpecialType.System_Int16:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
Emit\EmitMetadataTests.cs (2)
459Assert.Same(module.GetCorLibType(SpecialType.System_Int16), method4ParamTypes[3]); 1355CheckEnumType(type, Accessibility.Internal, SpecialType.System_Int16);
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\KeywordRecommenders\ShortKeywordRecommender.cs (1)
55protected override SpecialType SpecialType => SpecialType.System_Int16;
Completion\Providers\DefaultArgumentProvider.cs (1)
43SpecialType.System_Int16 => "(short)0",
Microsoft.CodeAnalysis.CSharp.Scripting (1)
Hosting\ObjectFormatter\CSharpTypeNameFormatter.cs (1)
36case SpecialType.System_Int16: return "short";
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\InteractiveUsingTests.cs (1)
190Assert.Equal(SpecialType.System_Int16, GetSpeculativeType(sub2, "A").SpecialType);
Semantics\NativeIntegerTests.cs (3)
3685Assert.Equal(SpecialType.System_Int16, underlyingType0.SpecialType); 3719Assert.Equal(SpecialType.System_Int16, underlyingType0.SpecialType); 3753Assert.Equal(SpecialType.System_Int16, underlyingType0.SpecialType);
Semantics\RefFieldTests.cs (1)
2102Assert.Equal(SpecialType.System_Int16, type.EnumUnderlyingType.SpecialType);
Semantics\UnsafeTests.cs (2)
10583{ SpecialType.System_Int16, 2 }, 11335Assert.Equal(SpecialType.System_Int16, countSummary.Type.SpecialType);
Utilities\ValueSetTests.cs (1)
494Assert.Same(ForShort, ForSpecialType(SpecialType.System_Int16));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (16)
Compilation\SemanticModelAPITests.cs (1)
3916Assert.True(typeInfo0.Type != null && typeInfo0.Type.SpecialType == SpecialType.System_Int16);
Symbols\Retargeting\RetargetingTests.cs (8)
385Assert.Equal(SpecialType.System_Int16, sourceType.EnumUnderlyingType.SpecialType); 394Assert.Equal(SpecialType.System_Int16, retargetingType.EnumUnderlyingType.SpecialType); 443Assert.Equal(SpecialType.System_Int16, sourceType.BaseType().SpecialType); 449Assert.Equal(SpecialType.System_Int16, retargetingType.BaseType().SpecialType); 524Assert.Equal(SpecialType.System_Int16, sourceType.Interfaces().Single().SpecialType); 531Assert.Equal(SpecialType.System_Int16, retargetingType.Interfaces().Single().SpecialType); 582Assert.Equal(SpecialType.System_Int16, sourceType.Interfaces().Single().SpecialType); 588Assert.Equal(SpecialType.System_Int16, retargetingType.Interfaces().Single().SpecialType);
Symbols\Source\CustomModifierCopyTests.cs (4)
1782var int16Type = comp.GetSpecialType(SpecialType.System_Int16); 1899var int16Type = comp.GetSpecialType(SpecialType.System_Int16); 1996var int16Type = comp.GetSpecialType(SpecialType.System_Int16); 2098var int16Type = comp.GetSpecialType(SpecialType.System_Int16);
Symbols\Source\EnumTests.cs (2)
98VerifyEnumsValue(comp, "Suits", SpecialType.System_Int16, (short)0, (short)1, (short)2, null, null, null); 724VerifyEnumsValue(comp, "Figure", SpecialType.System_Int16, (short)0, (short)1, (short)2);
Symbols\TypeTests.cs (1)
1540Assert.Same(comp.GetSpecialType(SpecialType.System_Int16), underType);
Microsoft.CodeAnalysis.CSharp.Workspaces (14)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
3244case SpecialType.System_Int16: 3433SpecialType.System_Int16 => ShortKeyword,
Recommendations\CSharpRecommendationServiceRunner_Conversions.cs (10)
30SpecialType.System_Int16, 57private static readonly ImmutableArray<SpecialType> s_uint16Conversions = [SpecialType.System_Byte, SpecialType.System_Char, SpecialType.System_SByte, SpecialType.System_Int16]; 64SpecialType.System_Int16, 76SpecialType.System_Int16, 89SpecialType.System_Int16, 101SpecialType.System_Int16, 104private static readonly ImmutableArray<SpecialType> s_charConversions = [SpecialType.System_Byte, SpecialType.System_SByte, SpecialType.System_Int16]; 117SpecialType.System_Int16, 132SpecialType.System_Int16, 215SpecialType.System_Int16 => s_int16Conversions,
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (1)
46SpecialType.System_Int16 => SyntaxKind.ShortKeyword,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ITypeSymbolExtensions.cs (1)
22case SpecialType.System_Int16:
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
293VerifySyntax<TypeSyntax>(Generator.TypeExpression(SpecialType.System_Int16), "short");
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
PDB\PdbHelpers.cs (1)
92(SpecialType.System_Int16, short shortVal) => ConstantValue.Create(shortVal),
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
390case SpecialType.System_Int16:
Microsoft.CodeAnalysis.Scripting (2)
Hosting\ObjectFormatter\CommonPrimitiveFormatter.cs (1)
97case SpecialType.System_Int16:
Hosting\ObjectFormatter\ObjectFormatterHelpers.cs (1)
337return SpecialType.System_Int16;
Microsoft.CodeAnalysis.UnitTests (1)
CorLibTypesTests.cs (1)
52Assert.Equal(SpecialType.System_Int16, SpecialTypes.GetTypeFromMetadataName(Cci.PrimitiveTypeCode.Int16));
Microsoft.CodeAnalysis.VisualBasic (55)
Analysis\FlowAnalysis\AbstractFlowPass.vb (1)
339SpecialType.System_Int16,
Binding\Binder_Conversions.vb (1)
289Case SyntaxKind.CShortKeyword : targetType = SpecialType.System_Int16
Binding\Binder_Lookup.vb (1)
457Return SpecialType.System_Int16
Binding\Binder_SelectCase.vb (1)
702SpecialType.System_Int16,
Binding\Binder_Symbols.vb (1)
786type = SpecialType.System_Int16
Binding\Binder_Utils.vb (2)
728specialType = SpecialType.System_Int16 1377SpecialType.System_Int16,
Binding\DocumentationCommentCrefBinder_Compat.vb (1)
372type = SpecialType.System_Int16
BoundTree\BoundExpressionExtensions.vb (1)
428Case SpecialType.System_Int16
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (1)
484SpecialType.System_Int16,
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (5)
314Return Me._factory.SpecialType(SpecialType.System_Int16) 457Case SpecialType.System_Int16 : wellKnownHelper = WellKnownMember.System_Convert__ToBooleanInt32 488Case SpecialType.System_Int16 546Case SpecialType.System_Int16 : specialHelper = SpecialMember.System_Decimal__op_Implicit_FromInt32 583SpecialType.System_Int16,
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (5)
842Case SpecialType.System_Int16 : member = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToShortObject 931SpecialType.System_Int16, 1007Case SpecialType.System_Int16 : member = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToShortString 1075SpecialType.System_Int16, 1147Case SpecialType.System_Int16 : member = WellKnownMember.System_Convert__ToInt16Decimal
Preprocessor\CConst.vb (2)
53Case SpecialType.System_Int16 97Return New CConst(Of Short)(value, SpecialType.System_Int16)
Preprocessor\ExpressionEvaluator.vb (6)
27Const ____Int16 = CType(SpecialType.System_Int16, Byte) 79Case SpecialType.System_Int16 354Return SpecialType.System_Int16 505specialType = SpecialType.System_Int16 877Case SpecialType.System_Int16 916Case SpecialType.System_Int16
Preprocessor\OperatorResolution.vb (2)
38Case SpecialType.System_Int16 85Const t_i2 As Byte = CType(SpecialType.System_Int16, Byte)
Semantics\Conversions.vb (1)
3342Case SpecialType.System_Int16, SpecialType.System_UInt16
Semantics\Operators.vb (6)
592SpecialType.System_Int16, 621intrinsicOperatorType = SpecialType.System_Int16 625SpecialType.System_Int16, 655intrinsicOperatorType = SpecialType.System_Int16 658SpecialType.System_Int16, 1726Const tShr As SByte = SpecialType.System_Int16
Symbols\Attributes\AttributeData.vb (3)
442CType(ctorArgument.DecodeValue(Of Short)(SpecialType.System_Int16), ClassInterfaceType)) 469CType(ctorArgument.DecodeValue(Of Short)(SpecialType.System_Int16), ComInterfaceType)) 487CType(ctorArgument.DecodeValue(Of Short)(SpecialType.System_Int16), Cci.TypeLibTypeFlags))
Symbols\Attributes\SourceAttributeData.vb (1)
213foundMatch = specType = SpecialType.System_Int16
Symbols\Metadata\PE\PENamedTypeSymbol.vb (1)
1146SpecialType.System_Int16,
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (1)
1001New TypedConstant(_comClass.GetSpecialType(SpecialType.System_Int16),
Symbols\SpecialTypeExtensions.vb (10)
31SpecialType.System_Int16, 55SpecialType.System_Int16, 101SpecialType.System_Int16, 123SpecialType.System_Int16, 153Case SpecialType.System_Int16 196Case SpecialType.System_Int16 239Case SpecialType.System_Int16 283Case SpecialType.System_Int16 320Case SpecialType.System_Int16, SpecialType.System_UInt16 339Case SpecialType.System_Int16
Symbols\TypeSymbolExtensions.vb (1)
436Case SpecialType.System_Int16
Syntax\VisualBasicSyntaxTree.ConditionalSymbolsMap.vb (1)
185Case SpecialType.System_Int16
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (7)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (2)
73Return GenerateIntegralLiteralExpression(type, SpecialType.System_Int16, DirectCast(value, Short), canUseFieldReference, LiteralSpecialValues.Int16SpecialValues, Function(x) x < 0, Function(x) -x, "32768") 229If TypeOf value Is Short AndAlso Not IsSpecialType(type, SpecialType.System_Int16) Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ITypeSymbolExtensions.vb (3)
43Case specialType.System_Int16 87specialType = specialType.System_Int16 107SpecialType.System_Int16,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\StringExtensions.vb (1)
100SpecialType.System_Int16,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (1)
106Case SpecialType.System_Int16
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Emit\EmitMetadata.vb (1)
522Assert.Same([Module].GetCorLibType(SpecialType.System_Int16), method4ParamTypes(3))
Microsoft.CodeAnalysis.VisualBasic.Features (2)
Completion\KeywordRecommenders\Types\BuiltInTypesKeywordRecommender.vb (1)
96SpecialType.System_Int16,
Completion\Providers\DefaultArgumentProvider.vb (1)
34Case SpecialType.System_Int16
Microsoft.CodeAnalysis.VisualBasic.Scripting (1)
Hosting\ObjectFormatter\VisualBasicTypeNameFormatter.vb (1)
30Case SpecialType.System_Int16
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (13)
Semantics\Conversions.vb (10)
235Dim int16Type = c1.GetSpecialType(System_Int16) 1087Dim int16Type = c1.GetSpecialType(System_Int16) 1351Case System_Int16 : Return c.ToInt16(Nothing) 1376Case System_Int16 : Return UncheckedCShort(val) 1392Case System_Int16 : Return UncheckedCShort(val) 1408Case System_Int16 : Return UncheckedCShort(UncheckedCLng(val)) 1425Case System_Int16 : Return CShort(value) 2048c1.GetSpecialType(System_Int16), 2064nullable.Construct(c1.GetSpecialType(System_Int16)), 2188Private Const s_short = System_Int16
Semantics\GetExtendedSemanticInfoTests.vb (1)
3433Assert.Equal(System_Int16, semanticInfo.ConvertedType.SpecialType)
Semantics\OverloadResolution.vb (2)
204Dim shortVal As BoundExpression = New BoundRValuePlaceholder(_syntaxNode, c1.GetSpecialType(System_Int16)) 2509Dim numericTypesPrecedence = {System_SByte, System_Byte, System_Int16, System_UInt16,
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (7)
SymbolsTests\Retargeting\RetargetingTests.vb (6)
404Assert.Equal(SpecialType.System_Int16, sourceType.EnumUnderlyingType.SpecialType) 413Assert.Equal(SpecialType.System_Int16, retargetingType.EnumUnderlyingType.SpecialType) 634Assert.Equal(SpecialType.System_Int16, sourceTypeParameterConstraint.SpecialType) 640Assert.Equal(SpecialType.System_Int16, retargetingTypeParameterConstraint.SpecialType) 676Assert.Equal(SpecialType.System_Int16, sourceTypeParameterConstraint.SpecialType) 683Assert.Equal(SpecialType.System_Int16, retargetingTypeParameterConstraint.SpecialType)
SymbolsTests\Source\EnumTests.vb (1)
166fields = VerifyEnumsValue(text, "Suits", SpecialType.System_Int16, CShort(0), CShort(1), CShort(2), Nothing, Nothing, Nothing)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Syntax\ConstantExpressionEvaluatorTests.vb (1)
14Assert.Equal(ConstantValueTypeDiscriminator.Int16, SpecialType.System_Int16.ToConstantValueDiscriminator())
Microsoft.CodeAnalysis.VisualBasic.Workspaces (9)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
403Case SpecialType.System_Int16
Simplification\Simplifiers\AbstractVisualBasicSimplifier.vb (1)
33Case SpecialType.System_Int16
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (2)
73Return GenerateIntegralLiteralExpression(type, SpecialType.System_Int16, DirectCast(value, Short), canUseFieldReference, LiteralSpecialValues.Int16SpecialValues, Function(x) x < 0, Function(x) -x, "32768") 229If TypeOf value Is Short AndAlso Not IsSpecialType(type, SpecialType.System_Int16) Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ITypeSymbolExtensions.vb (3)
43Case specialType.System_Int16 87specialType = specialType.System_Int16 107SpecialType.System_Int16,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\StringExtensions.vb (1)
100SpecialType.System_Int16,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (1)
106Case SpecialType.System_Int16
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.vb (1)
269VerifySyntax(Of TypeSyntax)(Generator.TypeExpression(SpecialType.System_Int16), "Short")
Microsoft.CodeAnalysis.Workspaces (24)
Recommendations\AbstractRecommendationServiceRunner.cs (1)
308AddSpecialTypeSymbolAndItsAliases(nameof(Int16), SpecialType.System_Int16);
Shared\Utilities\EditorBrowsableHelpers.cs (1)
100var shortType = compilation.GetSpecialType(SpecialType.System_Int16);
src\Compilers\Core\Portable\SpecialTypeExtensions.cs (12)
24case SpecialType.System_Int16: 49case SpecialType.System_Int16: 72case SpecialType.System_Int16: 105case SpecialType.System_Int16: 148case SpecialType.System_Int16: 170case SpecialType.System_Int16: 188case SpecialType.System_Int16: 212case SpecialType.System_Int16: 243case SpecialType.System_Int16: 263case SpecialType.System_Int16: 333return SpecialType.System_Int16; 382SpecialType.System_Int16 => (ulong)(short)value,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (3)
292case SpecialType.System_Int16: 386case SpecialType.System_Int16: 660case SpecialType.System_Int16:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\PredefinedTypeExtensions.cs (1)
20PredefinedType.Int16 => SpecialType.System_Int16,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs (1)
20SpecialType.System_Int16 => PredefinedType.Int16,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (1)
62SpecialType.System_Int16 => (short)1,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IntegerUtilities.cs (1)
65SpecialType.System_Int16 => unchecked((short)v),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
138SpecialType.System_Int16 => value is short,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (1)
21case SpecialType.System_Int16:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
420case SpecialType.System_Int16:
Microsoft.Extensions.Options.SourceGeneration (1)
OptionsSourceGenContext.cs (1)
55SpecialType.System_Int16 => true,
Microsoft.Gen.Metrics (1)
Parser.cs (1)
37SpecialType.System_Int16,
Microsoft.Gen.MetricsReports (1)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (1)
37SpecialType.System_Int16,
Microsoft.Interop.JavaScript.JSImportGenerator (1)
JSManagedTypeInfo.cs (1)
39case { SpecialType: SpecialType.System_Int16 }:
Microsoft.Interop.SourceGeneration (4)
ManagedTypeInfo.cs (1)
84public static readonly SpecialTypeInfo Int16 = new("short", "short", SpecialType.System_Int16);
Marshalling\MarshalAsMarshallingGeneratorResolver.cs (1)
43or { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_Int16 }, MarshallingAttributeInfo: NoMarshallingInfo or MarshalAsInfo(UnmanagedType.I2, _) }
TypeSymbolExtensions.cs (2)
179or SpecialType.System_Int16 194or SpecialType.System_Int16
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService.cs (1)
725case SpecialType.System_Int16:
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
CodeModel\VisualBasicCodeModelService.vb (1)
781Case SpecialType.System_Int16
System.Text.Json.SourceGeneration (1)
Helpers\RoslynExtensions.cs (1)
193SpecialType.System_SByte or SpecialType.System_Int16 or SpecialType.System_Int32 or SpecialType.System_Int64 or