File tree 2 files changed +8
-2
lines changed
observatory/lib/src/service
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -530,6 +530,12 @@ static InstancePtr CreateTypeMirror(const AbstractType& type) {
530
530
if (type.IsFunctionType ()) {
531
531
return CreateFunctionTypeMirror (type);
532
532
}
533
+ if (type.IsRecordType ()) {
534
+ const Class& cls =
535
+ Class::Handle (IsolateGroup::Current ()->object_store ()->record_class ());
536
+ return CreateClassMirror (cls, AbstractType::Handle (cls.DeclarationType ()),
537
+ Bool::False (), Object::null_instance ());
538
+ }
533
539
if (type.HasTypeClass ()) {
534
540
const Class& cls = Class::Handle (type.type_class ());
535
541
// Handle void and dynamic types.
Original file line number Diff line number Diff line change @@ -2782,9 +2782,9 @@ M.InstanceKind stringToInstanceKind(String s) {
2782
2782
return M .InstanceKind .typeRef;
2783
2783
case 'ReceivePort' :
2784
2784
return M .InstanceKind .receivePort;
2785
- case '_RecordType ' :
2785
+ case 'RecordType ' :
2786
2786
return M .InstanceKind .recordType;
2787
- case '_Record ' :
2787
+ case 'Record ' :
2788
2788
return M .InstanceKind .record;
2789
2789
case 'Finalizer' :
2790
2790
return M .InstanceKind .finalizer;
You can’t perform that action at this time.
0 commit comments