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)
102
var valueType = new
DkmClrType
(this.Type.RuntimeInstance, (value == null || elementType.IsPointer) ? elementType : (TypeImpl)value.GetType());
ResultProviderTestBase.cs (1)
72
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)
34
DkmClrType
type,
60
public readonly
DkmClrType
Type;
102
var
valueType = new DkmClrType(this.Type.RuntimeInstance, (value == null || elementType.IsPointer) ? elementType : (TypeImpl)value.GetType());
172
DkmClrType
DeclaredType,
236
public void EvaluateDebuggerDisplayString(DkmWorkList workList, DkmInspectionContext inspectionContext,
DkmClrType
targetType, string formatString, DkmCompletionRoutine<DkmEvaluateDebuggerDisplayStringAsyncResult> completionRoutine)
308
DkmClrType
.Create(appDomain, (TypeImpl)((fieldValue == null) ? field.FieldType : fieldValue.GetType())),
322
DkmClrType
.Create(appDomain, (TypeImpl)((propertyValue == null) ? property.PropertyType : propertyValue.GetType())),
344
DkmClrType
.Create(appDomain, (TypeImpl)((methodValue == null) ? method.ReturnType : methodValue.GetType())),
352
var
stringType =
DkmClrType
.Create(appDomain, (TypeImpl)typeof(string));
418
var
boolType = runtime.GetType((TypeImpl)typeof(bool));
434
var
valueType = runtime.GetType((TypeImpl)RawValue.GetType());
570
var
type =
DkmClrType
.Create(this.Type.AppDomain, (TypeImpl)((element == null) ? array.GetType().GetElementType() : element.GetType()));
620
public DkmClrValue InstantiateProxyType(DkmInspectionContext inspectionContext,
DkmClrType
proxyType)
645
private static readonly ReadOnlyCollection<
DkmClrType
> s_noArguments = ArrayBuilder<
DkmClrType
>.GetInstance(0).ToImmutableAndFree();
657
var
proxyType = module.ResolveTypeName(
663
public DkmClrValue InstantiateResultsViewProxy(DkmInspectionContext inspectionContext,
DkmClrType
enumerableType)
687
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)
80
DkmClrType
type,
97
DkmClrType
type,
179
internal DkmEvaluationResult FormatResult(string name, DkmClrValue value,
DkmClrType
declaredType = null, DkmInspectionContext inspectionContext = null)
184
internal DkmEvaluationResult FormatResult(string name, string fullName, DkmClrValue value,
DkmClrType
declaredType = null, DkmClrCustomTypeInfo declaredTypeInfo = null, DkmInspectionContext inspectionContext = null)
195
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)
165
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)
40
var
proxyType = proxyValue.Type;
src\ExpressionEvaluator\Core\Source\ResultProvider\Expansion\MemberExpansion.cs (6)
40
var
type = value.Type;
403
private readonly
DkmClrType
_type;
406
internal StaticMembersExpansion(
DkmClrType
type, Expansion members)
511
new TypeAndCustomInfo(
DkmClrType
.Create(appDomain, declaringType), declaringTypeInfo), // Note: Won't include DynamicAttribute.
520
typeDeclaringMemberAndInfo: (member.IncludeTypeInMemberName || declaringType.IsInterface) ? new TypeAndCustomInfo(
DkmClrType
.Create(appDomain, declaringType), declaringTypeInfo) : default(TypeAndCustomInfo), // Note: Won't include DynamicAttribute.
521
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)
102
var
parentRuntimeType = parent.Value.Type;
352
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)
49
string IDkmClrFormatter.GetTypeName(DkmInspectionContext inspectionContext,
DkmClrType
type, DkmClrCustomTypeInfo typeInfo, ReadOnlyCollection<string> formatSpecifiers)
75
string IDkmClrFullNameProvider.GetClrTypeName(DkmInspectionContext inspectionContext,
DkmClrType
clrType, DkmClrCustomTypeInfo customTypeInfo)
88
string IDkmClrFullNameProvider.GetClrCastExpression(DkmInspectionContext inspectionContext, string argument,
DkmClrType
type, DkmClrCustomTypeInfo customTypeInfo, DkmClrCastExpressionOptions castExpressionOptions)
99
string IDkmClrFullNameProvider.GetClrObjectCreationExpression(DkmInspectionContext inspectionContext,
DkmClrType
type, DkmClrCustomTypeInfo customTypeInfo, string[] arguments)
134
DkmClrType
declaringType,
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\DebuggerDisplayInfo.cs (6)
15
private readonly
DkmClrType
m_targetType;
24
public DebuggerDisplayInfo(
DkmClrType
targetType)
30
DkmClrType
targetType,
78
public DebuggerDisplayInfo WithDebuggerDisplayAttribute(DkmClrDebuggerDisplayAttribute attribute,
DkmClrType
attributeTarget)
115
public readonly
DkmClrType
TargetType;
117
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)
58
var browsableState =
DkmClrType
.Create(appDomain, type).GetDebuggerBrowsableAttributeState();
519
internal static Type GetBaseTypeOrNull(this Type underlyingType, DkmClrAppDomain appDomain, out
DkmClrType
type)
524
type = (underlyingType != null) ?
DkmClrType
.Create(appDomain, underlyingType) : null;
530
/// Get the first attribute from <see cref="
DkmClrType
.GetEvalAttributes()"/> (including inherited attributes)
533
internal static bool TryGetEvalAttribute<T>(this
DkmClrType
type, out
DkmClrType
attributeTarget, out T evalAttribute)
564
private static Dictionary<string, DkmClrDebuggerBrowsableAttributeState> GetDebuggerBrowsableAttributeState(this
DkmClrType
type)
601
var
clrType = value.Type;
610
DkmClrType
attributeTarget;
624
internal static DkmCustomUIVisualizerInfo[] GetDebuggerCustomUIVisualizerInfo(this
DkmClrType
type)
662
internal static
DkmClrType
GetProxyType(this
DkmClrType
type)
666
DkmClrType
attributeTarget;
671
var
proxyType = attribute.ProxyType;
685
proxyType =
DkmClrType
.Create(type.AppDomain, constructedProxy);
891
internal static MemberAndDeclarationInfo GetMemberByName(this
DkmClrType
type, string name)
src\ExpressionEvaluator\Core\Source\ResultProvider\ResultProvider.cs (9)
71
void IDkmClrResultProvider.GetResult(DkmClrValue value, DkmWorkList workList,
DkmClrType
declaredType, DkmClrCustomTypeInfo declaredTypeInfo, DkmInspectionContext inspectionContext, ReadOnlyCollection<string> formatSpecifiers, string resultName, string resultFullName, DkmCompletionRoutine<DkmEvaluationAsyncResult> completionRoutine)
507
DkmClrType
declaredType,
512
var
runtimeType = value.Type;
593
expansion = this.GetTypeExpansion(inspectionContext, new TypeAndCustomInfo(
DkmClrType
.Create(declaredTypeAndInfo.ClrType.AppDomain, lmrNullableTypeArg)), value, ExpansionFlags.IncludeResultsView, supportsFavorites: supportsFavorites);
644
DkmClrType
declaredType,
784
DkmClrType
declaredType,
851
DkmClrType
declaredType,
975
return ArrayExpansion.CreateExpansion(new TypeAndCustomInfo(
DkmClrType
.Create(declaredTypeAndInfo.ClrType.AppDomain, elementType), elementTypeInfo), sizes, lowerBounds);
996
: new PointerDereferenceExpansion(new TypeAndCustomInfo(
DkmClrType
.Create(declaredTypeAndInfo.ClrType.AppDomain, elementType)));