912 references to System_String
Aspire.Hosting.Analyzers (1)
Aspire.Hosting.Integration.Analyzers (1)
ConfigurationSchemaGenerator (8)
GenerateDocumentationAndConfigFiles (10)
ILLink.RoslynAnalyzer (6)
Metrics (9)
Metrics.Legacy (9)
Microsoft.Analyzers.Extra (1)
Microsoft.AspNetCore.App.Analyzers (5)
Microsoft.AspNetCore.Components.Analyzers (1)
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (14)
Microsoft.AspNetCore.Mvc.Analyzers (1)
Microsoft.CodeAnalysis (171)
SpecialMembers.cs (61)
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
214(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type
219(byte)SpecialType.System_String, // DeclaringTypeId
225(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
950(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
1114(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Field Signature
1120(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Field Signature
1126(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Field Signature
1132(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Field Signature
1138(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Field Signature
1144(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Field Signature
1150(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Field Signature
WellKnownMembers.cs (92)
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
4020(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
4028(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
4057(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
4369(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
4643(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
5227(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type
Microsoft.CodeAnalysis.Analyzers (20)
Microsoft.CodeAnalysis.AnalyzerUtilities (22)
Microsoft.CodeAnalysis.BannedApiAnalyzers (13)
Microsoft.CodeAnalysis.CodeStyle (12)
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
Microsoft.CodeAnalysis.CSharp (122)
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)
1701defaultValue = new BoundLiteral(syntax, ConstantValue.Create(path), Compilation.GetSpecialType(SpecialType.System_String)) { WasCompilerGenerated = true };
1706defaultValue = new BoundLiteral(syntax, ConstantValue.Create(memberName), Compilation.GetSpecialType(SpecialType.System_String)) { WasCompilerGenerated = true };
1711&& Conversions.ClassifyBuiltInConversion(Compilation.GetSpecialType(SpecialType.System_String), parameterType, isChecked: false, ref discardedUseSiteInfo).Exists
1714defaultValue = new BoundLiteral(syntax, ConstantValue.Create(argument.Syntax.ToString()), Compilation.GetSpecialType(SpecialType.System_String)) { WasCompilerGenerated = true };
2434return new BoundNameOfOperator(node, boundArgument, ConstantValue.Create(name), Compilation.GetSpecialType(SpecialType.System_String));
Symbols\Source\SourceNamedTypeSymbol.cs (7)
948string? name = attributeData.GetConstructorArgument<string>(0, SpecialType.System_String);
1042string? methodName = attributeData.GetConstructorArgument<string>(1, SpecialType.System_String);
1218string? methodName = attribute.CommonConstructorArguments[1].DecodeValue<string>(SpecialType.System_String);
1427string name = attribute.GetConstructorArgument<string>(0, SpecialType.System_String);
1775new TypedConstant(compilation.GetSpecialType(SpecialType.System_String), TypedConstantKind.Primitive, PEModule.ByRefLikeMarker), // message
1781ImmutableArray.Create(new TypedConstant(compilation.GetSpecialType(SpecialType.System_String), TypedConstantKind.Primitive, nameof(CompilerFeatureRequiredFeatures.RefStructs))),
1794var defaultMemberNameConstant = new TypedConstant(compilation.GetSpecialType(SpecialType.System_String), TypedConstantKind.Primitive, defaultMemberName);
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (49)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (17)
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Features (5)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Scripting (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (37)
Semantics\SimpleLambdaParametersWithModifiersTests.cs (6)
68Assert.True(symbol.Parameters is [{ Type.SpecialType: SpecialType.System_String, RefKind: RefKind.None }, { Type.SpecialType: SpecialType.System_Int32, RefKind: RefKind.Ref }]);
101{ Type.SpecialType: SpecialType.System_String, RefKind: RefKind.None },
387{ Type.SpecialType: SpecialType.System_String, RefKind: RefKind.None },
641Assert.True(symbol.Parameters is [{ Name: "x", Type.SpecialType: SpecialType.System_String, RefKind: RefKind.Ref, IsOptional: false }]);
824Assert.True(symbol.Parameters is [{ Name: "x", Type.SpecialType: SpecialType.System_String, Type.NullableAnnotation: CodeAnalysis.NullableAnnotation.Annotated, RefKind: RefKind.Ref, IsOptional: false }]);
858Assert.True(symbol.Parameters is [{ Name: "x", Type.SpecialType: SpecialType.System_String, Type.NullableAnnotation: CodeAnalysis.NullableAnnotation.NotAnnotated, RefKind: RefKind.Ref, IsOptional: false }]);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (78)
Compilation\SemanticModelAPITests.cs (12)
708Assert.Equal(compilation.GetSpecialType(SpecialType.System_String), (info.Symbol as IArrayTypeSymbol).ElementType);
3776var stringType = comp.GetSpecialType(SpecialType.System_String);
4221Assert.Equal(SpecialType.System_String, model.GetTypeInfo(actual[0]).Type.SpecialType);
4311Assert.Equal(SpecialType.System_String, model.GetTypeInfo(actual[0]).Type.SpecialType);
4315Assert.Equal(SpecialType.System_String, model.GetTypeInfo(actual[1]).Type.SpecialType);
4318Assert.Equal(SpecialType.System_String, model.GetTypeInfo(actual[2]).Type.SpecialType);
4322Assert.Equal(SpecialType.System_String, model.GetTypeInfo(actual[3]).Type.SpecialType);
4326Assert.Equal(SpecialType.System_String, model.GetTypeInfo(actual[4]).Type.SpecialType);
4330Assert.Equal(SpecialType.System_String, model.GetTypeInfo(actual[5]).Type.SpecialType);
4334Assert.Equal(SpecialType.System_String, model.GetTypeInfo(actual[6]).Type.SpecialType);
4338Assert.Equal(SpecialType.System_String, model.GetTypeInfo(actual[7]).Type.SpecialType);
4535Assert.Equal(SpecialType.System_String, type.TupleElements[0].Type.SpecialType);
Symbols\IndexerTests.cs (11)
58CheckIndexer(type.Indexers.Single(), true, true, SpecialType.System_String, SpecialType.System_String);
64CheckIndexer(type.Indexers.Single(), true, false, SpecialType.System_Object, SpecialType.System_String);
132CheckIndexer(type.Indexers.Single(), true, true, SpecialType.System_Object, SpecialType.System_String);
135CheckIndexer(type.Indexers.Single(), true, false, SpecialType.System_Object, SpecialType.System_String);
138CheckIndexer(type.Indexers.Single(), true, true, SpecialType.System_Object, SpecialType.System_String);
143CheckIndexer(typeAProperties[0], true, true, SpecialType.System_Object, SpecialType.System_String);
144CheckIndexer(typeAProperties[1], true, false, SpecialType.System_Object, SpecialType.System_String);
145CheckIndexer(typeAProperties[2], true, true, SpecialType.System_Object, SpecialType.System_String);
148CheckIndexer(sourceType.Indexers.Single(), true, true, SpecialType.System_Object, SpecialType.System_String);
159CheckIndexer(sourceType.Indexers.Single(), true, true, SpecialType.System_Object, SpecialType.System_String);
Symbols\Source\PropertyTests.cs (14)
1885Assert.True(getters.Any(getter => getter.Parameters[0].Type.SpecialType == SpecialType.System_String));
1889getter.Parameters[1].Type.SpecialType == SpecialType.System_String));
2625Assert.Equal(SpecialType.System_String, iap2.Type.SpecialType);
2627Assert.Equal(SpecialType.System_String, iam2.ReturnType.SpecialType);
2643Assert.Equal(SpecialType.System_String, iap2.Type.SpecialType);
2645Assert.Equal(SpecialType.System_String, iam2.ReturnType.SpecialType);
2661Assert.Equal(SpecialType.System_String, iap2.Type.SpecialType);
2663Assert.Equal(SpecialType.System_String, iam2.ReturnType.SpecialType);
2679Assert.Equal(SpecialType.System_String, iap2.Type.SpecialType);
2681Assert.Equal(SpecialType.System_String, iam2.ReturnType.SpecialType);
2718Assert.Equal(SpecialType.System_String, iap2.Type.SpecialType);
2720Assert.Equal(SpecialType.System_String, iam2.ReturnType.SpecialType);
2736Assert.Equal(SpecialType.System_String, iap2.Type.SpecialType);
2738Assert.Equal(SpecialType.System_String, iam2.ReturnType.SpecialType);
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (2)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (3)
Microsoft.CodeAnalysis.Extensions.Package (4)
Microsoft.CodeAnalysis.Features (23)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (11)
Microsoft.CodeAnalysis.PublicApiAnalyzers (10)
Microsoft.CodeAnalysis.ResxSourceGenerator (9)
Microsoft.CodeAnalysis.Scripting (2)
Microsoft.CodeAnalysis.Test.Utilities (1)
Microsoft.CodeAnalysis.UnitTests (4)
Microsoft.CodeAnalysis.VisualBasic (123)
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_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)
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
Microsoft.CodeAnalysis.Workspaces (9)
Microsoft.CodeAnalysis.Workspaces.UnitTests (6)
Editing\SyntaxEditorTests.cs (4)
54editor.ReplaceNode(fieldX, editor.Generator.FieldDeclaration("Y", editor.Generator.TypeExpression(SpecialType.System_String), Accessibility.Public));
109editor.InsertAfter(fieldX, editor.Generator.FieldDeclaration("Y", editor.Generator.TypeExpression(SpecialType.System_String), Accessibility.Public));
138editor.InsertBefore(fieldX, editor.Generator.FieldDeclaration("Y", editor.Generator.TypeExpression(SpecialType.System_String), Accessibility.Public));
189editor.InsertAfter(fieldX, editor.Generator.FieldDeclaration("Y", editor.Generator.TypeExpression(SpecialType.System_String), Accessibility.Public));
Microsoft.DotNet.CodeAnalysis (1)
Microsoft.Extensions.Logging.Generators (2)
Microsoft.Extensions.Options.SourceGeneration (7)
Microsoft.Extensions.Validation.ValidationsGenerator (4)
Microsoft.Gen.Logging (2)
Microsoft.Gen.MetadataExtractor (1)
Microsoft.Gen.Metrics (1)
Microsoft.Gen.MetricsReports (1)
Microsoft.Interop.ComInterfaceGenerator (1)
Microsoft.Interop.JavaScript.JSImportGenerator (1)
Microsoft.Interop.LibraryImportGenerator (2)
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
Microsoft.Interop.SourceGeneration (4)
Microsoft.VisualStudio.LanguageServices (1)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Microsoft.VisualStudio.LanguageServices.Implementation (1)
Mvc.Analyzers.Test (2)
Mvc.Api.Analyzers.Test (1)
Roslyn.Diagnostics.Analyzers (11)
Roslyn.Diagnostics.CSharp.Analyzers (3)
System.Text.Json.SourceGeneration (4)
Test.Utilities (8)
Text.Analyzers (11)