48 references to Type
ILLink.RoslynAnalyzer (5)
COMAnalyzer.cs (2)
68typedConstant.Type != null && typedConstant.Type.IsUnmanagedType)
RequiresAssemblyFilesAnalyzer.cs (1)
136attribute.ConstructorArguments.Length >= 1 && attribute.ConstructorArguments is [{ Type.SpecialType: SpecialType.System_String }, ..];
RequiresDynamicCodeAnalyzer.cs (1)
190attribute.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 }, ..];
Microsoft.Analyzers.Extra (1)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (1)
249if (SymbolEqualityComparer.Default.Equals(ctorArg.Type, param.Type))
Microsoft.AspNetCore.Mvc.Analyzers (1)
TopLevelParameterNameAnalyzer.cs (1)
165namedArgumentValue.Type.SpecialType == SpecialType.System_String &&
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
SymbolApiResponseMetadataProvider.cs (1)
195(namedArgumentValue.Type.SpecialType & SpecialType.System_Int32) == SpecialType.System_Int32 &&
Microsoft.CodeAnalysis.Analyzers (3)
MetaAnalyzers\CompilerExtensionStrictApiAnalyzer.cs (1)
203if (argument is { Kind: TypedConstantKind.Primitive, Type.SpecialType: SpecialType.System_String })
MetaAnalyzers\DiagnosticAnalyzerAttributeAnalyzer.cs (2)
150argument.Type != null && 151argument.Type.SpecialType == SpecialType.System_String)
Microsoft.CodeAnalysis.CodeStyle (2)
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (2)
902if (attribute.ConstructorArguments is [{ Kind: TypedConstantKind.Primitive, Type.SpecialType: SpecialType.System_String, Value: string value }]) 913Value: { Kind: TypedConstantKind.Primitive, Type.SpecialType: SpecialType.System_String, Value: string namedValue },
Microsoft.CodeAnalysis.CSharp (5)
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1011{ Type.SpecialType: SpecialType.System_String },
Symbols\TypedConstantExtensions.cs (4)
54SpecialType splType = ((INamedTypeSymbol)constant.Type!).EnumUnderlyingType!.SpecialType; 58string typeName = constant.Type.ToDisplayString(SymbolDisplayFormat.QualifiedNameOnlyFormat); 84var members = constant.Type!.GetMembers(); 163var members = constant.Type!.GetMembers();
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
31return GenerateExpression(typedConstant.Type, typedConstant.Value, canUseFieldReference: true);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
31return GenerateExpression(typedConstant.Type, typedConstant.Value, canUseFieldReference: true);
Microsoft.CodeAnalysis.Features (5)
DesignerAttribute\DesignerAttributeDiscoveryService.cs (1)
321if (attribute is { ConstructorArguments: [{ Type.SpecialType: SpecialType.System_String, Value: string stringValue }] })
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (2)
6972SymbolEquivalenceComparer.Instance.Equals(x.Type, y.Type) &&
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (2)
902if (attribute.ConstructorArguments is [{ Kind: TypedConstantKind.Primitive, Type.SpecialType: SpecialType.System_String, Value: string value }]) 913Value: { Kind: TypedConstantKind.Primitive, Type.SpecialType: SpecialType.System_String, Value: string namedValue },
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\TagHelpers\Producers\ComponentTagHelperProducer.cs (1)
481withAttributes.Append(arg.Type!.GetGloballyQualifiedFullName());
Microsoft.CodeAnalysis.VisualBasic (3)
Symbols\TypedConstant.vb (3)
57Dim typeName As String = constant.Type.ToDisplayString(SymbolDisplayFormat.QualifiedNameOnlyFormat) 78Dim members = constant.Type.GetMembers() 142Dim members = constant.Type.GetMembers()
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (1)
21Return GenerateExpression(generator, typedConstant.Type, typedConstant.Value, canUseFieldReference:=True)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (1)
21Return GenerateExpression(generator, typedConstant.Type, typedConstant.Value, canUseFieldReference:=True)
Microsoft.CodeAnalysis.Workspaces (2)
FindSymbols\FindReferences\DependentProjectsFinder.cs (2)
300if (typeNameConstant.Type == null || 301typeNameConstant.Type.SpecialType != SpecialType.System_String ||
Microsoft.DotNet.ApiCompatibility (2)
Comparing\TypedConstantEqualityComparer.cs (2)
39return symbolEqualityComparer.Equals(x.Type!, y.Type!);
Microsoft.Extensions.Logging.Generators (1)
LoggerMessageGenerator.Parser.cs (1)
152if (items[0].Type.SpecialType == SpecialType.System_String)
Microsoft.Extensions.Options.SourceGeneration (3)
Parser.cs (3)
516validationAttr.ConstructorArguments.Add(GetArgumentExpression(argument.Type!, argument.Value)); 529validationAttr.Properties.Add(namedArgument.Key, GetArgumentExpression(namedArgument.Value.Type!, namedArgument.Value.Value)); 788sb.Append(GetArgumentExpression(value[i].Type!, value[i].Value));
Microsoft.Gen.Logging (2)
Parsing\AttributeProcessors.cs (2)
42if (SymbolEqualityComparer.Default.Equals(a.Type, symbols.LogLevelSymbol)) 50else if (a.Type?.SpecialType == SpecialType.System_Int32)
Microsoft.Interop.ComInterfaceGenerator (1)
Analyzers\GeneratedComInterfaceAttributeAnalyzer.cs (1)
60switch (ctorArg0.Type.ToDisplayString())
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
31return GenerateExpression(typedConstant.Type, typedConstant.Value, canUseFieldReference: true);
Roslyn.Diagnostics.VisualBasic.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (1)
21Return GenerateExpression(generator, typedConstant.Type, typedConstant.Value, canUseFieldReference:=True)
System.Text.Json.SourceGeneration (3)
JsonSourceGenerator.Parser.cs (3)
363Debug.Assert(attributeData.ConstructorArguments.Length == 1 & attributeData.ConstructorArguments[0].Type?.Name is nameof(JsonSerializerDefaults)); 909namedArgs[0].Value.Type?.ToDisplayString() == JsonIgnoreConditionFullName) 2052namedArgs[0].Value.Type?.ToDisplayString() == JsonIgnoreConditionFullName)
System.Text.RegularExpressions.Generator (1)
RegexGenerator.Parser.cs (1)
96if (items[2].Type?.SpecialType == SpecialType.System_Int32)