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)
104var valueType = new DkmClrType(this.Type.RuntimeInstance, (value == null || elementType.IsPointer) ? elementType : (TypeImpl)value.GetType());
ResultProviderTestBase.cs (1)
73new 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)
36DkmClrType type, 62public readonly DkmClrType Type; 104var valueType = new DkmClrType(this.Type.RuntimeInstance, (value == null || elementType.IsPointer) ? elementType : (TypeImpl)value.GetType()); 174DkmClrType DeclaredType, 238public void EvaluateDebuggerDisplayString(DkmWorkList workList, DkmInspectionContext inspectionContext, DkmClrType targetType, string formatString, DkmCompletionRoutine<DkmEvaluateDebuggerDisplayStringAsyncResult> completionRoutine) 310DkmClrType.Create(appDomain, (TypeImpl)((fieldValue == null) ? field.FieldType : fieldValue.GetType())), 324DkmClrType.Create(appDomain, (TypeImpl)((propertyValue == null) ? property.PropertyType : propertyValue.GetType())), 346DkmClrType.Create(appDomain, (TypeImpl)((methodValue == null) ? method.ReturnType : methodValue.GetType())), 354var stringType = DkmClrType.Create(appDomain, (TypeImpl)typeof(string)); 420var boolType = runtime.GetType((TypeImpl)typeof(bool)); 436var valueType = runtime.GetType((TypeImpl)RawValue.GetType()); 572var type = DkmClrType.Create(this.Type.AppDomain, (TypeImpl)((element == null) ? array.GetType().GetElementType() : element.GetType())); 622public DkmClrValue InstantiateProxyType(DkmInspectionContext inspectionContext, DkmClrType proxyType) 647private static readonly ReadOnlyCollection<DkmClrType> s_noArguments = ArrayBuilder<DkmClrType>.GetInstance(0).ToImmutableAndFree(); 659var proxyType = module.ResolveTypeName( 665public DkmClrValue InstantiateResultsViewProxy(DkmInspectionContext inspectionContext, DkmClrType enumerableType) 689DkmClrType 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)
81DkmClrType type, 98DkmClrType type, 180internal DkmEvaluationResult FormatResult(string name, DkmClrValue value, DkmClrType declaredType = null, DkmInspectionContext inspectionContext = null) 185internal DkmEvaluationResult FormatResult(string name, string fullName, DkmClrValue value, DkmClrType declaredType = null, DkmClrCustomTypeInfo declaredTypeInfo = null, DkmInspectionContext inspectionContext = null) 196internal 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)
166var 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)
41var proxyType = proxyValue.Type;
src\ExpressionEvaluator\Core\Source\ResultProvider\Expansion\MemberExpansion.cs (6)
41var type = value.Type; 404private readonly DkmClrType _type; 407internal StaticMembersExpansion(DkmClrType type, Expansion members) 512new TypeAndCustomInfo(DkmClrType.Create(appDomain, declaringType), declaringTypeInfo), // Note: Won't include DynamicAttribute. 521typeDeclaringMemberAndInfo: (member.IncludeTypeInMemberName || declaringType.IsInterface) ? new TypeAndCustomInfo(DkmClrType.Create(appDomain, declaringType), declaringTypeInfo) : default(TypeAndCustomInfo), // Note: Won't include DynamicAttribute. 522declaredTypeAndInfo: 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)
103var parentRuntimeType = parent.Value.Type; 353var 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)
50string IDkmClrFormatter.GetTypeName(DkmInspectionContext inspectionContext, DkmClrType type, DkmClrCustomTypeInfo typeInfo, ReadOnlyCollection<string> formatSpecifiers) 76string IDkmClrFullNameProvider.GetClrTypeName(DkmInspectionContext inspectionContext, DkmClrType clrType, DkmClrCustomTypeInfo customTypeInfo) 89string IDkmClrFullNameProvider.GetClrCastExpression(DkmInspectionContext inspectionContext, string argument, DkmClrType type, DkmClrCustomTypeInfo customTypeInfo, DkmClrCastExpressionOptions castExpressionOptions) 100string IDkmClrFullNameProvider.GetClrObjectCreationExpression(DkmInspectionContext inspectionContext, DkmClrType type, DkmClrCustomTypeInfo customTypeInfo, string[] arguments) 135DkmClrType declaringType,
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\DebuggerDisplayInfo.cs (6)
16private readonly DkmClrType m_targetType; 25public DebuggerDisplayInfo(DkmClrType targetType) 31DkmClrType targetType, 79public DebuggerDisplayInfo WithDebuggerDisplayAttribute(DkmClrDebuggerDisplayAttribute attribute, DkmClrType attributeTarget) 116public readonly DkmClrType TargetType; 118public 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)
59var browsableState = DkmClrType.Create(appDomain, type).GetDebuggerBrowsableAttributeState(); 520internal static Type GetBaseTypeOrNull(this Type underlyingType, DkmClrAppDomain appDomain, out DkmClrType type) 525type = (underlyingType != null) ? DkmClrType.Create(appDomain, underlyingType) : null; 531/// Get the first attribute from <see cref="DkmClrType.GetEvalAttributes()"/> (including inherited attributes) 534internal static bool TryGetEvalAttribute<T>(this DkmClrType type, out DkmClrType attributeTarget, out T evalAttribute) 565private static Dictionary<string, DkmClrDebuggerBrowsableAttributeState> GetDebuggerBrowsableAttributeState(this DkmClrType type) 602var clrType = value.Type; 611DkmClrType attributeTarget; 625internal static DkmCustomUIVisualizerInfo[] GetDebuggerCustomUIVisualizerInfo(this DkmClrType type) 663internal static DkmClrType GetProxyType(this DkmClrType type) 667DkmClrType attributeTarget; 672var proxyType = attribute.ProxyType; 686proxyType = DkmClrType.Create(type.AppDomain, constructedProxy); 892internal static MemberAndDeclarationInfo GetMemberByName(this DkmClrType type, string name)
src\ExpressionEvaluator\Core\Source\ResultProvider\ResultProvider.cs (9)
73void IDkmClrResultProvider.GetResult(DkmClrValue value, DkmWorkList workList, DkmClrType declaredType, DkmClrCustomTypeInfo declaredTypeInfo, DkmInspectionContext inspectionContext, ReadOnlyCollection<string> formatSpecifiers, string resultName, string resultFullName, DkmCompletionRoutine<DkmEvaluationAsyncResult> completionRoutine) 509DkmClrType declaredType, 514var runtimeType = value.Type; 595expansion = this.GetTypeExpansion(inspectionContext, new TypeAndCustomInfo(DkmClrType.Create(declaredTypeAndInfo.ClrType.AppDomain, lmrNullableTypeArg)), value, ExpansionFlags.IncludeResultsView, supportsFavorites: supportsFavorites); 646DkmClrType declaredType, 786DkmClrType declaredType, 853DkmClrType declaredType, 977return ArrayExpansion.CreateExpansion(new TypeAndCustomInfo(DkmClrType.Create(declaredTypeAndInfo.ClrType.AppDomain, elementType), elementTypeInfo), sizes, lowerBounds); 998: new PointerDereferenceExpansion(new TypeAndCustomInfo(DkmClrType.Create(declaredTypeAndInfo.ClrType.AppDomain, elementType)));