277 references to System_Char
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (1)
264case SpecialType.System_Char:
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
StaticRouteHandlerModel\EndpointParameter.cs (1)
353if (parameterType.SpecialType == SpecialType.System_Char)
Microsoft.CodeAnalysis (41)
Compilation\Expression.cs (1)
29case SpecialType.System_Char:
ConstantValue.cs (2)
450case SpecialType.System_Char: return ConstantValueTypeDiscriminator.Char; 502case ConstantValueTypeDiscriminator.Char: return SpecialType.System_Char;
MetadataReader\MetadataTypeCodeExtensions.cs (3)
58return SpecialType.System_Char; 109case SpecialType.System_Char: 178case SpecialType.System_Char:
SpecialMembers.cs (14)
25(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Char, 108(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Char, 111(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Char, 121(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Char, 124(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Char, 127(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Char, 137(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Char, 140(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Char, 143(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Char, 146(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Char, 178(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Char, 216(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Char, 578(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Char, 689(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Char,
SpecialTypeExtensions.cs (6)
21case SpecialType.System_Char: 46case SpecialType.System_Char: 69case SpecialType.System_Char: 117case SpecialType.System_Char: 146case SpecialType.System_Char: 298return SpecialType.System_Char;
SpecialTypes.cs (2)
107s_typeIdToTypeCodeMap[(int)SpecialType.System_Char] = Microsoft.Cci.PrimitiveTypeCode.Char; 131s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.Char] = SpecialType.System_Char;
Symbols\INamedTypeSymbolInternal.cs (1)
47case SpecialType.System_Char:
Symbols\TypedConstant.cs (1)
175case SpecialType.System_Char:
WellKnownMembers.cs (11)
1450(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Char, // Return Type 1458(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Char, 1547(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Char, 1666(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Char, // Return Type 1674(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Char, 2517(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Char, 2533(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Char, 2548(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Char, 2556(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Char, // Return Type 3913(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Char, 4004(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Char,
Microsoft.CodeAnalysis.CodeStyle (10)
src\Compilers\Core\Portable\SpecialTypeExtensions.cs (6)
21case SpecialType.System_Char: 46case SpecialType.System_Char: 69case SpecialType.System_Char: 117case SpecialType.System_Char: 146case SpecialType.System_Char: 298return SpecialType.System_Char;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (2)
389case SpecialType.System_Char: 657case SpecialType.System_Char:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\PredefinedTypeExtensions.cs (1)
17PredefinedType.Char => SpecialType.System_Char,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs (1)
17SpecialType.System_Char => PredefinedType.Char,
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
385case SpecialType.System_Char:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
417case SpecialType.System_Char:
Microsoft.CodeAnalysis.CSharp (56)
Binder\Binder_Expressions.cs (1)
7274case SpecialType.System_Char:
Binder\Binder_Patterns.cs (1)
1699SpecialType.System_Char => BinaryOperatorKind.Char,
Binder\Binder_Statements.cs (1)
1282elementType = this.GetSpecialType(SpecialType.System_Char, diagnostics, initializerSyntax);
Binder\ForEachLoopBinder.cs (2)
688inferredType = TypeWithAnnotations.Create(GetSpecialType(SpecialType.System_Char, diagnostics, collectionExpr.Syntax)); 1293TypeWithAnnotations.Create(GetSpecialType(SpecialType.System_Char, diagnostics, syntax)) :
Binder\PatternExplainer.cs (2)
709SpecialType.System_Char => true, 733case SpecialType.System_Char:
Binder\Semantics\Conversions\ConversionsBase.cs (3)
2103case SpecialType.System_Char: 2192case SpecialType.System_Char: 3994return spanElementType.SpecialType is SpecialType.System_Char;
Binder\Semantics\Operators\OperatorFacts.cs (1)
37case SpecialType.System_Char:
CodeGen\EmitArrayInitializer.cs (1)
802SpecialType.System_Int16 or SpecialType.System_UInt16 or SpecialType.System_Char or
CodeGen\EmitExpression.cs (1)
1344case SpecialType.System_Char:
CodeGen\EmitStatement.cs (2)
1418var charType = Binder.GetSpecialType(_module.Compilation, SpecialType.System_Char, syntaxNode, _diagnostics); 1539var sequenceEqualsCharMethod = sequenceEqualsTMethod.Construct(Binder.GetSpecialType(_module.Compilation, SpecialType.System_Char, syntaxNode, _diagnostics));
Compilation\BuiltInOperators.cs (1)
274case UnaryOperatorKind.Char: opType = _compilation.GetSpecialType(SpecialType.System_Char); break;
Compilation\CSharpCompilation.cs (1)
1725case SpecialType.System_Char:
Compiler\MethodBodySynthesizer.Lowered.cs (1)
151.Construct(F.SpecialType(SpecialType.System_Char));
FlowAnalysis\AbstractFlowPass.cs (1)
1461case SpecialType.System_Char:
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
219SpecialType.System_Int16 or SpecialType.System_UInt16 or SpecialType.System_Char
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (2)
953.Construct(_factory.SpecialType(SpecialType.System_Char)), 955.Construct(_factory.SpecialType(SpecialType.System_Char)),
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
439.Construct(_factory.SpecialType(SpecialType.System_Char));
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (8)
774IsInRange(sourceST, SpecialType.System_Char, SpecialType.System_Double) && 775IsInRange(targetST, SpecialType.System_Char, SpecialType.System_UInt64); 1559case SpecialType.System_Char: 1582case SpecialType.System_Char: 1609case SpecialType.System_Char: 1635case SpecialType.System_Char: 1658case SpecialType.System_Char: return SpecialMember.System_Decimal__op_Explicit_ToChar; 1678case SpecialType.System_Char: return SpecialMember.System_Decimal__op_Implicit_FromChar;
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (6)
243SideEffects: [BoundAssignmentOperator { Right.Type.SpecialType: SpecialType.System_Char } assignment], 434if (arg is BoundCall { ReceiverOpt: { Type: NamedTypeSymbol { SpecialType: SpecialType.System_Char } receiverCharType } receiver } potentialToStringCall && 447charType ?? _compilation.GetSpecialType(SpecialType.System_Char))); // We will pull 'charType' from BoundCall, if it is bad an error has been already reported elsewhere 539if (arg.Type.SpecialType == SpecialType.System_Char) 626if (expr is BoundCall { Type.SpecialType: SpecialType.System_String, Method: { Name: "ToString" } method, ReceiverOpt: { Type: NamedTypeSymbol { SpecialType: SpecialType.System_Char } charType, ConstantValueOpt.IsChar: true } } call && 638if (cv.SpecialType == SpecialType.System_Char)
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
929specialType = SpecialType.System_Char;
Lowering\SyntheticBoundNodeFactory.cs (1)
1150return new BoundLiteral(Syntax, charConst, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Char)) { WasCompilerGenerated = true };
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
667case SpecialType.System_Char:
SymbolDisplay\SymbolDisplayVisitor_Constants.cs (1)
56case SpecialType.System_Char:
Symbols\Attributes\SourceAttributeData.cs (1)
334if (specType != SpecialType.System_Char)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
1916case SpecialType.System_Char:
Symbols\SpecialTypeExtensions.cs (2)
16case SpecialType.System_Char: 45case SpecialType.System_Char:
Symbols\TypeSymbolExtensions.cs (9)
206return type.SpecialType == SpecialType.System_Char; 656case SpecialType.System_Char: 1353case SpecialType.System_Char: 1399&& arguments[0].SpecialType == SpecialType.System_Char; 1410&& arguments[0].SpecialType == SpecialType.System_Char; 1421&& arguments[0].SpecialType == SpecialType.System_Char; 1452case SpecialType.System_Char: 2216case SpecialType.System_Char: return 3; 2239case SpecialType.System_Char: return 18;
Syntax\SyntaxKindExtensions.cs (1)
44return SpecialType.System_Char;
Utilities\ValueSetFactory.cs (1)
38SpecialType.System_Char => ForChar,
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ITypeSymbolExtensions.cs (1)
20case SpecialType.System_Char:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
Emit\EmitMetadataTests.cs (3)
451Assert.Same(module.GetCorLibType(SpecialType.System_Char), m3.Parameters.Single().Type); 968Assert.Equal(SpecialType.System_Char, sBack.Type.SpecialType); 1039Assert.Equal(SpecialType.System_Char, sBack.Type.SpecialType);
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\KeywordRecommenders\CharKeywordRecommender.cs (1)
54protected override SpecialType SpecialType => SpecialType.System_Char;
Completion\Providers\DefaultArgumentProvider.cs (1)
40SpecialType.System_Char => @"'\\0'",
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (4)
EditAndContinue\TopLevelEditingTests.cs (4)
7208semanticEdits: [SemanticEdit(SemanticEditKind.Update, c => c.GetMembers<IMethodSymbol>("C.F").Single(m => m.Parameters is [{ Type.SpecialType: SpecialType.System_Char }]))]), 7228SemanticEdit(SemanticEditKind.Update, c => c.GetMembers<IPropertySymbol>("C.this[]").Single(m => m.Parameters is [{ Type.SpecialType: SpecialType.System_Char }])), 7229SemanticEdit(SemanticEditKind.Update, c => c.GetMembers<IPropertySymbol>("C.this[]").Single(m => m.Parameters is [{ Type.SpecialType: SpecialType.System_Char }]).GetMethod), 7230SemanticEdit(SemanticEditKind.Update, c => c.GetMembers<IPropertySymbol>("C.this[]").Single(m => m.Parameters is [{ Type.SpecialType: SpecialType.System_Char }]).SetMethod),
Microsoft.CodeAnalysis.CSharp.Scripting (1)
Hosting\ObjectFormatter\CSharpTypeNameFormatter.cs (1)
33case SpecialType.System_Char: return "char";
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (17)
Semantics\ForEachTests.cs (6)
1246Assert.Equal(SpecialType.System_Char, info.ElementTypeWithAnnotations.SpecialType); 1552Assert.Equal(SpecialType.System_Char, info.ElementTypeWithAnnotations.SpecialType); 1563Assert.Equal(SpecialType.System_Char, boundNode.IterationVariables.Single().Type.SpecialType); 2144Assert.Equal(SpecialType.System_Char, typeInfo.Type.SpecialType); 3118Assert.Equal(SpecialType.System_Char, info.ElementTypeWithAnnotations.SpecialType); 3129Assert.Equal(SpecialType.System_Char, boundNode.IterationVariables.Single().Type.SpecialType);
Semantics\InteractiveSemanticModelTests.cs (1)
268Assert.Equal(SpecialType.System_Char, semanticInfo.Type.SpecialType);
Semantics\MethodTypeInferenceTests.cs (2)
1050Assert.Equal(SpecialType.System_Char, method.TypeArguments.Single().SpecialType); 1080Assert.Equal(SpecialType.System_Char, method.TypeArguments.Single().SpecialType);
Semantics\OperatorTests.cs (1)
7639symbol1.ContainingType.SpecialType == SpecialType.System_Char);
Semantics\UnsafeTests.cs (6)
10187Assert.Equal(SpecialType.System_Char, ((IPointerTypeSymbol)type).PointedAtType.SpecialType); 10219var charSymbol = compilation.GetSpecialType(SpecialType.System_Char); 10291var charSymbol = compilation.GetSpecialType(SpecialType.System_Char); 10589{ SpecialType.System_Char, 2 }, 11311Assert.Equal(SpecialType.System_Char, ((IPointerTypeSymbol)stackAllocSummary.Type).PointedAtType.SpecialType); 11323Assert.Equal(SpecialType.System_Char, typeSummary.Type.SpecialType);
Utilities\ValueSetTests.cs (1)
504Assert.Same(ForChar, ForSpecialType(SpecialType.System_Char));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Compilation\SemanticModelAPITests.cs (2)
59Assert.Equal(SpecialType.System_Char, typeInfo.Type.SpecialType); 152Assert.Equal(SpecialType.System_Char, typeInfo.Type.SpecialType);
Symbols\Source\TypeMapTests.cs (2)
139var _char = compilation.GetSpecialType(SpecialType.System_Char); 181var _char = compilation.GetSpecialType(SpecialType.System_Char);
Symbols\TypeTests.cs (1)
1530Assert.Same(comp.GetSpecialType(SpecialType.System_Char), underType);
Microsoft.CodeAnalysis.CSharp.Workspaces (15)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
3449SpecialType.System_Char => CharKeyword,
Recommendations\CSharpRecommendationServiceRunner_Conversions.cs (12)
23SpecialType.System_Char, 39SpecialType.System_Char, 45private static readonly ImmutableArray<SpecialType> s_byteConversions = [SpecialType.System_Char, SpecialType.System_SByte]; 50SpecialType.System_Char, 57private static readonly ImmutableArray<SpecialType> s_uint16Conversions = [SpecialType.System_Byte, SpecialType.System_Char, SpecialType.System_SByte, SpecialType.System_Int16]; 62SpecialType.System_Char, 73SpecialType.System_Char, 83SpecialType.System_Char, 95SpecialType.System_Char, 109SpecialType.System_Char, 123SpecialType.System_Char, 221SpecialType.System_Char => s_charConversions,
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (1)
54SpecialType.System_Char => SyntaxKind.CharKeyword,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ITypeSymbolExtensions.cs (1)
20case SpecialType.System_Char:
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
305VerifySyntax<TypeSyntax>(Generator.TypeExpression(SpecialType.System_Char), "char");
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
PDB\PdbHelpers.cs (1)
93(SpecialType.System_Char, ushort ushortVal) => ConstantValue.Create((char)ushortVal),
Microsoft.CodeAnalysis.Features (2)
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (1)
241var charType = model.Compilation.GetSpecialType(SpecialType.System_Char);
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
385case SpecialType.System_Char:
Microsoft.CodeAnalysis.Scripting (2)
Hosting\ObjectFormatter\CommonPrimitiveFormatter.cs (1)
73case SpecialType.System_Char:
Hosting\ObjectFormatter\ObjectFormatterHelpers.cs (1)
297return SpecialType.System_Char;
Microsoft.CodeAnalysis.UnitTests (1)
CorLibTypesTests.cs (1)
47Assert.Equal(SpecialType.System_Char, SpecialTypes.GetTypeFromMetadataName(Cci.PrimitiveTypeCode.Char));
Microsoft.CodeAnalysis.VisualBasic (54)
Analysis\FlowAnalysis\AbstractFlowPass.vb (1)
336SpecialType.System_Char,
Binding\Binder_Conversions.vb (1)
281Case SyntaxKind.CCharKeyword : targetType = SpecialType.System_Char
Binding\Binder_SelectCase.vb (1)
705SpecialType.System_Char
Binding\Binder_Statements.vb (1)
3983elementType = GetSpecialType(SpecialType.System_Char, collectionSyntax, diagnostics)
Binding\Binder_Symbols.vb (1)
774type = SpecialType.System_Char
Binding\Binder_Utils.vb (1)
1385SpecialType.System_Char
Binding\DocumentationCommentCrefBinder_Compat.vb (1)
360type = SpecialType.System_Char
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (1)
481SpecialType.System_Char,
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (2)
573Case SpecialType.System_Char 597Case SpecialType.System_Char : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToStringChar
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (3)
852Case SpecialType.System_Char : member = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToCharObject 945Case SpecialType.System_Char : member = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToStringChar 1017Case SpecialType.System_Char : member = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToCharString
Lowering\LocalRewriter\LocalRewriter_ForEach.vb (1)
286elementType = GetSpecialType(SpecialType.System_Char)
Preprocessor\CConst.vb (2)
45Case SpecialType.System_Char 93Return New CConst(Of Char)(value, SpecialType.System_Char)
Preprocessor\ExpressionEvaluator.vb (17)
37Const _____Char = CType(SpecialType.System_Char, Byte) 99Case SpecialType.System_Char 390Return SpecialType.System_Char 502specialType = SpecialType.System_Char 620Case SpecialType.System_Char 621Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, SpecialType.System_Char.GetDisplayName(), SpecialType.System_Boolean.GetDisplayName()) 667Case SpecialType.System_Char 668Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, SpecialType.System_Char.GetDisplayName(), toSpecialType.GetDisplayName()) 712Case SpecialType.System_Char 731If fromSpecialType = SpecialType.System_Char Then 741Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, fromSpecialType, SpecialType.System_Char.GetDisplayName()) 744Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, fromSpecialType, SpecialType.System_Char.GetDisplayName()) 759Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, fromSpecialType, SpecialType.System_Char.GetDisplayName()) 781Case SpecialType.System_Char 817Case SpecialType.System_Char 858specialType = SpecialType.System_Char OrElse specialType = SpecialType.System_DateTime Then 1112If left.SpecialType.IsIntegralType() OrElse left.SpecialType = SpecialType.System_Char OrElse left.SpecialType = SpecialType.System_DateTime Then
Preprocessor\OperatorResolution.vb (2)
58Case SpecialType.System_Char 96Const t_char As Byte = CType(SpecialType.System_Char, Byte)
Preprocessor\TypeHelpers.vb (1)
29If specialType = SpecialType.System_Char Then
Semantics\Conversions.vb (1)
3635If array.IsSZArray AndAlso array.ElementType.SpecialType = SpecialType.System_Char Then
Semantics\Operators.vb (1)
1736Const tChr As SByte = SpecialType.System_Char
SymbolDisplay\SymbolDisplayVisitor_Constants.vb (1)
27Case SpecialType.System_Char
Symbols\Attributes\SourceAttributeData.vb (1)
201foundMatch = specType = SpecialType.System_Char
Symbols\Metadata\PE\PEFieldSymbol.vb (1)
249ElseIf selfOrUnderlyingSpecialType = SpecialType.System_Char Then
Symbols\Metadata\PE\PENamedTypeSymbol.vb (1)
1143SpecialType.System_Char,
Symbols\SpecialTypeExtensions.vb (9)
41SpecialType.System_Char 53SpecialType.System_Char, 109SpecialType.System_Char, 129SpecialType.System_Char, 149Case SpecialType.System_Char 190Case SpecialType.System_Char 259Case SpecialType.System_Char 295Case SpecialType.System_Char 359Case SpecialType.System_Char
Symbols\TypeSymbolExtensions.vb (3)
172If array.IsSZArray AndAlso array.ElementType.SpecialType = SpecialType.System_Char Then 331Return this.SpecialType = SpecialType.System_Char 456Case SpecialType.System_Char
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (5)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ITypeSymbolExtensions.vb (3)
25Case specialType.System_Char 67specialType = specialType.System_Char 117SpecialType.System_Char,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\StringExtensions.vb (1)
110SpecialType.System_Char,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (1)
100Case SpecialType.System_Char
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Emit\EmitMetadata.vb (1)
514Assert.Same([Module].GetCorLibType(SpecialType.System_Char), m3.Parameters.Single().Type)
Microsoft.CodeAnalysis.VisualBasic.Features (2)
Completion\KeywordRecommenders\Types\BuiltInTypesKeywordRecommender.vb (1)
88SpecialType.System_Char,
Completion\Providers\DefaultArgumentProvider.vb (1)
28Case SpecialType.System_Char
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (3)
EditAndContinue\TopLevelEditingTests.vb (3)
4355semanticEdits:={SemanticEdit(SemanticEditKind.Update, Function(c) c.GetMembers("C.F").Single(Function(m) m.GetParameters()(0).Type.SpecialType = SpecialType.System_Char))}), 4393SemanticEdit(SemanticEditKind.Update, Function(c) DirectCast(c.GetMembers("C.P").Single(Function(m) m.GetParameters()(0).Type.SpecialType = SpecialType.System_Char), PropertySymbol).GetMethod), 4394SemanticEdit(SemanticEditKind.Update, Function(c) DirectCast(c.GetMembers("C.P").Single(Function(m) m.GetParameters()(0).Type.SpecialType = SpecialType.System_Char), PropertySymbol).SetMethod)
Microsoft.CodeAnalysis.VisualBasic.Scripting (1)
Hosting\ObjectFormatter\VisualBasicTypeNameFormatter.vb (1)
24Case SpecialType.System_Char
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (8)
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (1)
2802Assert.Equal(compilation.GetSpecialType(System_Char), local.Type)
Semantics\Conversions.vb (5)
246Dim charType = c1.GetSpecialType(System_Char) 1098Dim charType = c1.GetSpecialType(System_Char) 2057c1.GetSpecialType(System_Char), 2072nullable.Construct(c1.GetSpecialType(System_Char)), 2197Private Const s_char = System_Char
Semantics\ForeachTest.vb (2)
1172Assert.Equal(SpecialType.System_Char, typeInfo.Type.SpecialType) 1212Assert.Equal(SpecialType.System_Char, typeInfo.Type.SpecialType)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (3)
SymbolsTests\InstantiatingGenerics.vb (1)
691Dim chr = compilation.GetSpecialType(SpecialType.System_Char)
SymbolsTests\Source\FieldTests.vb (2)
114Assert.Same(sourceMod.GetCorLibType(SpecialType.System_Char), DirectCast(fieldP.Type, NamedTypeSymbol).TypeArguments(0)) 121Assert.Same(sourceMod.GetCorLibType(SpecialType.System_Char), fieldQ.Type)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Syntax\ConstantExpressionEvaluatorTests.vb (1)
20Assert.Equal(ConstantValueTypeDiscriminator.Char, SpecialType.System_Char.ToConstantValueDiscriminator())
Microsoft.CodeAnalysis.VisualBasic.Workspaces (7)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
397Case SpecialType.System_Char
Simplification\Simplifiers\AbstractVisualBasicSimplifier.vb (1)
49Case SpecialType.System_Char
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ITypeSymbolExtensions.vb (3)
25Case specialType.System_Char 67specialType = specialType.System_Char 117SpecialType.System_Char,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\StringExtensions.vb (1)
110SpecialType.System_Char,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (1)
100Case SpecialType.System_Char
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.vb (1)
281VerifySyntax(Of TypeSyntax)(Generator.TypeExpression(SpecialType.System_Char), "Char")
Microsoft.CodeAnalysis.Workspaces (11)
src\Compilers\Core\Portable\SpecialTypeExtensions.cs (6)
21case SpecialType.System_Char: 46case SpecialType.System_Char: 69case SpecialType.System_Char: 117case SpecialType.System_Char: 146case SpecialType.System_Char: 298return SpecialType.System_Char;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (2)
389case SpecialType.System_Char: 657case SpecialType.System_Char:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\PredefinedTypeExtensions.cs (1)
17PredefinedType.Char => SpecialType.System_Char,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs (1)
17SpecialType.System_Char => PredefinedType.Char,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
417case SpecialType.System_Char:
Microsoft.Extensions.Options.SourceGeneration (2)
OptionsSourceGenContext.cs (1)
51SpecialType.System_Char => true,
Parser.cs (1)
827if (type.SpecialType == SpecialType.System_Char)
Microsoft.Interop.JavaScript.JSImportGenerator (1)
JSManagedTypeInfo.cs (1)
34case { SpecialType: SpecialType.System_Char }:
Microsoft.Interop.LibraryImportGenerator (2)
Analyzers\ConvertToLibraryImportFixer.cs (2)
683if (param.Type.SpecialType is SpecialType.System_String or SpecialType.System_Char) 689return method.ReturnType.SpecialType is SpecialType.System_String or SpecialType.System_Char;
Microsoft.Interop.SourceGeneration (4)
CharMarshallingInfoProvider.cs (1)
23public bool CanProvideMarshallingInfoForType(ITypeSymbol type) => type.SpecialType == SpecialType.System_Char;
Marshalling\CharMarshaller.cs (1)
38Debug.Assert(info.ManagedType is SpecialTypeInfo {SpecialType: SpecialType.System_Char });
Marshalling\CharMarshallingGeneratorResolver.cs (1)
26if (info.ManagedType is SpecialTypeInfo { SpecialType: SpecialType.System_Char })
Marshalling\MarshalAsMarshallingGeneratorResolver.cs (1)
60if (underlyingSpecialType == SpecialType.System_Boolean || underlyingSpecialType == SpecialType.System_Char)
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\CSharpCodeModelService.cs (1)
719case SpecialType.System_Char:
CodeModel\MethodXml\MethodXmlBuilder.cs (1)
303GenerateType(SpecialType.System_Char);
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
CodeModel\VisualBasicCodeModelService.vb (1)
799Case SpecialType.System_Char
System.Text.Json.SourceGeneration (2)
JsonSourceGenerator.Parser.cs (2)
1663if (type.SpecialType is SpecialType.System_Char) 1799SpecialType.System_Char or