247 references to System_SByte
Microsoft.CodeAnalysis (28)
Compilation\Expression.cs (1)
25case SpecialType.System_SByte:
ConstantValue.cs (2)
436case SpecialType.System_SByte: return ConstantValueTypeDiscriminator.SByte; 488case ConstantValueTypeDiscriminator.SByte: return SpecialType.System_SByte;
InternalUtilities\EnumUtilties.cs (1)
28case SpecialType.System_SByte:
MetadataReader\MetadataTypeCodeExtensions.cs (3)
28return SpecialType.System_SByte; 111case SpecialType.System_SByte: 136case SpecialType.System_SByte:
SpecialMembers.cs (2)
521(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_SByte, 568(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_SByte,
SpecialTypeExtensions.cs (11)
22case SpecialType.System_SByte: 47case SpecialType.System_SByte: 70case SpecialType.System_SByte: 100case SpecialType.System_SByte: 155case SpecialType.System_SByte: 168case SpecialType.System_SByte: 186case SpecialType.System_SByte: 210case SpecialType.System_SByte: 241case SpecialType.System_SByte: 260case SpecialType.System_SByte: 352return SpecialType.System_SByte;
SpecialTypes.cs (2)
107s_typeIdToTypeCodeMap[(int)SpecialType.System_SByte] = Microsoft.Cci.PrimitiveTypeCode.Int8; 131s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.Int8] = SpecialType.System_SByte;
Symbols\TypedConstant.cs (1)
163case SpecialType.System_SByte:
WellKnownMembers.cs (5)
118(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_SByte, // Return Type 126(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_SByte, // Return Type 134(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_SByte, // Return Type 1346(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_SByte, // Return Type 1562(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_SByte, // Return Type
Microsoft.CodeAnalysis.CodeStyle (18)
EnumUtilties.cs (1)
28case SpecialType.System_SByte:
IntegerUtilities.cs (1)
63SpecialType.System_SByte => unchecked((sbyte)v),
ITypeSymbolExtensions.cs (3)
289case SpecialType.System_SByte: 379case SpecialType.System_SByte: 648case SpecialType.System_SByte:
J\s\src\Compilers\Core\Portable\SpecialTypeExtensions.cs\SpecialTypeExtensions.cs (11)
22case SpecialType.System_SByte: 47case SpecialType.System_SByte: 70case SpecialType.System_SByte: 100case SpecialType.System_SByte: 155case SpecialType.System_SByte: 168case SpecialType.System_SByte: 186case SpecialType.System_SByte: 210case SpecialType.System_SByte: 241case SpecialType.System_SByte: 260case SpecialType.System_SByte: 352return SpecialType.System_SByte;
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs\SpecialTypeExtensions.cs (1)
18SpecialType.System_SByte => PredefinedType.SByte,
PredefinedTypeExtensions.cs (1)
18PredefinedType.SByte => SpecialType.System_SByte,
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
CodeGenerationHelpers.cs (1)
137SpecialType.System_SByte => value is sbyte,
Microsoft.CodeAnalysis.CSharp (57)
Binder\Binder_Conversions.cs (15)
1745case SpecialType.System_SByte: return (sbyte)byteValue; 1765case SpecialType.System_SByte: return (sbyte)charValue; 1785case SpecialType.System_SByte: return (sbyte)uint16Value; 1805case SpecialType.System_SByte: return (sbyte)uint32Value; 1825case SpecialType.System_SByte: return (sbyte)uint64Value; 1845case SpecialType.System_SByte: return (sbyte)nuintValue; 1864case SpecialType.System_SByte: return (sbyte)sbyteValue; 1884case SpecialType.System_SByte: return (sbyte)int16Value; 1904case SpecialType.System_SByte: return (sbyte)int32Value; 1924case SpecialType.System_SByte: return (sbyte)int64Value; 1944case SpecialType.System_SByte: return (sbyte)nintValue; 1968case SpecialType.System_SByte: return (sbyte)doubleValue; 1988case SpecialType.System_SByte: return (sbyte)decimalValue; 2039case SpecialType.System_SByte: return (sbyte.MinValue - 1D) < value && value < (sbyte.MaxValue + 1D); 2069case SpecialType.System_SByte: return (sbyte.MinValue - 1M) < value && value < (sbyte.MaxValue + 1M);
Binder\Binder_Expressions.cs (2)
6198case SpecialType.System_SByte: 6257specialType != SpecialType.System_SByte &&
Binder\Binder_Operators.cs (1)
1659case SpecialType.System_SByte:
Binder\Binder_Patterns.cs (1)
1690SpecialType.System_SByte => BinaryOperatorKind.Int, // operands are converted to int
Binder\DecisionDagBuilder.cs (2)
1515case (SpecialType.System_SByte, SpecialType.System_Byte): 1516case (SpecialType.System_Byte, SpecialType.System_SByte):
Binder\PatternExplainer.cs (1)
723case SpecialType.System_SByte:
Binder\Semantics\Conversions\ConversionsBase.cs (4)
1298case SpecialType.System_SByte: 1955case SpecialType.System_SByte: 2039case SpecialType.System_SByte: 3687case SpecialType.System_SByte:
Binder\Semantics\Operators\OperatorFacts.cs (1)
49case SpecialType.System_SByte:
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
3040case SpecialType.System_SByte:
CodeGen\EmitArrayInitializer.cs (1)
700SpecialType.System_SByte or SpecialType.System_Byte or SpecialType.System_Boolean or
CodeGen\EmitExpression.cs (1)
1308case SpecialType.System_SByte:
CodeGen\EmitOperators.cs (1)
612case SpecialType.System_SByte:
Compilation\BuiltInOperators.cs (1)
264case UnaryOperatorKind.SByte: opType = _compilation.GetSpecialType(SpecialType.System_SByte); break;
Compiler\ClsComplianceChecker.cs (1)
1017case SpecialType.System_SByte: // sic
FlowAnalysis\AbstractFlowPass.cs (1)
1375case SpecialType.System_SByte:
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
217SpecialType.System_SByte or SpecialType.System_Byte
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
418SpecialType.System_SByte => true,
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (6)
1403case SpecialType.System_SByte: 1432case SpecialType.System_SByte: 1453case SpecialType.System_SByte: 1477case SpecialType.System_SByte: 1506case SpecialType.System_SByte: return SpecialMember.System_Decimal__op_Explicit_ToSByte; 1526case SpecialType.System_SByte: return SpecialMember.System_Decimal__op_Implicit_FromSByte;
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (2)
900specialType = SpecialType.System_SByte; 1016case SpecialType.System_SByte:
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
635case SpecialType.System_SByte:
Symbols\Attributes\SourceAttributeData.cs (1)
308if (specType != SpecialType.System_SByte)
Symbols\BaseTypeAnalysis.cs (1)
258case SpecialType.System_SByte:
Symbols\Source\SourceAssemblySymbol.cs (1)
2747case SpecialType.System_SByte:
Symbols\SpecialTypeExtensions.cs (2)
17case SpecialType.System_SByte: 40case SpecialType.System_SByte:
Symbols\TypeSymbolExtensions.cs (5)
582case SpecialType.System_SByte: 1257case SpecialType.System_SByte: 1341case SpecialType.System_SByte: 2116case SpecialType.System_SByte: return 4; 2139case SpecialType.System_SByte: return 19;
Syntax\SyntaxKindExtensions.cs (1)
22return SpecialType.System_SByte;
Utilities\ValueSetFactory.cs (1)
37SpecialType.System_SByte => ForSByte,
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
ITypeSymbolExtensions.cs (1)
15case SpecialType.System_SByte:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Emit\EmitMetadataTests.cs (1)
456Assert.Same(module.GetCorLibType(SpecialType.System_SByte), method4ParamTypes[0]);
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\KeywordRecommenders\SByteKeywordRecommender.cs (1)
55protected override SpecialType SpecialType => SpecialType.System_SByte;
Completion\Providers\DefaultArgumentProvider.cs (1)
42SpecialType.System_SByte => "(sbyte)0",
Microsoft.CodeAnalysis.CSharp.Scripting (1)
Hosting\ObjectFormatter\CSharpTypeNameFormatter.cs (1)
39case SpecialType.System_SByte: return "sbyte";
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\OperatorTests.cs (2)
7870types[types.Length - 1] = compilation.CreatePointerTypeSymbol(compilation.GetSpecialType(SpecialType.System_SByte)); 8030types[types.Length - 1] = compilation.CreatePointerTypeSymbol(compilation.GetSpecialType(SpecialType.System_SByte));
Semantics\UnsafeTests.cs (1)
7736{ SpecialType.System_SByte, 1 },
Utilities\ValueSetTests.cs (1)
493Assert.Same(ForSByte, ForSpecialType(SpecialType.System_SByte));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (6)
Symbols\Source\ClsComplianceTests.cs (1)
3183case SpecialType.System_SByte:
Symbols\Source\CustomModifierCopyTests.cs (4)
1638var int8Type = comp.GetSpecialType(SpecialType.System_SByte); 1755var int8Type = comp.GetSpecialType(SpecialType.System_SByte); 1852var int8Type = comp.GetSpecialType(SpecialType.System_SByte); 1954var int8Type = comp.GetSpecialType(SpecialType.System_SByte);
Symbols\TypeTests.cs (1)
1512Assert.Same(comp.GetSpecialType(SpecialType.System_SByte), underType);
Microsoft.CodeAnalysis.CSharp.Workspaces (16)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
3260case SpecialType.System_SByte: 3455SpecialType.System_SByte => SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.SByteKeyword)),
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ITypeSymbolExtensions.cs\ITypeSymbolExtensions.cs (1)
15case SpecialType.System_SByte:
Recommendations\CSharpRecommendationServiceRunner_Conversions.cs (12)
28SpecialType.System_SByte, 43SpecialType.System_SByte); 51SpecialType.System_SByte); 56SpecialType.System_SByte, 62SpecialType.System_SByte, 72SpecialType.System_SByte, 83SpecialType.System_SByte, 93SpecialType.System_SByte, 98SpecialType.System_SByte, 110SpecialType.System_SByte, 123SpecialType.System_SByte, 204SpecialType.System_SByte => s_sbyteConversions,
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (1)
45SpecialType.System_SByte => SyntaxKind.SByteKeyword,
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
292VerifySyntax<TypeSyntax>(Generator.TypeExpression(SpecialType.System_SByte), "sbyte");
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
PDB\PdbHelpers.cs (1)
91(SpecialType.System_SByte, short shortVal) when unchecked((sbyte)shortVal) == shortVal => ConstantValue.Create((sbyte)shortVal),
Microsoft.CodeAnalysis.Features (1)
ConvertNumericLiteral\AbstractConvertNumericLiteralCodeRefactoringProvider.cs (1)
156case SpecialType.System_SByte:
Microsoft.CodeAnalysis.Scripting (2)
Hosting\ObjectFormatter\CommonPrimitiveFormatter.cs (1)
106case SpecialType.System_SByte:
Hosting\ObjectFormatter\ObjectFormatterHelpers.cs (1)
352return SpecialType.System_SByte;
Microsoft.CodeAnalysis.UnitTests (1)
CorLibTypesTests.cs (1)
53Assert.Equal(SpecialType.System_SByte, SpecialTypes.GetTypeFromMetadataName(Cci.PrimitiveTypeCode.Int8));
Microsoft.CodeAnalysis.VisualBasic (52)
Binding\Binder_Conversions.vb (1)
280Case SyntaxKind.CSByteKeyword : targetType = SpecialType.System_SByte
Binding\Binder_Expressions.vb (1)
4439specialType <> specialType.System_SByte)
Binding\Binder_SelectCase.vb (1)
701Case SpecialType.System_SByte,
Binding\Binder_Symbols.vb (1)
782type = SpecialType.System_SByte
Binding\Binder_Utils.vb (1)
1376SpecialType.System_SByte,
Binding\DocumentationCommentCrefBinder_Compat.vb (1)
368type = SpecialType.System_SByte
Compilation\ClsComplianceChecker.vb (1)
632Case SpecialType.System_SByte, SpecialType.System_UInt16, SpecialType.System_UInt32, SpecialType.System_UInt64
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (1)
456SpecialType.System_SByte,
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (2)
353resultUnderlyingSpecialType = SpecialType.System_SByte 378Debug.Assert(resultUnderlyingSpecialType = SpecialType.System_Byte OrElse resultUnderlyingSpecialType = SpecialType.System_SByte)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (6)
273Dim typeBeforeNegationIsByte As Boolean = typeBeforeNegation.SpecialType = SpecialType.System_SByte 312Return Me._factory.SpecialType(SpecialType.System_SByte) 435Case SpecialType.System_SByte : wellKnownHelper = WellKnownMember.System_Convert__ToBooleanInt32 459Case SpecialType.System_SByte 524Case SpecialType.System_SByte : specialHelper = SpecialMember.System_Decimal__op_Implicit_FromInt32 562Case SpecialType.System_SByte,
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_UnaryOperator.vb (1)
74origArgUnderlyingSpecialType = SpecialType.System_SByte
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (5)
926Case SpecialType.System_SByte : member = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToSByteObject 1016Case SpecialType.System_SByte, 1091Case SpecialType.System_SByte : member = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToSByteString 1159Case SpecialType.System_SByte, 1231Case SpecialType.System_SByte : member = WellKnownMember.System_Convert__ToSByteDecimal
Preprocessor\CConst.vb (2)
59Case SpecialType.System_SByte 89Return New CConst(Of SByte)(value, SpecialType.System_SByte)
Preprocessor\ExpressionEvaluator.vb (6)
26Const ____SByte = CType(SpecialType.System_SByte, Byte) 77Case SpecialType.System_SByte 381Return SpecialType.System_SByte 496specialType = SpecialType.System_SByte 883Case SpecialType.System_SByte 922Case SpecialType.System_SByte
Preprocessor\OperatorResolution.vb (2)
34Case SpecialType.System_SByte 84Const t_i1 As Byte = CType(SpecialType.System_SByte, Byte)
Semantics\Conversions.vb (1)
3335Case SpecialType.System_Byte, SpecialType.System_SByte, SpecialType.System_Boolean
Semantics\Operators.vb (4)
590SpecialType.System_SByte, 623Case SpecialType.System_SByte, 657Case SpecialType.System_SByte, 1725Const tSBy As SByte = SpecialType.System_SByte
Semantics\OverloadResolution.vb (2)
2097If leftSpecialType = SpecialType.System_Byte AndAlso rightSpecialType = SpecialType.System_SByte Then 2101If leftSpecialType = SpecialType.System_SByte AndAlso rightSpecialType = SpecialType.System_Byte Then
Symbols\Attributes\SourceAttributeData.vb (1)
189foundMatch = specType = SpecialType.System_SByte
Symbols\SpecialTypeExtensions.vb (10)
30SpecialType.System_SByte, 63SpecialType.System_SByte, 100SpecialType.System_SByte, 122SpecialType.System_SByte, 151Case SpecialType.System_SByte 192Case SpecialType.System_SByte 237Case SpecialType.System_SByte 279Case SpecialType.System_SByte 317Case SpecialType.System_SByte, SpecialType.System_Byte 337Case SpecialType.System_SByte
Symbols\TypeSymbolExtensions.vb (1)
434Case SpecialType.System_SByte
Syntax\VisualBasicSyntaxTree.ConditionalSymbolsMap.vb (1)
194Case SpecialType.System_SByte
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (5)
ITypeSymbolExtensions.vb (3)
39Case specialType.System_SByte 81specialType = specialType.System_SByte 106SpecialType.System_SByte,
StringExtensions.vb (1)
99SpecialType.System_SByte,
TypeSyntaxGeneratorVisitor.vb (1)
102Case SpecialType.System_SByte
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Emit\EmitMetadata.vb (1)
519Assert.Same([Module].GetCorLibType(SpecialType.System_SByte), method4ParamTypes(0))
Microsoft.CodeAnalysis.VisualBasic.Features (2)
Completion\KeywordRecommenders\Types\BuiltInTypesKeywordRecommender.vb (1)
98SpecialType.System_SByte,
Completion\Providers\DefaultArgumentProvider.vb (1)
32Case SpecialType.System_SByte
Microsoft.CodeAnalysis.VisualBasic.Scripting (1)
Hosting\ObjectFormatter\VisualBasicTypeNameFormatter.vb (1)
36Case SpecialType.System_SByte
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (10)
Semantics\Conversions.vb (9)
234Dim sbyteType = c1.GetSpecialType(System_SByte) 1085Dim sbyteType = c1.GetSpecialType(System_SByte) 1348Case System_SByte : Return c.ToSByte(Nothing) 1373Case System_SByte : Return UncheckedCSByte(UncheckedCLng(val)) 1389Case System_SByte : Return UncheckedCSByte(val) 1406Case System_SByte : Return CSByte(value) 2028c1.GetSpecialType(System_SByte), 2044nullable.Construct(c1.GetSpecialType(System_SByte)), 2168Private Const s_SByte = System_SByte
Semantics\OverloadResolution.vb (1)
2509Dim numericTypesPrecedence = {System_SByte, System_Byte, System_Int16, System_UInt16,
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
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)
12Assert.Equal(ConstantValueTypeDiscriminator.SByte, SpecialType.System_SByte.ToConstantValueDiscriminator())
Microsoft.CodeAnalysis.VisualBasic.Workspaces (9)
CodeGeneration\ExpressionGenerator.vb (2)
71Return GenerateIntegralLiteralExpression(type, SpecialType.System_SByte, DirectCast(value, SByte), canUseFieldReference, LiteralSpecialValues.SByteSpecialValues, Function(x) x < 0, Function(x) -x, "128") 218ElseIf TypeOf value Is SByte AndAlso Not IsSpecialType(type, SpecialType.System_SByte) Then
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
432Case SpecialType.System_SByte
ITypeSymbolExtensions.vb (3)
39Case specialType.System_SByte 81specialType = specialType.System_SByte 106SpecialType.System_SByte,
Simplification\Simplifiers\AbstractVisualBasicSimplifier.vb (1)
27Case SpecialType.System_SByte
StringExtensions.vb (1)
99SpecialType.System_SByte,
TypeSyntaxGeneratorVisitor.vb (1)
102Case SpecialType.System_SByte
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.vb (1)
267VerifySyntax(Of TypeSyntax)(Generator.TypeExpression(SpecialType.System_SByte), "SByte")
Microsoft.CodeAnalysis.Workspaces (21)
CodeGenerationHelpers.cs (1)
137SpecialType.System_SByte => value is sbyte,
EnumUtilties.cs (1)
28case SpecialType.System_SByte:
IntegerUtilities.cs (1)
63SpecialType.System_SByte => unchecked((sbyte)v),
J\s\src\Compilers\Core\Portable\SpecialTypeExtensions.cs\SpecialTypeExtensions.cs (11)
22case SpecialType.System_SByte: 47case SpecialType.System_SByte: 70case SpecialType.System_SByte: 100case SpecialType.System_SByte: 155case SpecialType.System_SByte: 168case SpecialType.System_SByte: 186case SpecialType.System_SByte: 210case SpecialType.System_SByte: 241case SpecialType.System_SByte: 260case SpecialType.System_SByte: 352return SpecialType.System_SByte;
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs\ITypeSymbolExtensions.cs (3)
289case SpecialType.System_SByte: 379case SpecialType.System_SByte: 648case SpecialType.System_SByte:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs\SpecialTypeExtensions.cs (1)
18SpecialType.System_SByte => PredefinedType.SByte,
PredefinedTypeExtensions.cs (1)
18PredefinedType.SByte => SpecialType.System_SByte,
Shared\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
411case SpecialType.System_SByte:
Shared\Utilities\EnumValueUtilities.cs (1)
60SpecialType.System_SByte => (sbyte)1,
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService.cs (1)
746case SpecialType.System_SByte:
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
CodeModel\VisualBasicCodeModelService.vb (1)
777Case SpecialType.System_SByte