|
|
@ -76,7 +76,7 @@ export function ClassBody(node, context) {
|
|
|
|
fields.set(key, ['prop']);
|
|
|
|
fields.set(key, ['prop']);
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
field.push('prop');
|
|
|
|
e.duplicate_class_field(child, key);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (child.type === 'MethodDefinition') {
|
|
|
|
if (child.type === 'MethodDefinition') {
|
|
|
@ -89,6 +89,9 @@ export function ClassBody(node, context) {
|
|
|
|
fields.set(key, [child.kind]);
|
|
|
|
fields.set(key, [child.kind]);
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (field.includes(child.kind) || field.includes('prop')) {
|
|
|
|
|
|
|
|
e.duplicate_class_field(child, key);
|
|
|
|
|
|
|
|
}
|
|
|
|
if (child.kind === 'get') {
|
|
|
|
if (child.kind === 'get') {
|
|
|
|
if (field.length === 1 && field[0] === 'set') {
|
|
|
|
if (field.length === 1 && field[0] === 'set') {
|
|
|
|
field.push('get');
|
|
|
|
field.push('get');
|
|
|
|