78 references to Type
Microsoft.AspNetCore.Mvc.Analyzers (1)
TopLevelParameterNameAnalyzer.cs (1)
187namedArgumentValue.Kind == TypedConstantKind.Type)
Microsoft.AspNetCore.Mvc.Api.Analyzers (3)
SymbolApiResponseMetadataProvider.cs (3)
55errorTypeAttribute.ConstructorArguments[0].Kind == TypedConstantKind.Type && 98if (attribute.ConstructorArguments[0].Kind != TypedConstantKind.Type || 174attribute.ConstructorArguments[0].Kind != TypedConstantKind.Type ||
Microsoft.CodeAnalysis (3)
MetadataReader\MetadataDecoder.cs (1)
1540return CreateTypedConstant(type, TypedConstantKind.Type, serializedType);
Symbols\Attributes\UnmanagedCallersOnlyAttributeData.cs (1)
38&& (value.Values.IsDefaultOrEmpty || value.Values.All(v => v.Kind == TypedConstantKind.Type));
Symbols\TypedConstant.cs (1)
193return TypedConstantKind.Type;
Microsoft.CodeAnalysis.CSharp (12)
Binder\Binder_Attributes.cs (1)
968return CreateTypedConstant(node, TypedConstantKind.Type, diagnostics, ref attrHasErrors, curArgumentHasErrors, simpleValue: node.SourceType.Type);
Emitter\Model\AttributeDataAdapter.cs (1)
111case TypedConstantKind.Type:
Emitter\NoPia\EmbeddedTypesManager.cs (1)
148ImmutableArray.Create(new TypedConstant(ctor.Parameters[0].Type, TypedConstantKind.Type, ctor.ContainingAssembly.GetSpecialType(SpecialType.System_Object))),
Symbols\MethodSymbol.cs (1)
1012Debug.Assert(callConvTypedConstant.Kind == TypedConstantKind.Type);
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
1244if ((oldConstant.Kind == TypedConstantKind.Type) && (oldConstantValue != null))
Symbols\Source\SourceFixedFieldSymbol.cs (1)
47var item1 = new TypedConstant(systemType, TypedConstantKind.Type, ((PointerTypeSymbol)this.Type).PointedAtType);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
1432&& attr.CommonConstructorArguments[0].Kind == TypedConstantKind.Type)
Symbols\Source\SourceMemberMethodSymbol.cs (1)
1045TypedConstantKind.Type, stateMachineType.GetUnboundGenericTypeOrSelf());
Symbols\Source\SourceNamedTypeSymbol.cs (3)
1030Debug.Assert(attributeData.CommonConstructorArguments[0].Kind == TypedConstantKind.Type); 1336Debug.Assert(argument.Kind == TypedConstantKind.Type); 1748ImmutableArray.Create(new TypedConstant(compilation.GetWellKnownType(WellKnownType.System_Type), TypedConstantKind.Type, originalType)),
Symbols\TypedConstantExtensions.cs (1)
30if (constant.Kind == TypedConstantKind.Type || constant.TypeInternal!.SpecialType == SpecialType.System_Object)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
34case TypedConstantKind.Type:
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (14)
Attributes\AttributeTests.cs (12)
1710attrs.First().VerifyValue<object>(0, TypedConstantKind.Type, typeof(object)); 3137attrs[1].VerifyValue<object>(0, TypedConstantKind.Type, typeof(Dictionary<string, int>)); 3186attrs[0].VerifyValue<object>(0, TypedConstantKind.Type, typeof(string[,,])); 3639attrs.First().VerifyValue(0, TypedConstantKind.Type, typeof(Object)); 4576attrs.First().VerifyValue(0, TypedConstantKind.Type, cClass.AsUnboundGenericType()); 4616attrs.First().VerifyValue(0, TypedConstantKind.Type, bClass.AsUnboundGenericType()); 5493attrs.First().VerifyValue<object>(0, TypedConstantKind.Type, typeArg); 5498attrs.First().VerifyValue<object>(0, TypedConstantKind.Type, typeArg); 5504attrs.First().VerifyValue<object>(0, TypedConstantKind.Type, typeArg); 5511attrs.First().VerifyValue<object>(0, TypedConstantKind.Type, typeArg); 5520attrs.First().VerifyValue<object>(0, TypedConstantKind.Type, typeArg); 5527attrs.First().VerifyValue<object>(0, TypedConstantKind.Type, typeArg);
Attributes\AttributeTests_WellKnownAttributes.cs (2)
171attrSym.VerifyValue(0, TypedConstantKind.Type, typeof(object)); 283attrSym.VerifyValue(0, TypedConstantKind.Type, typeof(object));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (14)
Symbols\Metadata\PE\LoadingAttributes.cs (10)
91aTypeInst.VerifyValue(0, TypedConstantKind.Type, typeof(string)); 163aTypeInst.VerifyValue(0, TypedConstantKind.Type, typeof(string)); 296a.VerifyNamedArgumentValue(0, "T", TypedConstantKind.Type, c3); 432l.GetAttributes().First().VerifyValue(0, TypedConstantKind.Type, "System.Collections.Generic.List<>"); 435l.GetAttributes().First().VerifyValue(0, TypedConstantKind.Type, "System.Collections.Generic.List<C1>"); 438l.GetAttributes().First().VerifyValue(0, TypedConstantKind.Type, "System.Collections.Generic.List<System.String>"); 441l.GetAttributes().First().VerifyValue(0, TypedConstantKind.Type, "System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<C1, System.String>>"); 444l.GetAttributes().First().VerifyValue(0, TypedConstantKind.Type, "System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<System.String, C1.InnerC1<System.Int32>.InnerC2<System.String, System.String>>>"); 854attrSym.VerifyValue(0, TypedConstantKind.Type, cbar); 931attrSym.VerifyNamedArgumentValue(0, "TypeField", TypedConstantKind.Type, typeof(Dictionary<string, int>));
Symbols\Retargeting\RetargetCustomAttributes.cs (2)
152attribute.VerifyValue(0, TypedConstantKind.Type, newMsCorLib_systemType); 155attribute.VerifyNamedArgumentValue<object>(0, "Target", TypedConstantKind.Type, typeof(int[]));
Symbols\TypedConstantTests.cs (2)
44TypedConstant common = new TypedConstant(_systemType, TypedConstantKind.Type, _namedType); 57new[] { new TypedConstant(_systemType, TypedConstantKind.Type, _namedType) }.AsImmutableOrNull());
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Extensions.cs (1)
430case TypedConstantKind.Type:
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (1)
Metadata\WinMdDumpTest.cs (1)
309case TypedConstantKind.Type:
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
34case TypedConstantKind.Type:
Microsoft.CodeAnalysis.VisualBasic (7)
Emit\AttributeDataAdapter.vb (1)
73Case TypedConstantKind.Type
Emit\NoPia\EmbeddedTypesManager.vb (1)
109ImmutableArray.Create(New TypedConstant(ctor.Parameters(0).Type, TypedConstantKind.Type, ctor.ContainingAssembly.GetSpecialType(SpecialType.System_Object))),
Symbols\Retargeting\RetargetingSymbolTranslator.vb (1)
741If (oldConstant.Kind = TypedConstantKind.Type) AndAlso (oldConstantValue IsNot Nothing) Then
Symbols\Source\SourceNamedTypeSymbol.vb (2)
2220Debug.Assert(argument.Kind = TypedConstantKind.Type) 2559ImmutableArray.Create(New TypedConstant(compilation.GetWellKnownType(WellKnownType.System_Type), TypedConstantKind.Type, originalType)),
Symbols\TypedConstant.vb (1)
37If constant.Kind = TypedConstantKind.Type OrElse constant.TypeInternal.SpecialType = SpecialType.System_Object Then
Symbols\WellKnownMembers.vb (1)
221TypedConstantKind.Type,
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (1)
30Case TypedConstantKind.Type
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (11)
Attributes\AttributeTests.vb (11)
652attrs(0).VerifyValue(Of Object)(0, TypedConstantKind.Type, GetType(Object)) 771attrs(0).VerifyValue(0, "TypeField", TypedConstantKind.Type, GetType(FileStream)) 809attrs(1).VerifyValue(Of Object)(0, TypedConstantKind.Type, GetType(Dictionary(Of String, Integer))) 866attrs(1).VerifyValue(Of Object)(0, TypedConstantKind.Type, GetType(String(,,))) 1262attrs(0).VerifyValue(0, TypedConstantKind.Type, bClass.ConstructUnboundGenericType()) 2178attrs.First().VerifyValue(Of Object)(0, TypedConstantKind.Type, typeArg) 2183attrs.First().VerifyValue(Of Object)(0, TypedConstantKind.Type, typeArg) 2189attrs.First().VerifyValue(Of Object)(0, TypedConstantKind.Type, typeArg) 2196attrs.First().VerifyValue(Of Object)(0, TypedConstantKind.Type, typeArg) 2205attrs.First().VerifyValue(Of Object)(0, TypedConstantKind.Type, typeArg) 2212attrs.First().VerifyValue(Of Object)(0, TypedConstantKind.Type, typeArg)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (4)
SymbolsTests\Retargeting\RetargetingCustomAttributes.vb (2)
144attribute.VerifyValue(0, TypedConstantKind.Type, NewMsCorLib_systemType) 147attribute.VerifyValue(0, "Target", TypedConstantKind.Type, GetType(Integer()))
SymbolsTests\TypedConstantTests.vb (2)
35Dim common As TypedConstant = New TypedConstant(_systemType, TypedConstantKind.Type, _namedType) 48{New TypedConstant(_systemType, TypedConstantKind.Type, _namedType)}.AsImmutableOrNull())
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
Extensions.vb (1)
185Case TypedConstantKind.Type
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (1)
30Case TypedConstantKind.Type
Microsoft.Gen.Metrics (1)
Parser.cs (1)
423&& methodAttribute.ConstructorArguments[0].Kind == TypedConstantKind.Type)
Microsoft.Gen.MetricsReports (1)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (1)
423&& methodAttribute.ConstructorArguments[0].Kind == TypedConstantKind.Type)