45 references to CustomTypeInfo
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ResultProvider.UnitTests (33)
DynamicFlagsCustomTypeInfoTests.cs (33)
62
var encoded =
CustomTypeInfo
.Encode(null, null);
70
encoded =
CustomTypeInfo
.Encode(bytes, null);
75
encoded =
CustomTypeInfo
.Encode(bytes, null);
80
CustomTypeInfo
.Decode(
CustomTypeInfo
.PayloadTypeId, encoded, out dynamicFlags, out tupleElementNames);
88
encoded =
CustomTypeInfo
.Encode(bytes, names);
89
CustomTypeInfo
.Decode(
CustomTypeInfo
.PayloadTypeId, encoded, out dynamicFlags, out tupleElementNames);
93
encoded =
CustomTypeInfo
.Encode(bytes, null);
94
CustomTypeInfo
.Decode(
CustomTypeInfo
.PayloadTypeId, encoded, out dynamicFlags, out tupleElementNames);
102
encoded =
CustomTypeInfo
.Encode(bytes, names);
103
CustomTypeInfo
.Decode(
CustomTypeInfo
.PayloadTypeId, encoded, out dynamicFlags, out tupleElementNames);
107
encoded =
CustomTypeInfo
.Encode(null, names);
108
CustomTypeInfo
.Decode(
CustomTypeInfo
.PayloadTypeId, encoded, out dynamicFlags, out tupleElementNames);
116
encoded =
CustomTypeInfo
.Encode(bytes, names);
118
CustomTypeInfo
.Decode(
CustomTypeInfo
.PayloadTypeId, encoded, out dynamicFlags, out tupleElementNames);
122
encoded =
CustomTypeInfo
.Encode(null, names);
123
CustomTypeInfo
.Decode(
CustomTypeInfo
.PayloadTypeId, encoded, out dynamicFlags, out tupleElementNames);
131
encoded =
CustomTypeInfo
.Encode(bytes, names);
133
CustomTypeInfo
.Decode(
CustomTypeInfo
.PayloadTypeId, encoded, out dynamicFlags, out tupleElementNames);
137
encoded =
CustomTypeInfo
.Encode(null, names);
138
CustomTypeInfo
.Decode(
CustomTypeInfo
.PayloadTypeId, encoded, out dynamicFlags, out tupleElementNames);
173
CustomTypeInfo
.Decode(
240
var dkmClrCustomTypeInfo =
CustomTypeInfo
.Create(new ReadOnlyCollection<byte>(payload), null);
241
Assert.Equal(
CustomTypeInfo
.PayloadTypeId, dkmClrCustomTypeInfo.PayloadTypeId);
246
CustomTypeInfo
.Decode(
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (12)
AttributeHelpers.cs (1)
32
return
CustomTypeInfo
.Create(dynamicFlags, tupleElementNames);
CustomTypeInfoTypeArgumentMap.cs (5)
71
CustomTypeInfo
.Decode(typeInfo.PayloadTypeId, typeInfo.Payload, out dynamicFlags, out tupleElementNames);
104
CustomTypeInfo
.Decode(
113
return
CustomTypeInfo
.Create(substitutedFlags, substitutedNames);
158
CustomTypeInfo
.GetTupleElementNameIfAny,
164
AppendRange(tupleElementNamesOpt, i, i + n,
CustomTypeInfo
.GetTupleElementNameIfAny, builder);
Formatter.TypeNames.cs (2)
34
CustomTypeInfo
.Decode(typeInfo.PayloadTypeId, typeInfo.Payload, out dynamicFlags, out tupleElementNames);
412
var name =
CustomTypeInfo
.GetTupleElementNameIfAny(tupleElementNames, nameIndex);
ResultProvider.cs (2)
960
elementTypeInfo =
CustomTypeInfo
.SkipOne(declaredTypeAndInfo.Info);
985
Debug.Assert(declaredTypeAndInfo.Info?.PayloadTypeId !=
CustomTypeInfo
.PayloadTypeId);
ResultProviderTestBase.cs (1)
42
var result =
CustomTypeInfo
.Create(DynamicFlagsCustomTypeInfo.ToBytes(builder), tupleElementNames: null);
TupleExpansion.cs (1)
297
var name =
CustomTypeInfo
.GetTupleElementNameIfAny(tupleElementNames, offset + index);