70 references to Type
Microsoft.CodeAnalysis (3)
MetadataReader\MetadataDecoder.cs (1)
1601return 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)
191return TypedConstantKind.Type;
Microsoft.CodeAnalysis.CSharp (11)
Binder\Binder_Attributes.cs (1)
1033return 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)
1002Debug.Assert(callConvTypedConstant.Kind == TypedConstantKind.Type);
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
1281if ((oldConstant.Kind == TypedConstantKind.Type) && (oldConstantValue != null))
Symbols\Source\SourceFixedFieldSymbol.cs (1)
47var item1 = new TypedConstant(systemType, TypedConstantKind.Type, ((PointerTypeSymbol)this.Type).PointedAtType);
Symbols\Source\SourceMemberMethodSymbol.cs (1)
934TypedConstantKind.Type, stateMachineType.GetUnboundGenericTypeOrSelf());
Symbols\Source\SourceNamedTypeSymbol.cs (2)
1258Debug.Assert(argument.Kind == TypedConstantKind.Type); 1635ImmutableArray.Create(new TypedConstant(compilation.GetWellKnownType(WellKnownType.System_Type), TypedConstantKind.Type, originalType)),
Symbols\SymbolExtensions.cs (1)
832&& attr.CommonConstructorArguments[0].Kind == TypedConstantKind.Type)
Symbols\TypedConstantExtensions.cs (1)
30if (constant.Kind == TypedConstantKind.Type || constant.TypeInternal!.SpecialType == SpecialType.System_Object)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
ExpressionGenerator.cs (1)
33case TypedConstantKind.Type:
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (14)
Attributes\AttributeTests.cs (12)
1672attrs.First().VerifyValue<object>(0, TypedConstantKind.Type, typeof(object)); 3099attrs[1].VerifyValue<object>(0, TypedConstantKind.Type, typeof(Dictionary<string, int>)); 3148attrs[0].VerifyValue<object>(0, TypedConstantKind.Type, typeof(string[,,])); 3597attrs.First().VerifyValue(0, TypedConstantKind.Type, typeof(Object)); 4534attrs.First().VerifyValue(0, TypedConstantKind.Type, cClass.AsUnboundGenericType()); 4574attrs.First().VerifyValue(0, TypedConstantKind.Type, bClass.AsUnboundGenericType()); 5197attrs.First().VerifyValue<object>(0, TypedConstantKind.Type, typeArg); 5202attrs.First().VerifyValue<object>(0, TypedConstantKind.Type, typeArg); 5208attrs.First().VerifyValue<object>(0, TypedConstantKind.Type, typeArg); 5215attrs.First().VerifyValue<object>(0, TypedConstantKind.Type, typeArg); 5224attrs.First().VerifyValue<object>(0, TypedConstantKind.Type, typeArg); 5231attrs.First().VerifyValue<object>(0, TypedConstantKind.Type, typeArg);
Attributes\AttributeTests_WellKnownAttributes.cs (2)
170attrSym.VerifyValue(0, TypedConstantKind.Type, typeof(object)); 282attrSym.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)
151attribute.VerifyValue(0, TypedConstantKind.Type, newMsCorLib_systemType); 154attribute.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)
390case TypedConstantKind.Type:
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (1)
Metadata\WinMdDumpTest.cs (1)
309case TypedConstantKind.Type:
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
ExpressionGenerator.cs (1)
33case 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)
748If (oldConstant.Kind = TypedConstantKind.Type) AndAlso (oldConstantValue IsNot Nothing) Then
Symbols\Source\SourceNamedTypeSymbol.vb (2)
2210Debug.Assert(argument.Kind = TypedConstantKind.Type) 2549ImmutableArray.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.Emit.UnitTests (11)
Attributes\AttributeTests.vb (11)
651attrs(0).VerifyValue(Of Object)(0, TypedConstantKind.Type, GetType(Object)) 770attrs(0).VerifyValue(0, "TypeField", TypedConstantKind.Type, GetType(FileStream)) 808attrs(1).VerifyValue(Of Object)(0, TypedConstantKind.Type, GetType(Dictionary(Of String, Integer))) 865attrs(1).VerifyValue(Of Object)(0, TypedConstantKind.Type, GetType(String(,,))) 1261attrs(0).VerifyValue(0, TypedConstantKind.Type, bClass.ConstructUnboundGenericType()) 2177attrs.First().VerifyValue(Of Object)(0, TypedConstantKind.Type, typeArg) 2182attrs.First().VerifyValue(Of Object)(0, TypedConstantKind.Type, typeArg) 2188attrs.First().VerifyValue(Of Object)(0, TypedConstantKind.Type, typeArg) 2195attrs.First().VerifyValue(Of Object)(0, TypedConstantKind.Type, typeArg) 2204attrs.First().VerifyValue(Of Object)(0, TypedConstantKind.Type, typeArg) 2211attrs.First().VerifyValue(Of Object)(0, TypedConstantKind.Type, typeArg)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (4)
SymbolsTests\Retargeting\RetargetingCustomAttributes.vb (2)
143attribute.VerifyValue(0, TypedConstantKind.Type, NewMsCorLib_systemType) 146attribute.VerifyValue(0, "Target", TypedConstantKind.Type, GetType(Integer()))
SymbolsTests\TypedConstantTests.vb (2)
34Dim common As TypedConstant = New TypedConstant(_systemType, TypedConstantKind.Type, _namedType) 47{New TypedConstant(_systemType, TypedConstantKind.Type, _namedType)}.AsImmutableOrNull())
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
Extensions.vb (1)
185Case TypedConstantKind.Type
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
CodeGeneration\ExpressionGenerator.vb (1)
30Case TypedConstantKind.Type