828 references to System_String
Aspire.Hosting.Analyzers (1)
AppHostAnalyzer.cs (1)
84SymbolEqualityComparer.Default.Equals(parameterData.Symbol.Type, wellKnownTypes.Get(SpecialType.System_String))
ConfigurationSchemaGenerator (8)
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (1)
257case SpecialType.System_String:
RuntimeSource\Configuration.Binder\Parser\ConfigurationBinder.cs (3)
58if (@params[1].Type.SpecialType is SpecialType.System_String) 200if (paramCount > 3 || @params[1].Type.SpecialType is not SpecialType.System_String) 222if (@params[2].Type.SpecialType is not SpecialType.System_String)
RuntimeSource\Configuration.Binder\Parser\KnownTypeSymbols.cs (1)
73String = compilation.GetSpecialType(SpecialType.System_String);
RuntimeSource\Configuration.Binder\Parser\OptionsBuilderConfigurationExtensions.cs (1)
79@params[1].Type.SpecialType is SpecialType.System_String &&
RuntimeSource\Configuration.Binder\Parser\OptionsConfigurationServiceCollectionExtensions.cs (2)
44if (secondParamType.SpecialType is SpecialType.System_String && 60@params[1].Type.SpecialType is SpecialType.System_String &&
ILLink.RoslynAnalyzer (6)
ITypeSymbolExtensions.cs (2)
21 if (type.SpecialType is SpecialType.System_String && !isByRef) 71 SpecialType.System_String => WellKnownType.System_String,
RequiresAssemblyFilesAnalyzer.cs (1)
131 attribute.ConstructorArguments.Length >= 1 && attribute.ConstructorArguments is [ { Type.SpecialType: SpecialType.System_String }, ..];
RequiresDynamicCodeAnalyzer.cs (1)
143 attribute.ConstructorArguments.Length >= 1 && attribute.ConstructorArguments is [ { Type.SpecialType: SpecialType.System_String }, ..];
RequiresUnreferencedCodeUtils.cs (1)
37 => attribute.ConstructorArguments.Length >= 1 && attribute.ConstructorArguments is [ { Type.SpecialType: SpecialType.System_String }, ..];
TrimAnalysis\TrimAnalysisVisitor.cs (1)
437 case SpecialType.System_String when constantValue is string stringConstantValue:
Microsoft.Analyzers.Extra (1)
CallAnalysis\StartsEndsWith.cs (1)
19var stringType = reg.Compilation.GetSpecialType(SpecialType.System_String);
Microsoft.AspNetCore.App.Analyzers (5)
Http\HeaderDictionaryIndexerAnalyzer.cs (1)
30property.Parameters[0].Type.SpecialType == SpecialType.System_String &&
RouteEmbeddedLanguage\Infrastructure\RouteUsageDetector.cs (1)
290var stringSymbol = semanticModel.Compilation.GetSpecialType(SpecialType.System_String);
src\Shared\RoslynUtils\ParsabilityHelper.cs (3)
40if (typeSymbol.SpecialType == SpecialType.System_String) 100methodSymbol.Parameters[0].Type.SpecialType == SpecialType.System_String && 110methodSymbol.Parameters[0].Type.SpecialType == SpecialType.System_String &&
Microsoft.AspNetCore.Components.Analyzers (1)
ComponentSymbols.cs (1)
40var @string = compilation.GetSpecialType(SpecialType.System_String);
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
ComponentSymbols.cs (1)
40var @string = compilation.GetSpecialType(SpecialType.System_String);
Microsoft.AspNetCore.Http.RequestDelegateGenerator (14)
src\Shared\RoslynUtils\ParsabilityHelper.cs (3)
40if (typeSymbol.SpecialType == SpecialType.System_String) 100methodSymbol.Parameters[0].Type.SpecialType == SpecialType.System_String && 110methodSymbol.Parameters[0].Type.SpecialType == SpecialType.System_String &&
StaticRouteHandlerModel\Emitters\EndpointParameterEmitter.cs (1)
232var fallback = endpointParameter.Type.SpecialType == SpecialType.System_String ? endpointParameter.DefaultValue : "null";
StaticRouteHandlerModel\Endpoint.cs (1)
92parameter is { IsArray: true, ElementType.SpecialType: SpecialType.System_String, Source: EndpointParameterSource.Query });
StaticRouteHandlerModel\EndpointParameter.cs (4)
225else if (Type.SpecialType == SpecialType.System_String) 229else if (IsArray && ElementType.SpecialType == SpecialType.System_String) 261|| Type.SpecialType == SpecialType.System_String 262|| (IsArray && ElementType.SpecialType == SpecialType.System_String)
StaticRouteHandlerModel\EndpointResponse.cs (2)
76ResponseType.SpecialType != SpecialType.System_String && 98return ResponseType!.SpecialType is SpecialType.System_String ? "text/plain; charset=utf-8" : "application/json";
StaticRouteHandlerModel\StaticRouteHandlerModel.Emitter.cs (3)
123&& (responseType.SpecialType == SpecialType.System_Object || responseType.SpecialType == SpecialType.System_String)) 148else if (endpointResponse.ResponseType?.SpecialType == SpecialType.System_String) 214if (response.ResponseType?.SpecialType == SpecialType.System_String)
Microsoft.AspNetCore.Mvc.Analyzers (1)
TopLevelParameterNameAnalyzer.cs (1)
165namedArgumentValue.Type.SpecialType == SpecialType.System_String &&
Microsoft.CodeAnalysis (167)
CodeGen\PermissionSetAttribute.cs (1)
86member => member.Kind == SymbolKind.Property && ((IPropertySymbol)member).Type.SpecialType == SpecialType.System_String));
CommandLine\SarifV2ErrorLogger.cs (1)
80string? justification = suppressionInfo?.Attribute?.DecodeNamedArgument<string>("Justification", SpecialType.System_String);
ConstantValue.cs (2)
456case SpecialType.System_String: return ConstantValueTypeDiscriminator.String; 508case ConstantValueTypeDiscriminator.String: return SpecialType.System_String;
ConstantValueSpecialized.cs (1)
169get { return SpecialType.System_String; }
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (3)
401info.Scope = attribute.DecodeNamedArgument<string>("Scope", SpecialType.System_String); 402info.Target = attribute.DecodeNamedArgument<string>("Target", SpecialType.System_String); 403info.MessageId = attribute.DecodeNamedArgument<string>("MessageId", SpecialType.System_String);
MetadataReader\MetadataTypeCodeExtensions.cs (3)
61return SpecialType.System_String; 105case SpecialType.System_String: 181case SpecialType.System_String:
PEWriter\Types.cs (1)
24SystemString = CodeAnalysis.SpecialType.System_String,
SpecialMembers.cs (59)
21(byte)SpecialType.System_String, // DeclaringTypeId 29(byte)SpecialType.System_String, // DeclaringTypeId 32(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 33(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 34(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 38(byte)SpecialType.System_String, // DeclaringTypeId 41(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 42(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 43(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 44(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 48(byte)SpecialType.System_String, // DeclaringTypeId 51(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 52(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 53(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 54(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 55(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 59(byte)SpecialType.System_String, // DeclaringTypeId 62(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 63(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 67(byte)SpecialType.System_String, // DeclaringTypeId 70(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 75(byte)SpecialType.System_String, // DeclaringTypeId 78(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 84(byte)SpecialType.System_String, // DeclaringTypeId 87(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 94(byte)SpecialType.System_String, // DeclaringTypeId 97(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 102(byte)SpecialType.System_String, // DeclaringTypeId 105(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 115(byte)SpecialType.System_String, // DeclaringTypeId 118(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 131(byte)SpecialType.System_String, // DeclaringTypeId 134(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 150(byte)SpecialType.System_String, // DeclaringTypeId 154(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 155(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 159(byte)SpecialType.System_String, // DeclaringTypeId 163(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 164(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 168(byte)SpecialType.System_String, // DeclaringTypeId 175(byte)SpecialType.System_String, // DeclaringTypeId 183(byte)SpecialType.System_String, // DeclaringTypeId 186(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 187(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 192(byte)SpecialType.System_String, // DeclaringTypeId 195(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type 197(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 202(byte)SpecialType.System_String, // DeclaringTypeId 205(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type 211(byte)SpecialType.System_String, // DeclaringTypeId 217(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 942(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 1106(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Field Signature 1112(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Field Signature 1118(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Field Signature 1124(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Field Signature 1130(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Field Signature 1136(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Field Signature 1142(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Field Signature
SpecialTypeExtensions.cs (1)
288return SpecialType.System_String;
SpecialTypes.cs (2)
109s_typeIdToTypeCodeMap[(int)SpecialType.System_String] = Microsoft.Cci.PrimitiveTypeCode.String; 133s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.String] = SpecialType.System_String;
Symbols\Attributes\MarshalAsAttributeDecoder.cs (2)
131typeName = namedArg.Value.DecodeValue<string>(SpecialType.System_String); 147cookie = namedArg.Value.DecodeValue<string>(SpecialType.System_String);
Symbols\TypedConstant.cs (1)
176case SpecialType.System_String:
WellKnownMembers.cs (90)
322(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 361(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 369(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 503(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 518(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 525(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type 627(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 662(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 686(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 725(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 726(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 913(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 1222(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 1262(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 1280(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 1303(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 1331(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 1347(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 1355(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 1363(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 1371(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 1379(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 1387(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 1395(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 1403(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 1411(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 1419(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 1427(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 1435(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 1443(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 1451(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 1459(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 1466(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type 1474(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type 1482(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type 1490(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type 1498(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type 1506(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type 1514(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type 1522(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type 1530(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type 1538(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type 1546(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type 1554(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type 1961(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 1962(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 1971(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 1972(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 1983(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 1985(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 1998(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 2000(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 2012(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 2014(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 2025(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 2027(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 2040(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 2050(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 2060(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 2090(byte)SignatureTypeCode.ByReference, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 2093(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 2124(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 2125(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 2215(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 2232(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type 2233(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 2240(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type 2248(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type 2249(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 2264(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type 2265(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 2272(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type 2280(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type 2281(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 2290(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 2525(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 2541(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 2583(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 2929(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 3083(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Value 3201(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Value 3317(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 3814(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 3882(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Argument 3905(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 3935(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type 4005(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 4013(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 4042(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, 4613(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
Microsoft.CodeAnalysis.CodeStyle (11)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (2)
832attribute.AttributeConstructor?.Parameters is [_, { Name: "checkId", Type.SpecialType: SpecialType.System_String }, ..] && 841attribute.AttributeConstructor.Parameters[0].Type.SpecialType == SpecialType.System_String &&
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
734attribute.ConstructorArguments is [{ Kind: TypedConstantKind.Primitive, Type.SpecialType: SpecialType.System_String, Value: string value }])
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
273if (method is { MetadataName: "GetInstance", IsStatic: true, Parameters: [{ Type.SpecialType: SpecialType.System_String }] } &&
src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
303if (containingType.SpecialType != SpecialType.System_String)
src\Compilers\Core\Portable\SpecialTypeExtensions.cs (1)
288return SpecialType.System_String;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
390case SpecialType.System_String:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\PredefinedTypeExtensions.cs (1)
29PredefinedType.String => SpecialType.System_String,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
187if (type.SpecialType == SpecialType.System_String)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs (1)
29SpecialType.System_String => PredefinedType.String,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (1)
1031SpecialType.System_String;
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
395case SpecialType.System_String:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
429case SpecialType.System_String:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
450containingType?.SpecialType == SpecialType.System_String)
Microsoft.CodeAnalysis.CSharp (113)
Binder\Binder_Conversions.cs (1)
191Debug.Assert(destination.SpecialType != SpecialType.System_String);
Binder\Binder_Expressions.cs (1)
10055else if (receiver.Type.SpecialType == SpecialType.System_String)
Binder\Binder_InterpolatedString.cs (9)
41var stringType = GetSpecialType(SpecialType.System_String, diagnostics, node); 167var constantValue = ConstantValue.Create(text, SpecialType.System_String); 219Debug.Assert(unconvertedInterpolatedString.Type?.SpecialType == SpecialType.System_String); 245Debug.Assert(unconvertedInterpolatedString.Parts.All(static part => part.Type is null or { SpecialType: SpecialType.System_String })); 304fillin.Value.Type?.SpecialType != SpecialType.System_String || 414expressions[0] = new BoundLiteral(syntax, ConstantValue.Create(formatString.ToStringAndFree()), GetSpecialType(Microsoft.CodeAnalysis.SpecialType.System_String, diagnostics, syntax)) { WasCompilerGenerated = true }; 436=> parts.All(p => p is BoundLiteral or BoundStringInsert { Value.Type.SpecialType: SpecialType.System_String, Alignment: null, Format: null }); 517var @string = GetSpecialType(SpecialType.System_String, diagnostics, rootSyntax); 887Debug.Assert(part is BoundLiteral { Type: { SpecialType: SpecialType.System_String }, ConstantValueOpt.IsString: true });
Binder\Binder_Invocation.cs (5)
1633defaultValue = new BoundLiteral(syntax, ConstantValue.Create(path), Compilation.GetSpecialType(SpecialType.System_String)) { WasCompilerGenerated = true }; 1638defaultValue = new BoundLiteral(syntax, ConstantValue.Create(memberName), Compilation.GetSpecialType(SpecialType.System_String)) { WasCompilerGenerated = true }; 1642&& Conversions.ClassifyBuiltInConversion(Compilation.GetSpecialType(SpecialType.System_String), parameterType, isChecked: false, ref discardedUseSiteInfo).Exists 1647defaultValue = new BoundLiteral(syntax, ConstantValue.Create(argument.Syntax.ToString()), Compilation.GetSpecialType(SpecialType.System_String)) { WasCompilerGenerated = true }; 2247return new BoundNameOfOperator(node, boundArgument, ConstantValue.Create(name), Compilation.GetSpecialType(SpecialType.System_String));
Binder\Binder_Operators.cs (1)
557Debug.Assert(right.Type.SpecialType == SpecialType.System_String);
Binder\Binder_Patterns.cs (3)
428if (convertedType.SpecialType == SpecialType.System_String && inputType.IsSpanOrReadOnlySpanChar()) 652if (expression.Type?.SpecialType == SpecialType.System_String && inputType.IsSpanOrReadOnlySpanChar()) 1709SpecialType.System_String => BinaryOperatorKind.String,
Binder\Binder_Statements.cs (2)
1278if (initializerType.SpecialType == SpecialType.System_String && 1279((object)fixedPatternMethod == null || fixedPatternMethod.ContainingType.SpecialType != SpecialType.System_String))
Binder\ForEachLoopBinder.cs (4)
574(collectionConversionClassification.Kind == ConversionKind.ExplicitReference && collectionExpr.Type.SpecialType == SpecialType.System_String)); 682else if (collectionExpr.Type.SpecialType == SpecialType.System_String && builder.CollectionType.SpecialType == SpecialType.System_Collections_IEnumerable) 997if (!isAsync && collectionExprType.SpecialType == SpecialType.System_String) 1292builder.ElementTypeWithAnnotations = collectionExprType.SpecialType == SpecialType.System_String ?
Binder\PatternExplainer.cs (2)
704SpecialType.System_String => true, 734case SpecialType.System_String:
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1785TypeSymbol expectedAttributeType = corLibrary.GetSpecialType(SpecialType.System_String);
Binder\Semantics\Operators\BinaryOperatorEasyOut.cs (1)
356left.Type.SpecialType == SpecialType.System_String)
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (2)
768((object)left.Type == null || (!left.Type.IsDelegateType() && left.Type.SpecialType != SpecialType.System_String && left.Type.SpecialType != SpecialType.System_Delegate)) && 769((object)right.Type == null || (!right.Type.IsDelegateType() && right.Type.SpecialType != SpecialType.System_String && right.Type.SpecialType != SpecialType.System_Delegate));
Binder\Semantics\Operators\OperatorFacts.cs (1)
51case SpecialType.System_String:
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
1369=> argument is BoundLiteral { Type.SpecialType: SpecialType.System_String } &&
CodeGen\EmitArrayInitializer.cs (1)
686if (elementType.IsReferenceType && elementType.SpecialType != SpecialType.System_String)
CodeGen\EmitStatement.cs (2)
1308expression.Type.SpecialType == SpecialType.System_String || expression.Type.IsSpanOrReadOnlySpanChar()); 1311if (expression.Type.SpecialType == SpecialType.System_String || expression.Type.IsSpanOrReadOnlySpanChar())
Compilation\BuiltInOperators.cs (3)
763return _compilation.GetSpecialType(SpecialType.System_String); 792return _compilation.GetSpecialType(SpecialType.System_String); 826return _compilation.GetSpecialType(SpecialType.System_String);
Compilation\CSharpCompilation.cs (1)
2253return (array.IsSZArray && array.ElementType.SpecialType == SpecialType.System_String, returnsTaskOrTaskOfInt);
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (1)
328var stringType = Compilation.GetSpecialType(SpecialType.System_String);
Emitter\NoPia\EmbeddedTypesManager.cs (1)
59var typeSymbol = ModuleBeingBuilt.Compilation.GetSpecialType(SpecialType.System_String);
FlowAnalysis\DefiniteAssignment.cs (1)
905type.SpecialType != SpecialType.System_String &&
FlowAnalysis\NullableWalker.cs (2)
10979(conversion.Kind == ConversionKind.ExplicitReference && resultType.SpecialType == SpecialType.System_String)) 11043else if (resultType.SpecialType == SpecialType.System_String)
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (3)
231SpecialType.System_String 462if (parameter.Type.SpecialType == SpecialType.System_String && targetType.SpecialType != SpecialType.System_String)
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (2)
752bool isStringInput = input.Type.SpecialType == SpecialType.System_String; 951StringPatternInput.String => _factory.SpecialType(SpecialType.System_String),
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
117Debug.Assert(node.Type.SpecialType == SpecialType.System_String, "Non-string binary addition should have been handled by VisitConversion or VisitArguments");
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (1)
209else if (fixedCollectionInitializer.Expression.Type is { SpecialType: SpecialType.System_String })
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (1)
75if (origDefinition.SpecialType == SpecialType.System_String)
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (1)
201if (method.IsStatic && method.ContainingType.SpecialType == SpecialType.System_String)
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (5)
173if (method.IsStatic && method.ContainingType.SpecialType == SpecialType.System_String) 413var array = _factory.ArrayOrEmpty(_factory.SpecialType(SpecialType.System_String), loweredArgs); 568Debug.Assert(arg.HasAnyErrors || arg.Type.SpecialType == SpecialType.System_String); 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 && 750type: _compilation.GetSpecialType(SpecialType.System_String));
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (2)
145Debug.Assert(node.Type is { SpecialType: SpecialType.System_String }); // if target-converted, we should not get here. 195Debug.Assert(result.Type.SpecialType == SpecialType.System_String || result.Type.IsErrorType());
Lowering\SyntheticBoundNodeFactory.cs (2)
1139return new BoundLiteral(Syntax, stringConst, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_String)) { WasCompilerGenerated = true }; 1361return new BoundModuleVersionIdString(Syntax, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_String)) { WasCompilerGenerated = true };
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
671case SpecialType.System_String:
SymbolDisplay\SymbolDisplayVisitor_Constants.cs (1)
55case SpecialType.System_String:
Symbols\AnonymousTypes\AnonymousTypeManager.SymbolCollection.cs (1)
126get { return Compilation.GetSpecialType(SpecialType.System_String); }
Symbols\Attributes\AttributeData.cs (7)
263string? memberName = value.DecodeValue<string>(SpecialType.System_String); 275var memberName = member.DecodeValue<string>(SpecialType.System_String); 314var memberName = value.DecodeValue<string>(SpecialType.System_String); 326var memberName = member.DecodeValue<string>(SpecialType.System_String); 561if (property.TypeWithAnnotations.HasType && property.Type.SpecialType == SpecialType.System_String && 655if (member is PropertySymbol { Type: { SpecialType: SpecialType.System_String } }) 809return arguments.Length == 1 && arguments[0].TryDecodeValue(SpecialType.System_String, out string? value) ? value : null;
Symbols\Attributes\SourceAttributeData.cs (1)
422if (specType != SpecialType.System_String)
Symbols\Compilation_WellKnownMembers.cs (1)
800var stringType = GetSpecialType(SpecialType.System_String);
Symbols\ConstantValueUtils.cs (1)
112typeSymbol.SpecialType != SpecialType.System_String)
Symbols\MethodSymbol.cs (2)
1281new TypedConstant(declaringCompilation.GetSpecialType(SpecialType.System_String), TypedConstantKind.Primitive, PEModule.RequiredMembersMarker), // message 1287ImmutableArray.Create(new TypedConstant(declaringCompilation.GetSpecialType(SpecialType.System_String), TypedConstantKind.Primitive, nameof(CompilerFeatureRequiredFeatures.RequiredMembers)))
Symbols\Source\ParameterHelpers.cs (1)
794defaultExpression.Type.SpecialType == SpecialType.System_String ||
Symbols\Source\SourceAssemblySymbol.cs (2)
2022var stringType = _compilation.GetSpecialType(SpecialType.System_String); 2032var stringType = _compilation.GetSpecialType(SpecialType.System_String);
Symbols\Source\SourceComplexParameterSymbol.cs (6)
688if (constructorArguments[0].TryDecodeValue(SpecialType.System_String, out string? parameterName)) 1107TypeSymbol stringType = compilation.GetSpecialType(SpecialType.System_String); 1140TypeSymbol stringType = compilation.GetSpecialType(SpecialType.System_String); 1181TypeSymbol stringType = compilation.GetSpecialType(SpecialType.System_String); 1340if (constant.TypeInternal is not { SpecialType: SpecialType.System_String }) 1346var name = constant.DecodeValue<string>(SpecialType.System_String);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4464returnType: TypeWithAnnotations.Create(compilation.GetSpecialType(SpecialType.System_String)),
Symbols\Source\SourceMethodSymbolWithAttributes.cs (5)
345string? name = attributeData.GetConstructorArgument<string>(0, SpecialType.System_String); 755string name = attribute.GetConstructorArgument<string>(0, SpecialType.System_String); 849string? moduleName = attribute.GetConstructorArgument<string>(0, SpecialType.System_String); 996{ Type.SpecialType: SpecialType.System_String }, 1004Debug.Assert(arguments.Attribute.AttributeConstructor.Parameters is [{ Type.SpecialType: SpecialType.System_Int32 }, { Type.SpecialType: SpecialType.System_String }]);
Symbols\Source\SourceNamedTypeSymbol.cs (7)
938string? name = attributeData.GetConstructorArgument<string>(0, SpecialType.System_String); 1032string? methodName = attributeData.GetConstructorArgument<string>(1, SpecialType.System_String); 1192string? methodName = attribute.CommonConstructorArguments[1].DecodeValue<string>(SpecialType.System_String); 1393string name = attribute.GetConstructorArgument<string>(0, SpecialType.System_String); 1693new TypedConstant(compilation.GetSpecialType(SpecialType.System_String), TypedConstantKind.Primitive, PEModule.ByRefLikeMarker), // message 1699ImmutableArray.Create(new TypedConstant(compilation.GetSpecialType(SpecialType.System_String), TypedConstantKind.Primitive, nameof(CompilerFeatureRequiredFeatures.RefStructs))), 1712var defaultMemberNameConstant = new TypedConstant(compilation.GetSpecialType(SpecialType.System_String), TypedConstantKind.Primitive, defaultMemberName);
Symbols\Source\SourcePropertySymbolBase.cs (2)
1440string? indexerName = attributeData.CommonConstructorArguments[0].DecodeValue<string>(SpecialType.System_String); 1701string indexerName = attribute.CommonConstructorArguments[0].DecodeValue<string>(SpecialType.System_String);
Symbols\SpecialTypeExtensions.cs (1)
28case SpecialType.System_String:
Symbols\Synthesized\Records\SynthesizedRecordToString.cs (1)
43return (ReturnType: TypeWithAnnotations.Create(Binder.GetSpecialType(compilation, SpecialType.System_String, location, diagnostics), annotation),
Symbols\Synthesized\SynthesizedFieldSymbolBase.cs (1)
75compilation.CanEmitSpecialType(SpecialType.System_String))
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
173compilation.CanEmitSpecialType(SpecialType.System_String))
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (1)
59TypeWithAnnotations.Create(Binder.GetSpecialType(compilation, SpecialType.System_String, NoLocation.Singleton, diagnostics)))), 0, RefKind.None, "args"));
Symbols\TypeSymbolExtensions.cs (3)
201return type.SpecialType == SpecialType.System_String; 1354case SpecialType.System_String: 2214case SpecialType.System_String: return 1;
Syntax\SyntaxKindExtensions.cs (1)
42return SpecialType.System_String;
Utilities\ValueSetFactory.cs (1)
48SpecialType.System_String => ForString,
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (1)
190if (symbol is null || !symbol.IsUserDefinedOperator() || symbol.ContainingType.SpecialType == SpecialType.System_String)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.InfoCache.cs (1)
74var stringType = compilation.GetSpecialType(SpecialType.System_String);
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs (1)
16=> method is { ContainingType.SpecialType: SpecialType.System_String, Name: nameof(string.Remove) };
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
1033if (parentTypes.Any(static parentType => parentType.InferredType.SpecialType == SpecialType.System_String || parentType.InferredType.TypeKind == TypeKind.Delegate)) 1035return parentTypes.Where(parentType => parentType.InferredType.SpecialType == SpecialType.System_String || parentType.InferredType.TypeKind == TypeKind.Delegate);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
CodeGeneration\SyntaxGeneratorTests.cs (2)
91Assert.Equal(SpecialType.System_String, typeInfo.Type.SpecialType); 92Assert.Equal(SpecialType.System_String, typeInfo.ConvertedType.SpecialType);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (49)
CodeGen\CodeGenFunctionPointersTests.cs (8)
103(RefKind.None, IsSpecialType(SpecialType.System_String))); 148(RefKind.Ref, IsSpecialType(SpecialType.System_String))); 172(RefKind.Out, IsSpecialType(SpecialType.System_String))); 230(RefKind.In, IsSpecialType(SpecialType.System_String)), 652(RefKind.RefReadOnly, IsSpecialType(SpecialType.System_String))))); 791(RefKind.None, IsSpecialType(SpecialType.System_String)))); 7669var @string = comp1.GetSpecialType(SpecialType.System_String); 7754var @string = comp2.GetSpecialType(SpecialType.System_String);
CodeGen\CodeGenTupleTest.cs (36)
5827TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 5871TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 5906var stringType = comp.GetSpecialType(SpecialType.System_String); 5948TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 5969TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 5988TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 6025TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 6051TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 6077TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 6102TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 6127TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 6153TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 6365TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 6384var stringType = comp.GetSpecialType(SpecialType.System_String); 6413TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 6429TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 6460TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 6480TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 6500TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 6521TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 6584INamedTypeSymbol intType = comp.GetSpecialType(SpecialType.System_String).GetPublicSymbol(); 6603var stringType = comp.GetSpecialType(SpecialType.System_String); 6934NamedTypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 18844TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 18862ITypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 18882ITypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 18905TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 18922ITypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 18948ITypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 18973ITypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 18998ITypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 19024ITypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 19066ITypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 19105ITypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 19144ITypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 19183ITypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String);
Emit\EmitMetadataTests.cs (5)
463Assert.Same(module.GetCorLibType(SpecialType.System_String), method4ParamTypes[7]); 670CheckConstantField(type, "S", Accessibility.Public, SpecialType.System_String, "string"); 956Assert.Equal(SpecialType.System_String, qBack.Type.SpecialType); 1027Assert.Equal(SpecialType.System_String, qBack.Type.SpecialType); 1280Assert.Equal(SpecialType.System_String, p.Type.SpecialType);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (14)
Attributes\AttributeTests_Synthesized.cs (1)
1970new TypedConstant(comp.GetSpecialType(SpecialType.System_String), TypedConstantKind.Primitive, "unused"))));
Attributes\AttributeTests_Tuples.cs (1)
647Assert.True(constant.Type.SpecialType == SpecialType.System_String);
Semantics\ParamsCollectionTests.cs (4)
5894Assert.NotEqual(SpecialType.System_String, model.GetSymbolInfo(f1).Symbol.GetParameters().Single().Type.SpecialType); 5896Assert.NotEqual(SpecialType.System_String, model.GetSymbolInfo(f2).Symbol.GetParameters().Single().Type.SpecialType); 5976Assert.NotEqual(SpecialType.System_String, model.GetSymbolInfo(f1).Symbol.GetParameters().Single().Type.SpecialType); 5978Assert.NotEqual(SpecialType.System_String, model.GetSymbolInfo(f2).Symbol.GetParameters().Single().Type.SpecialType);
Semantics\PatternMatchingTests.cs (2)
11370Assert.Equal(SpecialType.System_String, typeInfo.Type.SpecialType); 11371Assert.Equal(SpecialType.System_String, typeInfo.ConvertedType.SpecialType);
Semantics\PrimaryConstructorTests.cs (6)
415Assert.Equal(SpecialType.System_String, y.Type.SpecialType); 486Assert.Equal(SpecialType.System_String, y.Type.SpecialType); 599Assert.Equal(SpecialType.System_String, y.Type.SpecialType); 685Assert.Equal(SpecialType.System_String, b.Type.SpecialType); 723Assert.Equal(SpecialType.System_String, p2.Type.SpecialType); 778Assert.Equal(SpecialType.System_String, p2.Type.SpecialType);
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
EndToEndTests.cs (1)
619Assert.Equal(SpecialType.System_String, type.SpecialType);
Microsoft.CodeAnalysis.CSharp.Features (5)
Completion\KeywordRecommenders\StringKeywordRecommender.cs (1)
21protected override SpecialType SpecialType => SpecialType.System_String;
ExtractMethod\CSharpSelectionResult.ExpressionResult.cs (1)
119if (info.Type?.SpecialType == SpecialType.System_String &&
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (1)
190if (symbol is null || !symbol.IsUserDefinedOperator() || symbol.ContainingType.SpecialType == SpecialType.System_String)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.InfoCache.cs (1)
74var stringType = compilation.GetSpecialType(SpecialType.System_String);
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs (1)
16=> method is { ContainingType.SpecialType: SpecialType.System_String, Name: nameof(string.Remove) };
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\FunctionPointerOperations.cs (1)
210Assert.Equal(SpecialType.System_String, signature.Parameters[0].Type.SpecialType);
Microsoft.CodeAnalysis.CSharp.Scripting (1)
Hosting\ObjectFormatter\CSharpTypeNameFormatter.cs (1)
41case SpecialType.System_String: return "string";
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (31)
Semantics\DelegateTypeTests.cs (1)
15592var stringType = comp.GetSpecialType(SpecialType.System_String);
Semantics\ExpressionBodiedMemberTests.cs (1)
178Assert.Equal(SpecialType.System_String, semanticInfo.Type.SpecialType);
Semantics\ForEachTests.cs (7)
1245Assert.Equal(SpecialType.System_String, info.CollectionType.SpecialType); 1258Assert.Equal(SpecialType.System_String, boundNode.Expression.Type.SpecialType); 1259Assert.Equal(SpecialType.System_String, ((BoundConversion)boundNode.Expression).Operand.Type.SpecialType); 1551Assert.Equal(SpecialType.System_String, info.CollectionType.SpecialType); 2189Assert.Equal(SpecialType.System_String, loopInfo0.ElementType.SpecialType); 2890Assert.Equal(SpecialType.System_String, localSymbolType.SpecialType); 3117Assert.Equal(SpecialType.System_String, info.CollectionType.SpecialType);
Semantics\FunctionPointerTests.cs (4)
1619Assert.Equal(SpecialType.System_String, methodSymbol.TypeArguments[0].SpecialType); 1621Assert.Equal(SpecialType.System_String, functionPointer.Signature.Parameters[0].Type.SpecialType); 1779Assert.Equal(SpecialType.System_String, methodSymbol.TypeArguments[0].SpecialType); 1781Assert.Equal(SpecialType.System_String, functionPointer.Signature.ReturnType.SpecialType);
Semantics\InteractiveUsingTests.cs (1)
26Assert.Equal(SpecialType.System_String, GetSpeculativeType(sub, "String").SpecialType);
Semantics\InterpolationTests.cs (3)
4607Assert.Equal(SpecialType.System_String, semanticInfo.Type.SpecialType); 4834Assert.Equal(SpecialType.System_String, semanticInfo.Type.SpecialType); 4835Assert.Equal(SpecialType.System_String, semanticInfo.ConvertedType.SpecialType);
Semantics\LocalFunctionTests.cs (4)
464Assert.Equal(SpecialType.System_String, argType1.SpecialType); 620Assert.Equal(SpecialType.System_String, model.GetTypeInfo(arg1.Expression).Type.SpecialType); 624Assert.Equal(SpecialType.System_String, model.GetTypeInfo(arg2.Expression).Type.SpecialType); 628Assert.Equal(SpecialType.System_String, model.GetTypeInfo(arg3.Expression).Type.SpecialType);
Semantics\LockTests.cs (2)
667var symbol = compilation.GetSpecialType(SpecialType.System_String); 688var symbol = compilation.GetSpecialType(SpecialType.System_String);
Semantics\ObjectAndCollectionInitializerTests.cs (1)
3844Assert.Equal(SpecialType.System_String, typeInfo.Type.SpecialType);
Semantics\RawInterpolationTests_Handler.cs (3)
2908Assert.Equal(SpecialType.System_String, semanticInfo.Type.SpecialType); 3135Assert.Equal(SpecialType.System_String, semanticInfo.Type.SpecialType); 3136Assert.Equal(SpecialType.System_String, semanticInfo.ConvertedType.SpecialType);
Semantics\TopLevelStatementsTests.cs (1)
7606comp.MakeTypeMissing(SpecialType.System_String);
Semantics\UnsafeTests.cs (2)
10218var stringSymbol = compilation.GetSpecialType(SpecialType.System_String); 10290var stringSymbol = compilation.GetSpecialType(SpecialType.System_String);
Utilities\ValueSetTests.cs (1)
502Assert.Same(ForString, ForSpecialType(SpecialType.System_String));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (78)
Compilation\CompilationAPITests.cs (6)
2658var memberTypes = ImmutableArray.Create<ITypeSymbol>(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String)); 2698var memberTypes = ImmutableArray.Create<ITypeSymbol>(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String)); 3032var typeArguments = ImmutableArray.Create<ITypeSymbol>(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String)); 3052typeArguments = ImmutableArray.Create<ITypeSymbol>(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String)); 3067var typeArguments = ImmutableArray.Create<ITypeSymbol>(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String)); 3087typeArguments = ImmutableArray.Create<ITypeSymbol>(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String));
Compilation\SemanticModelAPITests.cs (12)
708Assert.Equal(compilation.GetSpecialType(SpecialType.System_String), (info.Symbol as IArrayTypeSymbol).ElementType); 3745var stringType = comp.GetSpecialType(SpecialType.System_String); 4190Assert.Equal(SpecialType.System_String, model.GetTypeInfo(actual[0]).Type.SpecialType); 4280Assert.Equal(SpecialType.System_String, model.GetTypeInfo(actual[0]).Type.SpecialType); 4284Assert.Equal(SpecialType.System_String, model.GetTypeInfo(actual[1]).Type.SpecialType); 4287Assert.Equal(SpecialType.System_String, model.GetTypeInfo(actual[2]).Type.SpecialType); 4291Assert.Equal(SpecialType.System_String, model.GetTypeInfo(actual[3]).Type.SpecialType); 4295Assert.Equal(SpecialType.System_String, model.GetTypeInfo(actual[4]).Type.SpecialType); 4299Assert.Equal(SpecialType.System_String, model.GetTypeInfo(actual[5]).Type.SpecialType); 4303Assert.Equal(SpecialType.System_String, model.GetTypeInfo(actual[6]).Type.SpecialType); 4307Assert.Equal(SpecialType.System_String, model.GetTypeInfo(actual[7]).Type.SpecialType); 4504Assert.Equal(SpecialType.System_String, type.TupleElements[0].Type.SpecialType);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (1)
1824type = type.Construct(compilation.GetSpecialType(SpecialType.System_String));
Compilation\SemanticModelGetSemanticInfoTests.cs (7)
342Assert.Equal(SpecialType.System_String, semanticInfo.Type.SpecialType); 430Assert.Equal(SpecialType.System_String, semanticInfo.Type.SpecialType); 1287type = compilation.GetSpecialType(SpecialType.System_String); 1314type = compilation.GetSpecialType(SpecialType.System_String); 6229Assert.Equal(SpecialType.System_String, ((IArrayTypeSymbol)semanticInfo.Type).ElementType.SpecialType); 6251Assert.Equal(SpecialType.System_String, semanticInfo.Type.SpecialType); 6255Assert.Equal(SpecialType.System_String, ((ITypeSymbol)symbol).SpecialType);
DocumentationComments\CrefTests.cs (1)
5921var expectedSymbol = compilation.GetSpecialType(SpecialType.System_String).
Symbols\ExtensionMethodTests.cs (1)
2527var stringType = compilation.GetSpecialType(SpecialType.System_String);
Symbols\FunctionPointerTypeSymbolTests.cs (12)
267Assert.Equal(SpecialType.System_String, pointerType.Signature.ReturnType.SpecialType); 1529var @string = comp.GetSpecialType(SpecialType.System_String); 1552var @string = comp.GetSpecialType(SpecialType.System_String); 1580var @string = comp.GetSpecialType(SpecialType.System_String); 1596var @string = comp.GetSpecialType(SpecialType.System_String); 1615var @string = comp.GetSpecialType(SpecialType.System_String); 1636var @string = comp.GetSpecialType(SpecialType.System_String); 1648var @string = comp.GetSpecialType(SpecialType.System_String); 1959var returnType = mainComp.GetSpecialType(SpecialType.System_String).GetPublicSymbol(); 1979var returnType = comp.GetSpecialType(SpecialType.System_String); 2084var returnType = comp.GetSpecialType(SpecialType.System_String); 2135var returnType = comp.GetSpecialType(SpecialType.System_String);
Symbols\IndexerTests.cs (11)
57CheckIndexer(type.Indexers.Single(), true, true, SpecialType.System_String, SpecialType.System_String); 63CheckIndexer(type.Indexers.Single(), true, false, SpecialType.System_Object, SpecialType.System_String); 131CheckIndexer(type.Indexers.Single(), true, true, SpecialType.System_Object, SpecialType.System_String); 134CheckIndexer(type.Indexers.Single(), true, false, SpecialType.System_Object, SpecialType.System_String); 137CheckIndexer(type.Indexers.Single(), true, true, SpecialType.System_Object, SpecialType.System_String); 142CheckIndexer(typeAProperties[0], true, true, SpecialType.System_Object, SpecialType.System_String); 143CheckIndexer(typeAProperties[1], true, false, SpecialType.System_Object, SpecialType.System_String); 144CheckIndexer(typeAProperties[2], true, true, SpecialType.System_Object, SpecialType.System_String); 147CheckIndexer(sourceType.Indexers.Single(), true, true, SpecialType.System_Object, SpecialType.System_String); 158CheckIndexer(sourceType.Indexers.Single(), true, true, SpecialType.System_Object, SpecialType.System_String);
Symbols\MissingSpecialMember.cs (2)
157var specialType = comp.GetSpecialType(SpecialType.System_String); 159Assert.Equal(SpecialType.System_String, specialType.SpecialType);
Symbols\Source\NullablePublicAPITests.cs (5)
2637Assert.Equal(SpecialType.System_String, symbol.Type.SpecialType); 4218Assert.Equal(SpecialType.System_String, ((IFieldSymbol)symbolInfo.Symbol).Type.SpecialType); 4248Assert.Equal(SpecialType.System_String, symbolInfo.Type.SpecialType); 5200Assert.Equal(SpecialType.System_String, typeInfo.Type.SpecialType); 5235Assert.Equal(SpecialType.System_String, typeInfo.Type.SpecialType);
Symbols\Source\PropertyTests.cs (14)
1884Assert.True(getters.Any(getter => getter.Parameters[0].Type.SpecialType == SpecialType.System_String)); 1888getter.Parameters[1].Type.SpecialType == SpecialType.System_String)); 2624Assert.Equal(SpecialType.System_String, iap2.Type.SpecialType); 2626Assert.Equal(SpecialType.System_String, iam2.ReturnType.SpecialType); 2642Assert.Equal(SpecialType.System_String, iap2.Type.SpecialType); 2644Assert.Equal(SpecialType.System_String, iam2.ReturnType.SpecialType); 2660Assert.Equal(SpecialType.System_String, iap2.Type.SpecialType); 2662Assert.Equal(SpecialType.System_String, iam2.ReturnType.SpecialType); 2678Assert.Equal(SpecialType.System_String, iap2.Type.SpecialType); 2680Assert.Equal(SpecialType.System_String, iam2.ReturnType.SpecialType); 2717Assert.Equal(SpecialType.System_String, iap2.Type.SpecialType); 2719Assert.Equal(SpecialType.System_String, iam2.ReturnType.SpecialType); 2735Assert.Equal(SpecialType.System_String, iap2.Type.SpecialType); 2737Assert.Equal(SpecialType.System_String, iam2.ReturnType.SpecialType);
Symbols\Source\RecordTests.cs (3)
40Assert.Equal(SpecialType.System_String, y.Type.SpecialType); 92Assert.Equal(SpecialType.System_String, b.Type.SpecialType); 127Assert.Equal(SpecialType.System_String, p2.Type.SpecialType);
Symbols\TypedConstantTests.cs (3)
36_stringType = _compilation.GetSpecialType(SpecialType.System_String); 37_enumString1 = _compilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T).Construct(_compilation.GetSpecialType(SpecialType.System_String)); 38_enumString2 = _compilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T).Construct(_compilation.GetSpecialType(SpecialType.System_String));
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
3439SpecialType.System_String => StringKeyword,
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (2)
53SpecialType.System_String => SyntaxKind.StringKeyword, 387semanticModel.GetTypeInfo(invocationExpr).Type.SpecialType == SpecialType.System_String;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
1033if (parentTypes.Any(static parentType => parentType.InferredType.SpecialType == SpecialType.System_String || parentType.InferredType.TypeKind == TypeKind.Delegate)) 1035return parentTypes.Where(parentType => parentType.InferredType.SpecialType == SpecialType.System_String || parentType.InferredType.TypeKind == TypeKind.Delegate);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (2)
CodeGeneration\SyntaxGeneratorTests.cs (2)
306VerifySyntax<TypeSyntax>(Generator.TypeExpression(SpecialType.System_String), "string"); 855_emptyCompilation.GetSpecialType(SpecialType.System_String)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (3)
PDB\PdbHelpers.cs (3)
101(SpecialType.System_String, 0) => ConstantValue.Null, 102(SpecialType.System_String, null) => ConstantValue.Create(string.Empty), 103(SpecialType.System_String, string str) => ConstantValue.Create(str),
Microsoft.CodeAnalysis.Features (21)
AddDebuggerDisplay\AbstractAddDebuggerDisplayCodeRefactoringProvider.cs (1)
165returnType: generator.TypeExpression(SpecialType.System_String),
Completion\Providers\AbstractObjectInitializerCompletionProvider.cs (1)
143case SpecialType.System_String:
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (1)
239if (collectionType.SpecialType == SpecialType.System_String)
ConvertToInterpolatedString\AbstractConvertConcatenationToInterpolatedStringRefactoringProvider.cs (1)
294ContainingType.SpecialType: SpecialType.System_String,
ConvertToInterpolatedString\AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider.cs (2)
45var stringType = semanticModel.Compilation.GetSpecialType(SpecialType.System_String); 103var shouldReplaceInvocation = invocationSymbol is { ContainingType.SpecialType: SpecialType.System_String, Name: nameof(string.Format) };
DesignerAttribute\DesignerAttributeDiscoveryService.cs (1)
321if (attribute is { ConstructorArguments: [{ Type.SpecialType: SpecialType.System_String, Value: string stringValue }] })
EmbeddedLanguages\EmbeddedLanguageDetector.cs (1)
191m => m is IMethodSymbol { Parameters: [{ Type.SpecialType: SpecialType.System_String }, ..] });
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (5)
108if (parameter.Type.SpecialType == SpecialType.System_String) 160if (parameter.Type.SpecialType == SpecialType.System_String) 234else if (parameter.Type.SpecialType == SpecialType.System_String && 302return targetMethod.ContainingType.SpecialType == SpecialType.System_String; 394var stringType = compilation.GetSpecialType(SpecialType.System_String);
IntroduceVariable\AbstractIntroduceVariableService.cs (1)
409if (typeInfo.Type?.SpecialType == SpecialType.System_String &&
Snippets\SnippetProviders\AbstractMainMethodSnippetProvider.cs (1)
31type: generator.ArrayTypeExpression(generator.TypeExpression(SpecialType.System_String)))],
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (2)
832attribute.AttributeConstructor?.Parameters is [_, { Name: "checkId", Type.SpecialType: SpecialType.System_String }, ..] && 841attribute.AttributeConstructor.Parameters[0].Type.SpecialType == SpecialType.System_String &&
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
734attribute.ConstructorArguments is [{ Kind: TypedConstantKind.Primitive, Type.SpecialType: SpecialType.System_String, Value: string value }])
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
273if (method is { MetadataName: "GetInstance", IsStatic: true, Parameters: [{ Type.SpecialType: SpecialType.System_String }] } &&
src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
303if (containingType.SpecialType != SpecialType.System_String)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
395case SpecialType.System_String:
Microsoft.CodeAnalysis.Scripting (2)
Hosting\ObjectFormatter\CommonPrimitiveFormatter.cs (1)
67case SpecialType.System_String:
Hosting\ObjectFormatter\ObjectFormatterHelpers.cs (1)
287return SpecialType.System_String;
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\LocalCouldBeConstAnalyzer.cs (1)
89if ((!localType.IsReferenceType || localType.SpecialType == SpecialType.System_String) && localType.SpecialType != SpecialType.None)
Microsoft.CodeAnalysis.UnitTests (4)
CommonTypedConstantTests.cs (3)
31_stringType = _compilation.GetSpecialType(SpecialType.System_String); 32_enumString1 = _compilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T).Construct(_compilation.GetSpecialType(SpecialType.System_String)); 33_enumString2 = _compilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T).Construct(_compilation.GetSpecialType(SpecialType.System_String));
CorLibTypesTests.cs (1)
49Assert.Equal(SpecialType.System_String, SpecialTypes.GetTypeFromMetadataName(Cci.PrimitiveTypeCode.String));
Microsoft.CodeAnalysis.VisualBasic (123)
Binding\Binder.vb (1)
522If candidateProperty.Type.SpecialType <> SpecialType.System_String OrElse
Binding\Binder_Conversions.vb (2)
291Case SyntaxKind.CStrKeyword : targetType = SpecialType.System_String 1730If (targetType.SpecialType = SpecialType.System_String) AndAlso IsIEnumerableOfXElement(sourceType, useSiteInfo) Then
Binding\Binder_Expressions.vb (5)
765Return New BoundNameOfOperator(node, argument, ConstantValue.Create(value), GetSpecialType(SpecialType.System_String, node, diagnostics)) 3748GetSpecialType(SpecialType.System_String, node.Name, diagnostics))), 3767Dim arg = New BoundLiteral(name, ConstantValue.Create(node.Name.Identifier.ValueText), GetSpecialType(SpecialType.System_String, name, diagnostics)) 3786Dim arg = New BoundLiteral(name, ConstantValue.Create(node.Name.Identifier.ValueText), GetSpecialType(SpecialType.System_String, name, diagnostics)) 3829GetSpecialType(SpecialType.System_String, node.Name, diagnostics))),
Binding\Binder_InterpolatedString.vb (2)
32Return New BoundInterpolatedStringExpression(syntax, contentBuilder.ToImmutableAndFree(), constructionOpt:=Nothing, type:=GetSpecialType(SpecialType.System_String, syntax, diagnostics)) 77Debug.Assert(node.Type.SpecialType = SpecialType.System_String)
Binding\Binder_Invocation.vb (1)
3181literal = New BoundLiteral(syntax, callerInfoValue, GetSpecialType(SpecialType.System_String, syntax, ignoreDiagnostics))
Binding\Binder_Operators.vb (5)
821stringType = GetSpecialType(SpecialType.System_String, dbNullOperand.Syntax, diagnostics) 1025defaultRightSpecialType = SpecialType.System_String 1082defaultLeftSpecialType = SpecialType.System_String 1122If leftType.SpecialType <> SpecialType.System_String Then 1123rightType = GetSpecialType(SpecialType.System_String, right.Syntax, diagnostics)
Binding\Binder_Statements.vb (1)
2219Dim stringType As NamedTypeSymbol = GetSpecialType(SpecialType.System_String, midExpression, diagnostics)
Binding\Binder_Symbols.vb (1)
776type = SpecialType.System_String
Binding\Binder_Utils.vb (1)
737specialType = SpecialType.System_String
Binding\Binder_XmlLiterals.vb (5)
292Dim prefixesType = CreateArrayType(GetSpecialType(SpecialType.System_String, syntax, diagnostics)) 674memberAccess = BadExpression(syntax, ImmutableArray.Create(receiver, name), Compilation.GetSpecialType(SpecialType.System_String)) 797Return BadExpression(syntax, Compilation.GetSpecialType(SpecialType.System_String)) 903Dim result = BadExpression(syntax, Compilation.GetSpecialType(SpecialType.System_String)) 1057Dim result = New BoundLiteral(syntax, ConstantValue.Create(str), GetSpecialType(SpecialType.System_String, syntax, diagnostics), hasErrors:=hasErrors)
Binding\DocumentationCommentCrefBinder_Compat.vb (1)
362type = SpecialType.System_String
BoundTree\BoundInterpolatedStringExpression.vb (1)
40Debug.Assert(Type.SpecialType = SpecialType.System_String)
CodeGen\EmitStatement.vb (1)
1053If exprType.SpecialType <> SpecialType.System_String Then
Emit\EditAndContinue\PEDeltaAssemblyBuilder.vb (1)
314Dim stringType = Compilation.GetSpecialType(SpecialType.System_String)
Emit\NoPia\EmbeddedTypesManager.vb (1)
46Dim type = ModuleBeingBuilt.Compilation.GetSpecialType(SpecialType.System_String)
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (1)
501SpecialType.System_String
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (1)
261Debug.Assert(operandUnderlyingSpecialType <> SpecialType.System_String)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (16)
258argumentType = _factory.SpecialType(SpecialType.System_String) 466Case SpecialType.System_String : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToBooleanString 475Case SpecialType.System_String : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToByteString 484Case SpecialType.System_String : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToSByteString 493Case SpecialType.System_String : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToShortString 502Case SpecialType.System_String : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToUShortString 511Case SpecialType.System_String : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToIntegerString 520Case SpecialType.System_String : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToUIntegerString 529Case SpecialType.System_String : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToLongString 538Case SpecialType.System_String : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToULongString 555Case SpecialType.System_String : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToDecimalString 562Case SpecialType.System_String : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToSingleString 569Case SpecialType.System_String : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToDoubleString 575Case SpecialType.System_String : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToCharString 579Case SpecialType.System_String 603Case SpecialType.System_String : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToDateString
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (1)
853Case SpecialType.System_String : member = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToStringObject
Lowering\LocalRewriter\LocalRewriter_ForEach.vb (1)
209Debug.Assert(collectionExpression.Type.SpecialType = SpecialType.System_String OrElse
Lowering\LocalRewriter\LocalRewriter_InterpolatedString.vb (1)
19Debug.Assert(node.Type.SpecialType = SpecialType.System_String)
Lowering\LocalRewriter\LocalRewriter_SelectCase.vb (1)
173Me.ReportBadType(selectCaseExpr, Compilation.GetSpecialType(SpecialType.System_String))
Lowering\LocalRewriter\LocalRewriter_StringConcat.vb (1)
121If method.IsShared AndAlso method.ContainingType.SpecialType = SpecialType.System_String Then
Lowering\LocalRewriter\LocalRewriter_XmlLiterals.vb (1)
326Return New BoundLiteral(syntax, ConstantValue.Create(str), GetSpecialType(SpecialType.System_String)).MakeCompilerGenerated()
Preprocessor\CConst.vb (2)
63Case SpecialType.System_String 125Return New CConst(Of String)(value, SpecialType.System_String)
Preprocessor\ExpressionEvaluator.vb (22)
39Const ___String = CType(SpecialType.System_String, Byte) 103Case SpecialType.System_String 342Case SpecialType.System_String 396Return SpecialType.System_String 417If specialType <> SpecialType.System_Object AndAlso specialType <> SpecialType.System_String Then 422value.SpecialType = SpecialType.System_String Then 449val.SpecialType = SpecialType.System_String Then 526specialType = SpecialType.System_String 630Case SpecialType.System_String 631Return ReportSemanticError(ERRID.ERR_RequiredConstConversion2, expr, SpecialType.System_String.GetDisplayName(), SpecialType.System_Boolean.GetDisplayName()) 676Case SpecialType.System_String 677Return ReportSemanticError(ERRID.ERR_RequiredConstConversion2, expr, SpecialType.System_String.GetDisplayName(), toSpecialType.GetDisplayName()) 718Case SpecialType.System_String 753Case SpecialType.System_String 784Case SpecialType.System_String 805If specialType = SpecialType.System_String Then 832Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, specialType, SpecialType.System_String.GetDisplayName()) 856If specialType = SpecialType.System_String OrElse 1023OperandType = SpecialType.System_String 1045OperandType = SpecialType.System_String 1077If ResultType = SpecialType.System_String Then 1491ElseIf left.SpecialType = SpecialType.System_String Then
Preprocessor\OperatorResolution.vb (2)
60Case SpecialType.System_String 81Const t_str As Byte = CType(SpecialType.System_String, Byte)
Semantics\Conversions.vb (2)
3624If source.SpecialType = SpecialType.System_String Then 3626ElseIf destination.SpecialType = SpecialType.System_String Then
Semantics\Operators.vb (7)
605SpecialType.System_String 638Case SpecialType.System_String 677Case SpecialType.System_String 958leftSpecialType = SpecialType.System_String 962rightSpecialType = SpecialType.System_String 976intrinsicOperatorType <> SpecialType.System_String AndAlso 1723Const tStr As SByte = SpecialType.System_String
SymbolDisplay\SymbolDisplayVisitor_Constants.vb (1)
24Case SpecialType.System_String
Symbols\AnonymousTypes\AnonymousType_SymbolCollection.vb (1)
159Return Compilation.GetSpecialType(SpecialType.System_String)
Symbols\Attributes\AttributeData.vb (4)
423If [property].Type IsNot Nothing AndAlso [property].Type.SpecialType = SpecialType.System_String AndAlso 493Dim guidString As String = Me.GetConstructorArgument(Of String)(0, SpecialType.System_String) 509Return Me.GetConstructorArgument(Of String)(0, SpecialType.System_String) 516If prop?.Type.SpecialType = SpecialType.System_String Then
Symbols\Attributes\SourceAttributeData.vb (1)
245foundMatch = specType = SpecialType.System_String
Symbols\MethodSymbol.vb (1)
592Return array.IsSZArray AndAlso array.ElementType.SpecialType = SpecialType.System_String
Symbols\Source\SourceAssemblySymbol.vb (2)
1620Dim stringType = _compilation.GetSpecialType(SpecialType.System_String) 1629Dim stringType = _compilation.GetSpecialType(SpecialType.System_String)
Symbols\Source\SourceMethodSymbol.vb (1)
1526Dim conditionalSymbol As String = attrdata.GetConstructorArgument(Of String)(0, SpecialType.System_String)
Symbols\Source\SourceNamedTypeSymbol.vb (4)
2045Dim conditionalSymbol As String = attrdata.GetConstructorArgument(Of String)(0, SpecialType.System_String) 2484Dim stringType = GetSpecialType(SpecialType.System_String) 2506New TypedConstant(GetSpecialType(SpecialType.System_String), TypedConstantKind.Primitive, _comClassData.ClassId)))) 2533New TypedConstant(GetSpecialType(SpecialType.System_String), TypedConstantKind.Primitive, eventInterfaceName))))
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (2)
994New TypedConstant(_comClass.GetSpecialType(SpecialType.System_String), TypedConstantKind.Primitive, id)))) 1015ImmutableArray.Create(New TypedConstant(_comClass.GetSpecialType(SpecialType.System_String),
Symbols\Source\SourceNamedTypeSymbol_GroupClass.vb (3)
29Dim baseTypeNames() As String = If(attributeData.GetConstructorArgument(Of String)(0, SpecialType.System_String), "").Split(separatorComma, StringSplitOptions.None) 30Dim createMethods() As String = If(attributeData.GetConstructorArgument(Of String)(1, SpecialType.System_String), "").Split(separatorComma, StringSplitOptions.None) 31Dim disposeMethods() As String = If(attributeData.GetConstructorArgument(Of String)(2, SpecialType.System_String), "").Split(separatorComma, StringSplitOptions.None)
Symbols\Source\SourceParameterSymbol.vb (1)
250If attribute.ConstructorArguments.Single().TryDecodeValue(SpecialType.System_String, parameterName) Then
Symbols\Source\SourceWithEventsBackingFieldSymbol.vb (1)
75ImmutableArray.Create(New TypedConstant(compilation.GetSpecialType(SpecialType.System_String),
Symbols\SpecialTypeExtensions.vb (8)
22Return this = SpecialType.System_String OrElse this.IsIntrinsicValueType() 111SpecialType.System_String 131SpecialType.System_String 145Case SpecialType.System_String 214Case SpecialType.System_String 263Case SpecialType.System_String 307Case SpecialType.System_String 363Case SpecialType.System_String
Symbols\SynthesizedSymbols\SynthesizedGlobal_StringSwitchHashMethodSymbol.vb (1)
34_parameters = ImmutableArray.Create(Of ParameterSymbol)(New SynthesizedParameterSimpleSymbol(Me, compilation.GetSpecialType(SpecialType.System_String), 0, "s"))
Symbols\TypeSymbolExtensions.vb (2)
336Return this.SpecialType = SpecialType.System_String 458Case SpecialType.System_String
Symbols\WellKnownMembers.vb (1)
705Dim stringType = GetSpecialType(SpecialType.System_String)
Syntax\VisualBasicSyntaxTree.ConditionalSymbolsMap.vb (1)
206Case SpecialType.System_String
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (7)
src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateParameterizedMemberService.vb (1)
54Return Me.Document.SemanticModel.Compilation.GetSpecialType(SpecialType.System_String)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (1)
116If Not IsSpecialType(type, SpecialType.System_String) Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ITypeSymbolExtensions.vb (3)
45Case SpecialType.System_String 85specialType = specialType.System_String 118SpecialType.System_String
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\StringExtensions.vb (1)
111SpecialType.System_String,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (1)
124Case SpecialType.System_String
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (25)
Attributes\AttributeTests_Synthesized.vb (1)
1829New TypedConstant(comp.GetSpecialType(SpecialType.System_String), TypedConstantKind.Primitive, "unused"))))
Attributes\AttributeTests_Tuples.vb (1)
443Assert.True(constant.Type.SpecialType = SpecialType.System_String)
CodeGen\CodeGenTuples.vb (21)
6888Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 6917Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 6940Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 6960Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 6980Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7019Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7044Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7069Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7094Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7119Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7245Dim stringType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7268Dim stringType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7291Dim stringType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7309Dim stringType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7343Dim stringType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7364Dim stringType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7385Dim stringType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7406Dim stringType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7481Dim stringType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7503Dim stringType = comp.GetSpecialType(SpecialType.System_String) 7529Dim intType As NamedTypeSymbol = comp.GetSpecialType(SpecialType.System_String)
Emit\EmitMetadata.vb (1)
526Assert.Same([Module].GetCorLibType(SpecialType.System_String), method4ParamTypes(7))
Emit\NoPiaEmbedTypes.vb (1)
1881Assert.Equal(expr.Type.SpecialType, SpecialType.System_String)
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (1)
Rewriters\LocalDeclarationRewriter.vb (1)
61Dim stringType = compilation.GetSpecialType(SpecialType.System_String)
Microsoft.CodeAnalysis.VisualBasic.Features (3)
Completion\KeywordRecommenders\Types\BuiltInTypesKeywordRecommender.vb (1)
98SpecialType.System_String,
ExtractMethod\VisualBasicSelectionResult.vb (1)
221If If(info.Type?.SpecialType = SpecialType.System_String, False) AndAlso
src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateParameterizedMemberService.vb (1)
54Return Me.Document.SemanticModel.Compilation.GetSpecialType(SpecialType.System_String)
Microsoft.CodeAnalysis.VisualBasic.Scripting (1)
Hosting\ObjectFormatter\VisualBasicTypeNameFormatter.vb (1)
40Case SpecialType.System_String
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (30)
Compilation\CompilationAPITests.vb (10)
1479Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 1495Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 1677Dim memberTypes = ImmutableArray.Create(Of ITypeSymbol)(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String)) 1715Dim memberTypes = ImmutableArray.Create(Of ITypeSymbol)(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String)) 1771Dim stringType = compilation.GetSpecialType(SpecialType.System_String) 1780Dim stringType = compilation.GetSpecialType(SpecialType.System_String) 1942Dim typeArguments = ImmutableArray.Create(Of ITypeSymbol)(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String)) 1960typeArguments = ImmutableArray.Create(Of ITypeSymbol)(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String)) 1974Dim typeArguments = ImmutableArray.Create(Of ITypeSymbol)(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String)) 1992typeArguments = ImmutableArray.Create(Of ITypeSymbol)(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String))
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (1)
2766Assert.Equal(compilation.GetSpecialType(System_String), local.Type)
Semantics\BinaryOperators.vb (4)
982types(types.Length - 1) = compilation.GetSpecialType(SpecialType.System_String) 1203If(op = BinaryOperatorKind.Add AndAlso resultType = SpecialType.System_String, 1212If(op = BinaryOperatorKind.Add AndAlso resultType = SpecialType.System_String, 1220If op = BinaryOperatorKind.Add AndAlso resultType = SpecialType.System_String Then
Semantics\Conversions.vb (4)
245Dim stringType = c1.GetSpecialType(System_String) 1097Dim stringType = c1.GetSpecialType(System_String) 2056c1.GetSpecialType(System_String), 2196Private Const s_string = System_String
Semantics\ForeachTest.vb (1)
1260Assert.Equal(SpecialType.System_String, loopInfo0.ElementType.SpecialType)
Semantics\GetExtendedSemanticInfoTests.vb (2)
3984Assert.Equal(semanticInfo.Type.SpecialType, System_String) 6299Dim getEnumerator = DirectCast(DirectCast(compilation.GetSpecialType(System_String), TypeSymbol).GetMember("GetEnumerator"), MethodSymbol)
Semantics\InterpolatedStringTests.vb (7)
376Dim stringType = compilation.GetSpecialType(SpecialType.System_String) 427Dim stringType = compilation.GetSpecialType(SpecialType.System_String) 769Dim stringType = compilation.GetSpecialType(SpecialType.System_String) 820Dim stringType = compilation.GetSpecialType(SpecialType.System_String) 876Dim stringType = compilation.GetSpecialType(SpecialType.System_String) 933Dim stringType = compilation.GetSpecialType(SpecialType.System_String) 991Dim stringType = compilation.GetSpecialType(SpecialType.System_String)
Semantics\OverloadResolution.vb (1)
212Dim stringVal As BoundExpression = New BoundRValuePlaceholder(_syntaxNode, c1.GetSpecialType(System_String))
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (22)
DocumentationComments\DocCommentTests.vb (2)
4926TestSymbolAndTypeInfoForType(model, names(0), compilation.GetSpecialType(SpecialType.System_String)) 4927TestSymbolAndTypeInfoForType(model, names(1), compilation.GetSpecialType(SpecialType.System_String))
SymbolsTests\Source\ImplementsTests.vb (6)
1736Dim ifooTypeSayWithString = (From m In ifooMethods Where m.Parameters(0).Type.SpecialType = SpecialType.System_String).First() 2220Dim ifooTypeStyleWithString = (From m In ifooProps Where m.Parameters(0).Type.SpecialType = SpecialType.System_String).First() 2312Dim ifooTypeSayWithString = (From m In ifooMethods Where m.Parameters(0).Type.SpecialType = SpecialType.System_String).First() 2401Dim ifooTypeStyleWithString = (From m In ifooProps Where m.Parameters(0).Type.SpecialType = SpecialType.System_String).First() 2532Dim listOfString = listOfT.Construct(comp.GetSpecialType(SpecialType.System_String)) 2546Dim fooOfIntString = fooOfIntY.Construct(comp.GetSpecialType(SpecialType.System_String))
SymbolsTests\Source\MethodTests.vb (7)
756Dim constructedM1 = m1.Construct((New TypeSymbol() {compilation.GetSpecialType(SpecialType.System_String), compilation.GetSpecialType(SpecialType.System_Boolean)}).AsImmutableOrNull()) 767Assert.Throws(Of InvalidOperationException)(Sub() constructedM1.Construct((New TypeSymbol() {compilation.GetSpecialType(SpecialType.System_String), compilation.GetSpecialType(SpecialType.System_Boolean)}).AsImmutableOrNull())) 771Dim constructedM1WrongArity = m1.Construct((New TypeSymbol() {compilation.GetSpecialType(SpecialType.System_String)}).AsImmutableOrNull()) 783constructedM1 = m1.Construct((New TypeSymbol() {compilation.GetSpecialType(SpecialType.System_String), compilation.GetSpecialType(SpecialType.System_Boolean)}).AsImmutableOrNull()) 785Assert.Throws(Of InvalidOperationException)(Sub() constructedM1.Construct((New TypeSymbol() {compilation.GetSpecialType(SpecialType.System_String), compilation.GetSpecialType(SpecialType.System_Boolean)}).AsImmutableOrNull())) 787Dim constructedM1_3 = m1.Construct((New TypeSymbol() {compilation.GetSpecialType(SpecialType.System_String), compilation.GetSpecialType(SpecialType.System_Boolean)}).AsImmutableOrNull()) 802Dim constructedM3 = m3.Construct(compilation.GetSpecialType(SpecialType.System_String))
SymbolsTests\Source\OverridesTests.vb (2)
2497Dim x1StringArgGetter = (From meth In x1Getters Let params = meth.Parameters Where params.Length = 1 AndAlso params(0).Type.SpecialType = SpecialType.System_String Select meth).First() 2517Dim x1StringArgSetter = (From meth In x1Setters Let params = meth.Parameters Where params.Length = 2 AndAlso params(0).Type.SpecialType = SpecialType.System_String Select meth).First()
SymbolsTests\Source\PropertyTests.vb (2)
854Assert.Equal(SpecialType.System_String, P2s.ElementAt(1).Type.SpecialType) 4343Assert.Equal(SpecialType.System_String, propertiesDictionary!StringType.Type.SpecialType)
SymbolsTests\Source\TypeBindingTests.vb (1)
60Assert.Same(sourceMod.GetCorLibType(SpecialType.System_String), arrayTypeB3.ElementType)
SymbolsTests\WellKnownTypeValidationTests.vb (2)
37Dim special = comp.GetSpecialType(SpecialType.System_String) 39Assert.Equal(SpecialType.System_String, special.SpecialType)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Syntax\ConstantExpressionEvaluatorTests.vb (1)
26Assert.Equal(ConstantValueTypeDiscriminator.String, SpecialType.System_String.ToConstantValueDiscriminator())
Microsoft.CodeAnalysis.VisualBasic.Workspaces (8)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
415Case SpecialType.System_String
Simplification\Simplifiers\AbstractVisualBasicSimplifier.vb (1)
47Case SpecialType.System_String
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (1)
116If Not IsSpecialType(type, SpecialType.System_String) Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ITypeSymbolExtensions.vb (3)
45Case SpecialType.System_String 85specialType = specialType.System_String 118SpecialType.System_String
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\StringExtensions.vb (1)
111SpecialType.System_String,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (1)
124Case SpecialType.System_String
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (2)
CodeGeneration\SyntaxGeneratorTests.vb (2)
282VerifySyntax(Of TypeSyntax)(Generator.TypeExpression(SpecialType.System_String), "String") 939_emptyCompilation.GetSpecialType(SpecialType.System_String)
Microsoft.CodeAnalysis.Workspaces (9)
FindSymbols\FindReferences\DependentProjectsFinder.cs (1)
291typeNameConstant.Type.SpecialType != SpecialType.System_String ||
src\Compilers\Core\Portable\SpecialTypeExtensions.cs (1)
288return SpecialType.System_String;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
390case SpecialType.System_String:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\PredefinedTypeExtensions.cs (1)
29PredefinedType.String => SpecialType.System_String,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
187if (type.SpecialType == SpecialType.System_String)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs (1)
29SpecialType.System_String => PredefinedType.String,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (1)
1031SpecialType.System_String;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
429case SpecialType.System_String:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
450containingType?.SpecialType == SpecialType.System_String)
Microsoft.CodeAnalysis.Workspaces.UnitTests (6)
Editing\SyntaxEditorTests.cs (4)
52editor.ReplaceNode(fieldX, editor.Generator.FieldDeclaration("Y", editor.Generator.TypeExpression(SpecialType.System_String), Accessibility.Public)); 103editor.InsertAfter(fieldX, editor.Generator.FieldDeclaration("Y", editor.Generator.TypeExpression(SpecialType.System_String), Accessibility.Public)); 130editor.InsertBefore(fieldX, editor.Generator.FieldDeclaration("Y", editor.Generator.TypeExpression(SpecialType.System_String), Accessibility.Public)); 178editor.InsertAfter(fieldX, editor.Generator.FieldDeclaration("Y", editor.Generator.TypeExpression(SpecialType.System_String), Accessibility.Public));
SymbolKeyTests.cs (2)
761var constructed = outer.Construct(compilation.GetSpecialType(SpecialType.System_String)); 791var a_string = a.Construct(compilation.GetSpecialType(SpecialType.System_String));
Microsoft.DotNet.CodeAnalysis (1)
Analyzers\AppContextDefaultsAnalyzer.cs (1)
147if (methodSym.Parameters[0].Type.SpecialType != SpecialType.System_String)
Microsoft.Extensions.Logging.Generators (2)
LoggerMessageGenerator.Parser.cs (2)
68INamedTypeSymbol stringSymbol = _compilation.GetSpecialType(SpecialType.System_String); 154if (items[0].Type.SpecialType == SpecialType.System_String)
Microsoft.Extensions.Options.SourceGeneration (7)
OptionsSourceGenContext.cs (1)
63SpecialType.System_String => true,
Parser.cs (6)
204&& m.Parameters[0].Type.SpecialType == SpecialType.System_String 563if (enumerationValidatorTypeName == null && speculate && memberType.SpecialType != SpecialType.System_String) 600if (memberType.SpecialType == SpecialType.System_String || ConvertTo(memberType, _symbolHolder.ICollectionSymbol)) 622if (constructorParameters.Length == 1 && constructorParameters[0].Name == "otherProperty" && constructorParameters[0].Type.SpecialType == SpecialType.System_String) 669(SymbolEqualityComparer.Default.Equals(typeSymbol, _symbolHolder.TimeSpanSymbol) || typeSymbol.SpecialType == SpecialType.System_String)) 822if (type.SpecialType == SpecialType.System_String)
Microsoft.Gen.Logging (2)
Parsing\TypeSymbolExtensions.cs (2)
14&& sym.SpecialType != SpecialType.System_String; 51&& ts.Parameters[0].Type.SpecialType == SpecialType.System_String
Microsoft.Gen.Metrics (1)
Parser.cs (1)
758if (specialType == SpecialType.System_String)
Microsoft.Gen.MetricsReports (1)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (1)
758if (specialType == SpecialType.System_String)
Microsoft.Interop.ComInterfaceGenerator (1)
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (1)
215public bool CanProvideMarshallingInfoForType(ITypeSymbol type) => type.SpecialType == SpecialType.System_String;
Microsoft.Interop.JavaScript.JSImportGenerator (1)
JSManagedTypeInfo.cs (1)
90case { SpecialType: SpecialType.System_String }:
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.LibraryImportGenerator.Downlevel (1)
DownlevelStringMarshallingInfoProvider.cs (1)
26public bool CanProvideMarshallingInfoForType(ITypeSymbol type) => type.SpecialType == SpecialType.System_String;
Microsoft.Interop.SourceGeneration (4)
ManagedTypeInfo.cs (1)
89public static readonly SpecialTypeInfo String = new("string", "string", SpecialType.System_String);
MarshalAsWithCustomMarshallersParser.cs (2)
62if (elementType.SpecialType == SpecialType.System_String) 83if (type.SpecialType == SpecialType.System_String)
StringMarshallingInfoProvider.cs (1)
28public bool CanProvideMarshallingInfoForType(ITypeSymbol type) => type.SpecialType == SpecialType.System_String;
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\AbstractEntryPointFinder.cs (1)
37symbol.Parameters is [{ Type: IArrayTypeSymbol { ElementType.SpecialType: SpecialType.System_String } }] or [])
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService.cs (1)
715case SpecialType.System_String:
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
CodeModel\VisualBasicCodeModelService.vb (1)
801Case SpecialType.System_String
Mvc.Analyzers.Test (2)
CodeAnalysisExtensionsTest.cs (2)
323Assert.Equal(attributeData.ConstructorArguments[0].Value, compilation.GetSpecialType(SpecialType.System_String)); 371Assert.Equal(attributeData.ConstructorArguments[0].Value, compilation.GetSpecialType(SpecialType.System_String));
Mvc.Api.Analyzers.Test (1)
SymbolApiConventionMatcherTest.cs (1)
338var type = compilation.GetSpecialType(SpecialType.System_String);
System.Text.Json.SourceGeneration (4)
Helpers\KnownTypeSymbols.cs (1)
127public INamedTypeSymbol StringType => _StringType ??= Compilation.GetSpecialType(SpecialType.System_String);
JsonSourceGenerator.Parser.cs (2)
1670if (type.SpecialType is SpecialType.System_String or SpecialType.System_DateTime || 1801SpecialType.System_String or
Model\TypeGenerationSpec.cs (1)
137return CollectionKeyType!.SpecialType is SpecialType.System_String &&