slightning-coco-widget
Version:
SLIGHTNING 的 CoCo 控件框架。
14 lines (13 loc) • 463 B
JavaScript
import { addTransformMethodsThrows } from "./add-transform-methods-throws";
import { traverseTypes } from "./utils";
export function transformMethodsThrows(types, widget) {
[types, widget] = addTransformMethodsThrows(types, widget);
traverseTypes(types, {
MethodTypes(node) {
if (node.value.throws != null && !(node.value.throws.isVoid())) {
node.remove();
}
}
});
return [types, widget];
}