9 instantiations of DkmClrType
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (9)
Debugger\Engine\DkmClrRuntimeInstance.cs (3)
70return new DkmClrType(module, DefaultAppDomain, type, GetObjectFavoritesInfo(type)); 77return new DkmClrType(module, DefaultAppDomain, (TypeImpl)type, GetObjectFavoritesInfo((TypeImpl)type)); 88var result = new DkmClrType(module, DefaultAppDomain, (TypeImpl)type, GetObjectFavoritesInfo((TypeImpl)type));
Debugger\Engine\DkmClrType.cs (4)
81var type = new DkmClrType( 92return new DkmClrType( 166return new DkmClrType(appDomain.RuntimeInstance.DefaultModule, appDomain, type); 206attributes.Add(new DkmClrDebuggerTypeProxyAttribute(new DkmClrType((TypeImpl)proxyType)));
Debugger\Engine\DkmClrValue.cs (1)
102var valueType = new DkmClrType(this.Type.RuntimeInstance, (value == null || elementType.IsPointer) ? elementType : (TypeImpl)value.GetType());
ResultProviderTestBase.cs (1)
72new DkmClrType((TypeImpl)type),
117 references to DkmClrType
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (117)
Debugger\Engine\DkmClrDebuggerTypeProxyAttribute.cs (2)
18internal DkmClrDebuggerTypeProxyAttribute(DkmClrType proxyType) : 24public readonly DkmClrType ProxyType;
Debugger\Engine\DkmClrModuleInstance.cs (2)
47public DkmClrType ResolveTypeName(string typeName, ReadOnlyCollection<DkmClrType> typeArguments)
Debugger\Engine\DkmClrRuntimeInstance.cs (4)
66internal DkmClrType GetType(Type type) 73internal DkmClrType GetType(System.Type type) 80internal DkmClrType GetType(string typeName, params System.Type[] typeArguments) 88var result = new DkmClrType(module, DefaultAppDomain, (TypeImpl)type, GetObjectFavoritesInfo((TypeImpl)type));
Debugger\Engine\DkmClrType.cs (14)
40private ReadOnlyCollection<DkmClrType> _lazyGenericArguments; 65public DkmClrType ElementType 79internal DkmClrType MakeGenericType(params DkmClrType[] genericArguments) 81var type = new DkmClrType( 86type._lazyGenericArguments = new ReadOnlyCollection<DkmClrType>(genericArguments); 90internal DkmClrType MakeArrayType() 119private static readonly ReadOnlyCollection<DkmClrType> s_emptyTypes = new ReadOnlyCollection<DkmClrType>(new DkmClrType[0]); 121public ReadOnlyCollection<DkmClrType> GenericArguments 130: new ReadOnlyCollection<DkmClrType>(typeArgs.Select(t => DkmClrType.Create(AppDomain, t)).ToArray()); 164public static DkmClrType Create(DkmClrAppDomain appDomain, Type type)
Debugger\Engine\DkmClrValue.cs (20)
34DkmClrType type, 60public readonly DkmClrType Type; 102var valueType = new DkmClrType(this.Type.RuntimeInstance, (value == null || elementType.IsPointer) ? elementType : (TypeImpl)value.GetType()); 172DkmClrType DeclaredType, 236public void EvaluateDebuggerDisplayString(DkmWorkList workList, DkmInspectionContext inspectionContext, DkmClrType targetType, string formatString, DkmCompletionRoutine<DkmEvaluateDebuggerDisplayStringAsyncResult> completionRoutine) 308DkmClrType.Create(appDomain, (TypeImpl)((fieldValue == null) ? field.FieldType : fieldValue.GetType())), 322DkmClrType.Create(appDomain, (TypeImpl)((propertyValue == null) ? property.PropertyType : propertyValue.GetType())), 344DkmClrType.Create(appDomain, (TypeImpl)((methodValue == null) ? method.ReturnType : methodValue.GetType())), 352var stringType = DkmClrType.Create(appDomain, (TypeImpl)typeof(string)); 418var boolType = runtime.GetType((TypeImpl)typeof(bool)); 434var valueType = runtime.GetType((TypeImpl)RawValue.GetType()); 570var type = DkmClrType.Create(this.Type.AppDomain, (TypeImpl)((element == null) ? array.GetType().GetElementType() : element.GetType())); 620public DkmClrValue InstantiateProxyType(DkmInspectionContext inspectionContext, DkmClrType proxyType) 645private static readonly ReadOnlyCollection<DkmClrType> s_noArguments = ArrayBuilder<DkmClrType>.GetInstance(0).ToImmutableAndFree(); 657var proxyType = module.ResolveTypeName( 663public DkmClrValue InstantiateResultsViewProxy(DkmInspectionContext inspectionContext, DkmClrType enumerableType) 687DkmClrType proxyType;
Debugger\Engine\DkmInspectionContext.cs (1)
63public string GetTypeName(DkmClrType ClrType, DkmClrCustomTypeInfo CustomTypeInfo, ReadOnlyCollection<string> FormatSpecifiers)
Debugger\Engine\IDkmClrFormatter.cs (1)
20string GetTypeName(DkmInspectionContext inspectionContext, DkmClrType clrType, DkmClrCustomTypeInfo CustomTypeInfo, ReadOnlyCollection<string> formatSpecifiers);
Debugger\Engine\IDkmClrFullNameProvider.cs (4)
22DkmClrType clrType, 32DkmClrType clrType, 38DkmClrType clrType, 49DkmClrType clrType,
Debugger\Engine\IDkmClrResultProvider.cs (1)
20void GetResult(DkmClrValue clrValue, DkmWorkList workList, DkmClrType declaredType, DkmClrCustomTypeInfo customTypeInfo, DkmInspectionContext inspectionContext, ReadOnlyCollection<string> formatSpecifiers, string resultName, string resultFullName, DkmCompletionRoutine<DkmEvaluationAsyncResult> completionRoutine);
ResultProviderTestBase.cs (5)
80DkmClrType type, 97DkmClrType type, 179internal DkmEvaluationResult FormatResult(string name, DkmClrValue value, DkmClrType declaredType = null, DkmInspectionContext inspectionContext = null) 184internal DkmEvaluationResult FormatResult(string name, string fullName, DkmClrValue value, DkmClrType declaredType = null, DkmClrCustomTypeInfo declaredTypeInfo = null, DkmInspectionContext inspectionContext = null) 195internal DkmEvaluationAsyncResult FormatAsyncResult(string name, string fullName, DkmClrValue value, DkmClrType declaredType = null, DkmClrCustomTypeInfo declaredTypeInfo = null, DkmInspectionContext inspectionContext = null)
src\ExpressionEvaluator\Core\Source\ResultProvider\Expansion\ArrayExpansion.cs (1)
165var parentRuntimeType = parent.Value.Type;
src\ExpressionEvaluator\Core\Source\ResultProvider\Expansion\DebuggerTypeProxyExpansion.cs (2)
45var proxyType = value.Type.GetProxyType(); 116var proxyType = proxyValue.Type;
src\ExpressionEvaluator\Core\Source\ResultProvider\Expansion\DynamicViewExpansion.cs (1)
40var proxyType = proxyValue.Type;
src\ExpressionEvaluator\Core\Source\ResultProvider\Expansion\MemberExpansion.cs (6)
40var type = value.Type; 403private readonly DkmClrType _type; 406internal StaticMembersExpansion(DkmClrType type, Expansion members) 511new TypeAndCustomInfo(DkmClrType.Create(appDomain, declaringType), declaringTypeInfo), // Note: Won't include DynamicAttribute. 520typeDeclaringMemberAndInfo: (member.IncludeTypeInMemberName || declaringType.IsInterface) ? new TypeAndCustomInfo(DkmClrType.Create(appDomain, declaringType), declaringTypeInfo) : default(TypeAndCustomInfo), // Note: Won't include DynamicAttribute. 521declaredTypeAndInfo: new TypeAndCustomInfo(DkmClrType.Create(appDomain, declaredType), declaredTypeInfo),
src\ExpressionEvaluator\Core\Source\ResultProvider\Expansion\ResultsViewExpansion.cs (10)
23var enumerableType = GetEnumerableType(value); 36DkmClrType declaredType, 52var enumerableType = GetEnumerableType(value); 89DkmClrType declaredType, 100var enumerableType = GetEnumerableType(value, declaredType, requireExactInterface: true); 123private static DkmClrType GetEnumerableType(DkmClrValue value) 143private static DkmClrType GetEnumerableType(DkmClrValue value, DkmClrType valueType, bool requireExactInterface) 169return DkmClrType.Create(valueType.AppDomain, enumerableType); 172private static ResultsViewExpansion CreateExpansion(DkmInspectionContext inspectionContext, DkmClrValue value, DkmClrType enumerableType, ResultProvider resultProvider)
src\ExpressionEvaluator\Core\Source\ResultProvider\Expansion\TupleExpansion.cs (3)
102var parentRuntimeType = parent.Value.Type; 352var fieldType = DkmClrType.Create(appDomain, field.FieldType);
src\ExpressionEvaluator\Core\Source\ResultProvider\Expansion\TypeVariablesExpansion.cs (2)
77declaredTypeAndInfo: new TypeAndCustomInfo(DkmClrType.Create(value.Type.AppDomain, typeArgument), typeArgumentInfo), 80displayValue: inspectionContext.GetTypeName(DkmClrType.Create(value.Type.AppDomain, typeArgument), typeArgumentInfo, formatSpecifiers),
src\ExpressionEvaluator\Core\Source\ResultProvider\Formatter.cs (5)
49string IDkmClrFormatter.GetTypeName(DkmInspectionContext inspectionContext, DkmClrType type, DkmClrCustomTypeInfo typeInfo, ReadOnlyCollection<string> formatSpecifiers) 75string IDkmClrFullNameProvider.GetClrTypeName(DkmInspectionContext inspectionContext, DkmClrType clrType, DkmClrCustomTypeInfo customTypeInfo) 88string IDkmClrFullNameProvider.GetClrCastExpression(DkmInspectionContext inspectionContext, string argument, DkmClrType type, DkmClrCustomTypeInfo customTypeInfo, DkmClrCastExpressionOptions castExpressionOptions) 99string IDkmClrFullNameProvider.GetClrObjectCreationExpression(DkmInspectionContext inspectionContext, DkmClrType type, DkmClrCustomTypeInfo customTypeInfo, string[] arguments) 134DkmClrType declaringType,
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\DebuggerDisplayInfo.cs (6)
15private readonly DkmClrType m_targetType; 24public DebuggerDisplayInfo(DkmClrType targetType) 30DkmClrType targetType, 78public DebuggerDisplayInfo WithDebuggerDisplayAttribute(DkmClrDebuggerDisplayAttribute attribute, DkmClrType attributeTarget) 115public readonly DkmClrType TargetType; 117public DebuggerDisplayItemInfo(string value, DkmClrType targetType)
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\TypeAndCustomInfo.cs (2)
16public readonly DkmClrType ClrType; 19public TypeAndCustomInfo(DkmClrType type, DkmClrCustomTypeInfo info = null)
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\TypeHelpers.cs (16)
58var browsableState = DkmClrType.Create(appDomain, type).GetDebuggerBrowsableAttributeState(); 519internal static Type GetBaseTypeOrNull(this Type underlyingType, DkmClrAppDomain appDomain, out DkmClrType type) 524type = (underlyingType != null) ? DkmClrType.Create(appDomain, underlyingType) : null; 530/// Get the first attribute from <see cref="DkmClrType.GetEvalAttributes()"/> (including inherited attributes) 533internal static bool TryGetEvalAttribute<T>(this DkmClrType type, out DkmClrType attributeTarget, out T evalAttribute) 564private static Dictionary<string, DkmClrDebuggerBrowsableAttributeState> GetDebuggerBrowsableAttributeState(this DkmClrType type) 601var clrType = value.Type; 610DkmClrType attributeTarget; 624internal static DkmCustomUIVisualizerInfo[] GetDebuggerCustomUIVisualizerInfo(this DkmClrType type) 662internal static DkmClrType GetProxyType(this DkmClrType type) 666DkmClrType attributeTarget; 671var proxyType = attribute.ProxyType; 685proxyType = DkmClrType.Create(type.AppDomain, constructedProxy); 891internal static MemberAndDeclarationInfo GetMemberByName(this DkmClrType type, string name)
src\ExpressionEvaluator\Core\Source\ResultProvider\ResultProvider.cs (9)
71void IDkmClrResultProvider.GetResult(DkmClrValue value, DkmWorkList workList, DkmClrType declaredType, DkmClrCustomTypeInfo declaredTypeInfo, DkmInspectionContext inspectionContext, ReadOnlyCollection<string> formatSpecifiers, string resultName, string resultFullName, DkmCompletionRoutine<DkmEvaluationAsyncResult> completionRoutine) 507DkmClrType declaredType, 512var runtimeType = value.Type; 593expansion = this.GetTypeExpansion(inspectionContext, new TypeAndCustomInfo(DkmClrType.Create(declaredTypeAndInfo.ClrType.AppDomain, lmrNullableTypeArg)), value, ExpansionFlags.IncludeResultsView, supportsFavorites: supportsFavorites); 644DkmClrType declaredType, 784DkmClrType declaredType, 851DkmClrType declaredType, 975return ArrayExpansion.CreateExpansion(new TypeAndCustomInfo(DkmClrType.Create(declaredTypeAndInfo.ClrType.AppDomain, elementType), elementTypeInfo), sizes, lowerBounds); 996: new PointerDereferenceExpansion(new TypeAndCustomInfo(DkmClrType.Create(declaredTypeAndInfo.ClrType.AppDomain, elementType)));