243 references to System_UInt16
Microsoft.CodeAnalysis (29)
Compilation\Expression.cs (1)
21case SpecialType.System_UInt16:
ConstantValue.cs (2)
439case SpecialType.System_UInt16: return ConstantValueTypeDiscriminator.UInt16; 491case ConstantValueTypeDiscriminator.UInt16: return SpecialType.System_UInt16;
InternalUtilities\EnumUtilties.cs (1)
38case SpecialType.System_UInt16:
MetadataReader\MetadataTypeCodeExtensions.cs (3)
37return SpecialType.System_UInt16; 113case SpecialType.System_UInt16: 151case SpecialType.System_UInt16:
SpecialMembers.cs (2)
529(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_UInt16, 560(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_UInt16,
SpecialTypeExtensions.cs (10)
24case SpecialType.System_UInt16: 49case SpecialType.System_UInt16: 72case SpecialType.System_UInt16: 106case SpecialType.System_UInt16: 150case SpecialType.System_UInt16: 170case SpecialType.System_UInt16: 188case SpecialType.System_UInt16: 212case SpecialType.System_UInt16: 228case SpecialType.System_UInt16: 337return SpecialType.System_UInt16;
SpecialTypes.cs (2)
110s_typeIdToTypeCodeMap[(int)SpecialType.System_UInt16] = Microsoft.Cci.PrimitiveTypeCode.UInt16; 134s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.UInt16] = SpecialType.System_UInt16;
Symbols\TypedConstant.cs (1)
168case SpecialType.System_UInt16:
WellKnownMembers.cs (7)
190(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_UInt16, // Return Type 198(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_UInt16, // Return Type 206(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_UInt16, // Return Type 1370(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_UInt16, // Return Type 1586(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_UInt16, // Return Type 3031(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_UInt16, // Value 3149(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_UInt16, // Value
Microsoft.CodeAnalysis.CodeStyle (17)
EnumUtilties.cs (1)
38case SpecialType.System_UInt16:
IntegerUtilities.cs (1)
66SpecialType.System_UInt16 => unchecked((ushort)v),
ITypeSymbolExtensions.cs (3)
291case SpecialType.System_UInt16: 389case SpecialType.System_UInt16: 651case SpecialType.System_UInt16:
J\s\src\Compilers\Core\Portable\SpecialTypeExtensions.cs\SpecialTypeExtensions.cs (10)
24case SpecialType.System_UInt16: 49case SpecialType.System_UInt16: 72case SpecialType.System_UInt16: 106case SpecialType.System_UInt16: 150case SpecialType.System_UInt16: 170case SpecialType.System_UInt16: 188case SpecialType.System_UInt16: 212case SpecialType.System_UInt16: 228case SpecialType.System_UInt16: 337return SpecialType.System_UInt16;
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs\SpecialTypeExtensions.cs (1)
21SpecialType.System_UInt16 => PredefinedType.UInt16,
PredefinedTypeExtensions.cs (1)
21PredefinedType.UInt16 => SpecialType.System_UInt16,
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
CodeGenerationHelpers.cs (1)
140SpecialType.System_UInt16 => value is ushort,
SyntaxGeneratorExtensions_Negate.cs (1)
433case SpecialType.System_UInt16:
Microsoft.CodeAnalysis.CSharp (58)
Binder\Binder_Conversions.cs (15)
1742case SpecialType.System_UInt16: return (ushort)byteValue; 1762case SpecialType.System_UInt16: return (ushort)charValue; 1782case SpecialType.System_UInt16: return (ushort)uint16Value; 1802case SpecialType.System_UInt16: return (ushort)uint32Value; 1822case SpecialType.System_UInt16: return (ushort)uint64Value; 1842case SpecialType.System_UInt16: return (ushort)nuintValue; 1861case SpecialType.System_UInt16: return (ushort)sbyteValue; 1881case SpecialType.System_UInt16: return (ushort)int16Value; 1901case SpecialType.System_UInt16: return (ushort)int32Value; 1921case SpecialType.System_UInt16: return (ushort)int64Value; 1941case SpecialType.System_UInt16: return (ushort)nintValue; 1965case SpecialType.System_UInt16: return (ushort)doubleValue; 1985case SpecialType.System_UInt16: return (ushort)decimalValue; 2036case SpecialType.System_UInt16: return (ushort.MinValue - 1D) < value && value < (ushort.MaxValue + 1D); 2066case SpecialType.System_UInt16: return (ushort.MinValue - 1M) < value && value < (ushort.MaxValue + 1M);
Binder\Binder_Expressions.cs (2)
6203case SpecialType.System_UInt16: 6259specialType != SpecialType.System_UInt16);
Binder\Binder_Operators.cs (1)
1661case SpecialType.System_UInt16:
Binder\Binder_Patterns.cs (1)
1692SpecialType.System_UInt16 => BinaryOperatorKind.Int, // operands are converted to int
Binder\DecisionDagBuilder.cs (2)
1517case (SpecialType.System_Int16, SpecialType.System_UInt16): 1518case (SpecialType.System_UInt16, SpecialType.System_Int16):
Binder\PatternExplainer.cs (1)
724case SpecialType.System_UInt16:
Binder\Semantics\Conversions\ConversionsBase.cs (4)
1309case SpecialType.System_UInt16: 1958case SpecialType.System_UInt16: 2042case SpecialType.System_UInt16: 3690case SpecialType.System_UInt16:
Binder\Semantics\Operators\OperatorFacts.cs (1)
52case SpecialType.System_UInt16:
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
3062case SpecialType.System_UInt16:
CodeGen\EmitArrayInitializer.cs (1)
706SpecialType.System_Int16 or SpecialType.System_UInt16 or SpecialType.System_Char or
CodeGen\EmitExpression.cs (1)
1310case SpecialType.System_UInt16:
CodeGen\EmitOperators.cs (2)
618case SpecialType.System_UInt16: 696case SpecialType.System_UInt16:
Compilation\BuiltInOperators.cs (1)
267case UnaryOperatorKind.UShort: opType = _compilation.GetSpecialType(SpecialType.System_UInt16); break;
Compiler\ClsComplianceChecker.cs (1)
1018case SpecialType.System_UInt16:
FlowAnalysis\AbstractFlowPass.cs (1)
1378case SpecialType.System_UInt16:
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
219SpecialType.System_Int16 or SpecialType.System_UInt16 or SpecialType.System_Char
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
420SpecialType.System_UInt16 => true,
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (6)
1405case SpecialType.System_UInt16: 1428case SpecialType.System_UInt16: 1455case SpecialType.System_UInt16: 1481case SpecialType.System_UInt16: 1509case SpecialType.System_UInt16: return SpecialMember.System_Decimal__op_Explicit_ToUInt16; 1529case SpecialType.System_UInt16: return SpecialMember.System_Decimal__op_Implicit_FromUInt16;
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (2)
909specialType = SpecialType.System_UInt16; 1022case SpecialType.System_UInt16:
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
649case SpecialType.System_UInt16:
Symbols\Attributes\SourceAttributeData.cs (1)
332if (specType != SpecialType.System_UInt16)
Symbols\BaseTypeAnalysis.cs (1)
261case SpecialType.System_UInt16:
Symbols\Source\SourceAssemblySymbol.cs (1)
2749case SpecialType.System_UInt16:
Symbols\SpecialTypeExtensions.cs (2)
22case SpecialType.System_UInt16: 42case SpecialType.System_UInt16:
Symbols\TypeSymbolExtensions.cs (5)
585case SpecialType.System_UInt16: 1260case SpecialType.System_UInt16: 1346case SpecialType.System_UInt16: 2121case SpecialType.System_UInt16: return 9; 2144case SpecialType.System_UInt16: return 24;
Syntax\SyntaxKindExtensions.cs (1)
26return SpecialType.System_UInt16;
Utilities\ValueSetFactory.cs (1)
40SpecialType.System_UInt16 => ForUShort,
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
ITypeSymbolExtensions.cs (1)
20case SpecialType.System_UInt16:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Emit\EmitMetadataTests.cs (1)
465Assert.Same(module.GetCorLibType(SpecialType.System_UInt16), method4ParamTypes[9]);
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\KeywordRecommenders\UShortKeywordRecommender.cs (1)
62protected override SpecialType SpecialType => SpecialType.System_UInt16;
Completion\Providers\DefaultArgumentProvider.cs (1)
44SpecialType.System_UInt16 => "(ushort)0",
ReverseForStatement\CSharpReverseForStatementCodeRefactoringProvider.cs (1)
96SpecialType.System_UInt16 => IsUnsignedBoundary(startValue, endValue, ushort.MaxValue),
Microsoft.CodeAnalysis.CSharp.Scripting (1)
Hosting\ObjectFormatter\CSharpTypeNameFormatter.cs (1)
42case SpecialType.System_UInt16: return "ushort";
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\RecordTests.cs (2)
12487CSharpCustomModifier.CreateOptional(comp.GetSpecialType(SpecialType.System_UInt16))); 12492CSharpCustomModifier.CreateOptional(comp.GetSpecialType(SpecialType.System_UInt16)));
Semantics\UnsafeTests.cs (1)
7739{ SpecialType.System_UInt16, 2 },
Utilities\ValueSetTests.cs (1)
495Assert.Same(ForUShort, ForSpecialType(SpecialType.System_UInt16));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\Source\ClsComplianceTests.cs (1)
3184case SpecialType.System_UInt16:
Symbols\TypeTests.cs (1)
1544Assert.Same(comp.GetSpecialType(SpecialType.System_UInt16), memType.GetNullableUnderlyingType());
Microsoft.CodeAnalysis.CSharp.Workspaces (14)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
3263case SpecialType.System_UInt16: 3458SpecialType.System_UInt16 => SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.UShortKeyword)),
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ITypeSymbolExtensions.cs\ITypeSymbolExtensions.cs (1)
20case SpecialType.System_UInt16:
Recommendations\CSharpRecommendationServiceRunner_Conversions.cs (10)
32SpecialType.System_UInt16); 39SpecialType.System_UInt16); 50SpecialType.System_UInt16, 65SpecialType.System_UInt16, 74SpecialType.System_UInt16); 82SpecialType.System_UInt16, 92SpecialType.System_UInt16, 109SpecialType.System_UInt16, 122SpecialType.System_UInt16, 207SpecialType.System_UInt16 => s_uint16Conversions,
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (1)
49SpecialType.System_UInt16 => SyntaxKind.UShortKeyword,
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
295VerifySyntax<TypeSyntax>(Generator.TypeExpression(SpecialType.System_UInt16), "ushort");
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
PDB\PdbHelpers.cs (1)
94(SpecialType.System_UInt16, ushort ushortVal) => ConstantValue.Create(ushortVal),
Microsoft.CodeAnalysis.Features (1)
ConvertNumericLiteral\AbstractConvertNumericLiteralCodeRefactoringProvider.cs (1)
158case SpecialType.System_UInt16:
Microsoft.CodeAnalysis.Scripting (2)
Hosting\ObjectFormatter\CommonPrimitiveFormatter.cs (1)
100case SpecialType.System_UInt16:
Hosting\ObjectFormatter\ObjectFormatterHelpers.cs (1)
342return SpecialType.System_UInt16;
Microsoft.CodeAnalysis.UnitTests (1)
CorLibTypesTests.cs (1)
56Assert.Equal(SpecialType.System_UInt16, SpecialTypes.GetTypeFromMetadataName(Cci.PrimitiveTypeCode.UInt16));
Microsoft.CodeAnalysis.VisualBasic (47)
Binding\Binder_Conversions.vb (1)
286Case SyntaxKind.CUShortKeyword : targetType = SpecialType.System_UInt16
Binding\Binder_Lookup.vb (1)
455Return SpecialType.System_UInt16
Binding\Binder_SelectCase.vb (1)
696SpecialType.System_UInt16,
Binding\Binder_Symbols.vb (1)
784type = SpecialType.System_UInt16
Binding\Binder_Utils.vb (2)
746specialType = SpecialType.System_UInt16 1378SpecialType.System_UInt16,
Binding\DocumentationCommentCrefBinder_Compat.vb (1)
370type = SpecialType.System_UInt16
Compilation\ClsComplianceChecker.vb (1)
632Case SpecialType.System_SByte, SpecialType.System_UInt16, SpecialType.System_UInt32, SpecialType.System_UInt64
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (1)
459SpecialType.System_UInt16,
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (5)
313Case SpecialType.System_UInt16 438Case SpecialType.System_UInt16 : wellKnownHelper = WellKnownMember.System_Convert__ToBooleanInt32 477Case SpecialType.System_UInt16 527Case SpecialType.System_UInt16 : specialHelper = SpecialMember.System_Decimal__op_Implicit_FromInt32 568Case SpecialType.System_UInt16,
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (5)
929Case SpecialType.System_UInt16 : member = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToUShortObject 1022Case SpecialType.System_UInt16, 1094Case SpecialType.System_UInt16 : member = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToUShortString 1162SpecialType.System_UInt16, 1234Case SpecialType.System_UInt16 : member = WellKnownMember.System_Convert__ToUInt16Decimal
Preprocessor\CConst.vb (2)
65Case SpecialType.System_UInt16 101Return New CConst(Of UShort)(value, SpecialType.System_UInt16)
Preprocessor\ExpressionEvaluator.vb (6)
28Const ___UInt16 = CType(SpecialType.System_UInt16, Byte) 81Case SpecialType.System_UInt16 357Return SpecialType.System_UInt16 508specialType = SpecialType.System_UInt16 887Case SpecialType.System_UInt16 926Case SpecialType.System_UInt16
Preprocessor\OperatorResolution.vb (2)
40Case SpecialType.System_UInt16 89Const t_ui2 As Byte = CType(SpecialType.System_UInt16, Byte)
Semantics\Conversions.vb (1)
3337Case SpecialType.System_Int16, SpecialType.System_UInt16
Semantics\Operators.vb (4)
593SpecialType.System_UInt16, 626SpecialType.System_UInt16, 668Case SpecialType.System_UInt16 1732Const tUSh As SByte = SpecialType.System_UInt16
Symbols\Attributes\SourceAttributeData.vb (1)
201foundMatch = specType = SpecialType.System_UInt16
Symbols\SpecialTypeExtensions.vb (10)
32SpecialType.System_UInt16, 58SpecialType.System_UInt16, 102SpecialType.System_UInt16, 124SpecialType.System_UInt16, 161Case SpecialType.System_UInt16 198Case SpecialType.System_UInt16 247Case SpecialType.System_UInt16 285Case SpecialType.System_UInt16 320Case SpecialType.System_Int16, SpecialType.System_UInt16 347Case SpecialType.System_UInt16
Symbols\TypeSymbolExtensions.vb (1)
438Case SpecialType.System_UInt16
Syntax\VisualBasicSyntaxTree.ConditionalSymbolsMap.vb (1)
197Case SpecialType.System_UInt16
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (5)
ITypeSymbolExtensions.vb (3)
51Case specialType.System_UInt16 93specialType = specialType.System_UInt16 108SpecialType.System_UInt16,
StringExtensions.vb (1)
101SpecialType.System_UInt16,
TypeSyntaxGeneratorVisitor.vb (1)
108Case SpecialType.System_UInt16
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Emit\EmitMetadata.vb (1)
528Assert.Same([Module].GetCorLibType(SpecialType.System_UInt16), method4ParamTypes(9))
Microsoft.CodeAnalysis.VisualBasic.Features (2)
Completion\KeywordRecommenders\Types\BuiltInTypesKeywordRecommender.vb (1)
104SpecialType.System_UInt16}
Completion\Providers\DefaultArgumentProvider.vb (1)
36Case SpecialType.System_UInt16
Microsoft.CodeAnalysis.VisualBasic.Scripting (1)
Hosting\ObjectFormatter\VisualBasicTypeNameFormatter.vb (1)
42Case SpecialType.System_UInt16
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (11)
Semantics\Conversions.vb (9)
236Dim uint16Type = c1.GetSpecialType(System_UInt16) 1087Dim uint16Type = c1.GetSpecialType(System_UInt16) 1350Case System_UInt16 : Return c.ToUInt16(Nothing) 1375Case System_UInt16 : Return UncheckedCUShort(UncheckedCLng(val)) 1391Case System_UInt16 : Return UncheckedCUShort(val) 1408Case System_UInt16 : Return CUShort(value) 2029c1.GetSpecialType(System_UInt16), 2045nullable.Construct(c1.GetSpecialType(System_UInt16)), 2169Private Const s_UShort = System_UInt16
Semantics\OverloadResolution.vb (2)
205Dim ushortVal As BoundExpression = New BoundRValuePlaceholder(_syntaxNode, c1.GetSpecialType(System_UInt16)) 2509Dim numericTypesPrecedence = {System_SByte, System_Byte, System_Int16, System_UInt16,
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (3)
DocumentationComments\DocCommentTests.vb (2)
4898TestSymbolAndTypeInfoForType(model, names(0), compilation.GetSpecialType(SpecialType.System_UInt16)) 4899TestSymbolAndTypeInfoForType(model, names(1), compilation.GetSpecialType(SpecialType.System_UInt16))
SymbolsTests\Source\ClsComplianceTests.vb (1)
2578Case SpecialType.System_SByte, SpecialType.System_UInt16, SpecialType.System_UInt32, SpecialType.System_UInt64, SpecialType.System_UIntPtr, SpecialType.System_TypedReference
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Syntax\ConstantExpressionEvaluatorTests.vb (1)
15Assert.Equal(ConstantValueTypeDiscriminator.UInt16, SpecialType.System_UInt16.ToConstantValueDiscriminator())
Microsoft.CodeAnalysis.VisualBasic.Workspaces (9)
CodeGeneration\ExpressionGenerator.vb (2)
81Return GenerateNonNegativeIntegralLiteralExpression(type, SpecialType.System_UInt16, DirectCast(value, UShort), canUseFieldReference, LiteralSpecialValues.UInt16SpecialValues) 249ElseIf TypeOf value Is UShort AndAlso Not IsSpecialType(type, SpecialType.System_UInt16) Then
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
438Case SpecialType.System_UInt16
ITypeSymbolExtensions.vb (3)
51Case specialType.System_UInt16 93specialType = specialType.System_UInt16 108SpecialType.System_UInt16,
Simplification\Simplifiers\AbstractVisualBasicSimplifier.vb (1)
35Case SpecialType.System_UInt16
StringExtensions.vb (1)
101SpecialType.System_UInt16,
TypeSyntaxGeneratorVisitor.vb (1)
108Case SpecialType.System_UInt16
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.vb (1)
270VerifySyntax(Of TypeSyntax)(Generator.TypeExpression(SpecialType.System_UInt16), "UShort")
Microsoft.CodeAnalysis.Workspaces (21)
CodeGenerationHelpers.cs (1)
140SpecialType.System_UInt16 => value is ushort,
EnumUtilties.cs (1)
38case SpecialType.System_UInt16:
IntegerUtilities.cs (1)
66SpecialType.System_UInt16 => unchecked((ushort)v),
J\s\src\Compilers\Core\Portable\SpecialTypeExtensions.cs\SpecialTypeExtensions.cs (10)
24case SpecialType.System_UInt16: 49case SpecialType.System_UInt16: 72case SpecialType.System_UInt16: 106case SpecialType.System_UInt16: 150case SpecialType.System_UInt16: 170case SpecialType.System_UInt16: 188case SpecialType.System_UInt16: 212case SpecialType.System_UInt16: 228case SpecialType.System_UInt16: 337return SpecialType.System_UInt16;
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs\ITypeSymbolExtensions.cs (3)
291case SpecialType.System_UInt16: 389case SpecialType.System_UInt16: 651case SpecialType.System_UInt16:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs\SpecialTypeExtensions.cs (1)
21SpecialType.System_UInt16 => PredefinedType.UInt16,
PredefinedTypeExtensions.cs (1)
21PredefinedType.UInt16 => SpecialType.System_UInt16,
Shared\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
414case SpecialType.System_UInt16:
Shared\Utilities\EnumValueUtilities.cs (1)
63SpecialType.System_UInt16 => (ushort)1,
SyntaxGeneratorExtensions_Negate.cs (1)
433case SpecialType.System_UInt16:
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\CSharpCodeModelService.cs (1)
740case SpecialType.System_UInt16:
CodeModel\MethodXml\MethodXmlBuilder.cs (1)
308GenerateNumber((ushort)ch, SpecialType.System_UInt16);
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
CodeModel\VisualBasicCodeModelService.vb (1)
783Case SpecialType.System_UInt16