9 instantiations of DkmClrType
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (9)
Debugger\Engine\DkmClrRuntimeInstance.cs (3)
70
return new
DkmClrType
(module, DefaultAppDomain, type, GetObjectFavoritesInfo(type));
77
return new
DkmClrType
(module, DefaultAppDomain, (TypeImpl)type, GetObjectFavoritesInfo((TypeImpl)type));
88
var result = new
DkmClrType
(module, DefaultAppDomain, (TypeImpl)type, GetObjectFavoritesInfo((TypeImpl)type));
Debugger\Engine\DkmClrType.cs (4)
81
var type = new
DkmClrType
(
92
return new
DkmClrType
(
166
return new
DkmClrType
(appDomain.RuntimeInstance.DefaultModule, appDomain, type);
206
attributes.Add(new DkmClrDebuggerTypeProxyAttribute(new
DkmClrType
((TypeImpl)proxyType)));
Debugger\Engine\DkmClrValue.cs (1)
104
var valueType = new
DkmClrType
(this.Type.RuntimeInstance, (value == null || elementType.IsPointer) ? elementType : (TypeImpl)value.GetType());
ResultProviderTestBase.cs (1)
73
new
DkmClrType
((TypeImpl)type),
117 references to DkmClrType
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (117)
Debugger\Engine\DkmClrDebuggerTypeProxyAttribute.cs (2)
18
internal DkmClrDebuggerTypeProxyAttribute(
DkmClrType
proxyType) :
24
public readonly
DkmClrType
ProxyType;
Debugger\Engine\DkmClrModuleInstance.cs (2)
47
public
DkmClrType
ResolveTypeName(string typeName, ReadOnlyCollection<
DkmClrType
> typeArguments)
Debugger\Engine\DkmClrRuntimeInstance.cs (4)
66
internal
DkmClrType
GetType(Type type)
73
internal
DkmClrType
GetType(System.Type type)
80
internal
DkmClrType
GetType(string typeName, params System.Type[] typeArguments)
88
var
result = new DkmClrType(module, DefaultAppDomain, (TypeImpl)type, GetObjectFavoritesInfo((TypeImpl)type));
Debugger\Engine\DkmClrType.cs (14)
40
private ReadOnlyCollection<
DkmClrType
> _lazyGenericArguments;
65
public
DkmClrType
ElementType
79
internal
DkmClrType
MakeGenericType(params
DkmClrType
[] genericArguments)
81
var
type = new DkmClrType(
86
type._lazyGenericArguments = new ReadOnlyCollection<
DkmClrType
>(genericArguments);
90
internal
DkmClrType
MakeArrayType()
119
private static readonly ReadOnlyCollection<
DkmClrType
> s_emptyTypes = new ReadOnlyCollection<
DkmClrType
>(new
DkmClrType
[0]);
121
public ReadOnlyCollection<
DkmClrType
> GenericArguments
130
: new ReadOnlyCollection<
DkmClrType
>(typeArgs.Select(t =>
DkmClrType
.Create(AppDomain, t)).ToArray());
164
public static
DkmClrType
Create(DkmClrAppDomain appDomain, Type type)
Debugger\Engine\DkmClrValue.cs (20)
36
DkmClrType
type,
62
public readonly
DkmClrType
Type;
104
var
valueType = new DkmClrType(this.Type.RuntimeInstance, (value == null || elementType.IsPointer) ? elementType : (TypeImpl)value.GetType());
174
DkmClrType
DeclaredType,
238
public void EvaluateDebuggerDisplayString(DkmWorkList workList, DkmInspectionContext inspectionContext,
DkmClrType
targetType, string formatString, DkmCompletionRoutine<DkmEvaluateDebuggerDisplayStringAsyncResult> completionRoutine)
310
DkmClrType
.Create(appDomain, (TypeImpl)((fieldValue == null) ? field.FieldType : fieldValue.GetType())),
324
DkmClrType
.Create(appDomain, (TypeImpl)((propertyValue == null) ? property.PropertyType : propertyValue.GetType())),
346
DkmClrType
.Create(appDomain, (TypeImpl)((methodValue == null) ? method.ReturnType : methodValue.GetType())),
354
var
stringType =
DkmClrType
.Create(appDomain, (TypeImpl)typeof(string));
420
var
boolType = runtime.GetType((TypeImpl)typeof(bool));
436
var
valueType = runtime.GetType((TypeImpl)RawValue.GetType());
572
var
type =
DkmClrType
.Create(this.Type.AppDomain, (TypeImpl)((element == null) ? array.GetType().GetElementType() : element.GetType()));
622
public DkmClrValue InstantiateProxyType(DkmInspectionContext inspectionContext,
DkmClrType
proxyType)
647
private static readonly ReadOnlyCollection<
DkmClrType
> s_noArguments = ArrayBuilder<
DkmClrType
>.GetInstance(0).ToImmutableAndFree();
659
var
proxyType = module.ResolveTypeName(
665
public DkmClrValue InstantiateResultsViewProxy(DkmInspectionContext inspectionContext,
DkmClrType
enumerableType)
689
DkmClrType
proxyType;
Debugger\Engine\DkmInspectionContext.cs (1)
63
public string GetTypeName(
DkmClrType
ClrType, DkmClrCustomTypeInfo CustomTypeInfo, ReadOnlyCollection<string> FormatSpecifiers)
Debugger\Engine\IDkmClrFormatter.cs (1)
20
string GetTypeName(DkmInspectionContext inspectionContext,
DkmClrType
clrType, DkmClrCustomTypeInfo CustomTypeInfo, ReadOnlyCollection<string> formatSpecifiers);
Debugger\Engine\IDkmClrFullNameProvider.cs (4)
22
DkmClrType
clrType,
32
DkmClrType
clrType,
38
DkmClrType
clrType,
49
DkmClrType
clrType,
Debugger\Engine\IDkmClrResultProvider.cs (1)
20
void GetResult(DkmClrValue clrValue, DkmWorkList workList,
DkmClrType
declaredType, DkmClrCustomTypeInfo customTypeInfo, DkmInspectionContext inspectionContext, ReadOnlyCollection<string> formatSpecifiers, string resultName, string resultFullName, DkmCompletionRoutine<DkmEvaluationAsyncResult> completionRoutine);
ResultProviderTestBase.cs (5)
81
DkmClrType
type,
98
DkmClrType
type,
180
internal DkmEvaluationResult FormatResult(string name, DkmClrValue value,
DkmClrType
declaredType = null, DkmInspectionContext inspectionContext = null)
185
internal DkmEvaluationResult FormatResult(string name, string fullName, DkmClrValue value,
DkmClrType
declaredType = null, DkmClrCustomTypeInfo declaredTypeInfo = null, DkmInspectionContext inspectionContext = null)
196
internal 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)
166
var
parentRuntimeType = parent.Value.Type;
src\ExpressionEvaluator\Core\Source\ResultProvider\Expansion\DebuggerTypeProxyExpansion.cs (2)
45
var
proxyType = value.Type.GetProxyType();
116
var
proxyType = proxyValue.Type;
src\ExpressionEvaluator\Core\Source\ResultProvider\Expansion\DynamicViewExpansion.cs (1)
41
var
proxyType = proxyValue.Type;
src\ExpressionEvaluator\Core\Source\ResultProvider\Expansion\MemberExpansion.cs (6)
41
var
type = value.Type;
404
private readonly
DkmClrType
_type;
407
internal StaticMembersExpansion(
DkmClrType
type, Expansion members)
512
new TypeAndCustomInfo(
DkmClrType
.Create(appDomain, declaringType), declaringTypeInfo), // Note: Won't include DynamicAttribute.
521
typeDeclaringMemberAndInfo: (member.IncludeTypeInMemberName || declaringType.IsInterface) ? new TypeAndCustomInfo(
DkmClrType
.Create(appDomain, declaringType), declaringTypeInfo) : default(TypeAndCustomInfo), // Note: Won't include DynamicAttribute.
522
declaredTypeAndInfo: new TypeAndCustomInfo(
DkmClrType
.Create(appDomain, declaredType), declaredTypeInfo),
src\ExpressionEvaluator\Core\Source\ResultProvider\Expansion\ResultsViewExpansion.cs (10)
23
var
enumerableType = GetEnumerableType(value);
36
DkmClrType
declaredType,
52
var
enumerableType = GetEnumerableType(value);
89
DkmClrType
declaredType,
100
var
enumerableType = GetEnumerableType(value, declaredType, requireExactInterface: true);
123
private static
DkmClrType
GetEnumerableType(DkmClrValue value)
143
private static
DkmClrType
GetEnumerableType(DkmClrValue value,
DkmClrType
valueType, bool requireExactInterface)
169
return
DkmClrType
.Create(valueType.AppDomain, enumerableType);
172
private static ResultsViewExpansion CreateExpansion(DkmInspectionContext inspectionContext, DkmClrValue value,
DkmClrType
enumerableType, ResultProvider resultProvider)
src\ExpressionEvaluator\Core\Source\ResultProvider\Expansion\TupleExpansion.cs (3)
103
var
parentRuntimeType = parent.Value.Type;
353
var
fieldType =
DkmClrType
.Create(appDomain, field.FieldType);
src\ExpressionEvaluator\Core\Source\ResultProvider\Expansion\TypeVariablesExpansion.cs (2)
77
declaredTypeAndInfo: new TypeAndCustomInfo(
DkmClrType
.Create(value.Type.AppDomain, typeArgument), typeArgumentInfo),
80
displayValue: inspectionContext.GetTypeName(
DkmClrType
.Create(value.Type.AppDomain, typeArgument), typeArgumentInfo, formatSpecifiers),
src\ExpressionEvaluator\Core\Source\ResultProvider\Formatter.cs (5)
50
string IDkmClrFormatter.GetTypeName(DkmInspectionContext inspectionContext,
DkmClrType
type, DkmClrCustomTypeInfo typeInfo, ReadOnlyCollection<string> formatSpecifiers)
76
string IDkmClrFullNameProvider.GetClrTypeName(DkmInspectionContext inspectionContext,
DkmClrType
clrType, DkmClrCustomTypeInfo customTypeInfo)
89
string IDkmClrFullNameProvider.GetClrCastExpression(DkmInspectionContext inspectionContext, string argument,
DkmClrType
type, DkmClrCustomTypeInfo customTypeInfo, DkmClrCastExpressionOptions castExpressionOptions)
100
string IDkmClrFullNameProvider.GetClrObjectCreationExpression(DkmInspectionContext inspectionContext,
DkmClrType
type, DkmClrCustomTypeInfo customTypeInfo, string[] arguments)
135
DkmClrType
declaringType,
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\DebuggerDisplayInfo.cs (6)
16
private readonly
DkmClrType
m_targetType;
25
public DebuggerDisplayInfo(
DkmClrType
targetType)
31
DkmClrType
targetType,
79
public DebuggerDisplayInfo WithDebuggerDisplayAttribute(DkmClrDebuggerDisplayAttribute attribute,
DkmClrType
attributeTarget)
116
public readonly
DkmClrType
TargetType;
118
public DebuggerDisplayItemInfo(string value,
DkmClrType
targetType)
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\TypeAndCustomInfo.cs (2)
16
public readonly
DkmClrType
ClrType;
19
public TypeAndCustomInfo(
DkmClrType
type, DkmClrCustomTypeInfo info = null)
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\TypeHelpers.cs (16)
59
var browsableState =
DkmClrType
.Create(appDomain, type).GetDebuggerBrowsableAttributeState();
520
internal static Type GetBaseTypeOrNull(this Type underlyingType, DkmClrAppDomain appDomain, out
DkmClrType
type)
525
type = (underlyingType != null) ?
DkmClrType
.Create(appDomain, underlyingType) : null;
531
/// Get the first attribute from <see cref="
DkmClrType
.GetEvalAttributes()"/> (including inherited attributes)
534
internal static bool TryGetEvalAttribute<T>(this
DkmClrType
type, out
DkmClrType
attributeTarget, out T evalAttribute)
565
private static Dictionary<string, DkmClrDebuggerBrowsableAttributeState> GetDebuggerBrowsableAttributeState(this
DkmClrType
type)
602
var
clrType = value.Type;
611
DkmClrType
attributeTarget;
625
internal static DkmCustomUIVisualizerInfo[] GetDebuggerCustomUIVisualizerInfo(this
DkmClrType
type)
663
internal static
DkmClrType
GetProxyType(this
DkmClrType
type)
667
DkmClrType
attributeTarget;
672
var
proxyType = attribute.ProxyType;
686
proxyType =
DkmClrType
.Create(type.AppDomain, constructedProxy);
892
internal static MemberAndDeclarationInfo GetMemberByName(this
DkmClrType
type, string name)
src\ExpressionEvaluator\Core\Source\ResultProvider\ResultProvider.cs (9)
73
void IDkmClrResultProvider.GetResult(DkmClrValue value, DkmWorkList workList,
DkmClrType
declaredType, DkmClrCustomTypeInfo declaredTypeInfo, DkmInspectionContext inspectionContext, ReadOnlyCollection<string> formatSpecifiers, string resultName, string resultFullName, DkmCompletionRoutine<DkmEvaluationAsyncResult> completionRoutine)
509
DkmClrType
declaredType,
514
var
runtimeType = value.Type;
595
expansion = this.GetTypeExpansion(inspectionContext, new TypeAndCustomInfo(
DkmClrType
.Create(declaredTypeAndInfo.ClrType.AppDomain, lmrNullableTypeArg)), value, ExpansionFlags.IncludeResultsView, supportsFavorites: supportsFavorites);
646
DkmClrType
declaredType,
786
DkmClrType
declaredType,
853
DkmClrType
declaredType,
977
return ArrayExpansion.CreateExpansion(new TypeAndCustomInfo(
DkmClrType
.Create(declaredTypeAndInfo.ClrType.AppDomain, elementType), elementTypeInfo), sizes, lowerBounds);
998
: new PointerDereferenceExpansion(new TypeAndCustomInfo(
DkmClrType
.Create(declaredTypeAndInfo.ClrType.AppDomain, elementType)));