in src/framework/Assembly.tsx [149:162]
constructor() {
// 校验types是否使用了无效的编辑器名字
for (let morphName in this.morph) {
for (let typeName in this.morph[morphName]) {
if (!this.types[typeName]) {
throw SyntaxError(`类型${typeName}未定义`);
}
const viewerName = this.morph[morphName][typeName];
if (!this.viewers[viewerName]) {
throw SyntaxError(`视图${viewerName}未定义`);
}
}
}
}