Added Module type display and better error message if no type is found

This commit is contained in:
Ozzie Gooen 2022-06-17 07:42:44 -07:00
parent f156840d65
commit 8e7756fe35

View File

@ -251,8 +251,20 @@ const SquiggleItem: React.FC<SquiggleItemProps> = ({
</VariableBox>
);
}
case "module": {
return (
<VariableBox heading="Module" showTypes={showTypes}>
<span className="text-slate-600 font-semibold">Internal Module</span>
</VariableBox>
);
}
default: {
return <>Should be unreachable</>;
return (
<>
<span>No display for type: </span>{" "}
<span className="font-semibold text-slate-600">{expression.tag}</span>
</>
);
}
}
};