refactor(ts-estree): remove dead legacy code (#153)

This commit is contained in:
Armano
2019-01-27 18:25:35 +01:00
committed by James Henry
parent c8c5a6d4e5
commit e67f85deac
+1 -15
View File
@@ -796,21 +796,7 @@ export default function convert(config: ConvertConfig): ESTreeNode | null {
}
case SyntaxKind.ComputedPropertyName:
if (parent!.kind === SyntaxKind.ObjectLiteralExpression) {
// TODO: ComputedPropertyName has no name field
Object.assign(result, {
type: AST_NODE_TYPES.Property,
key: convertChild((node as any).name),
value: convertChild((node as any).name),
computed: false,
method: false,
shorthand: true,
kind: 'init'
});
} else {
return convertChild(node.expression);
}
break;
return convertChild(node.expression);
case SyntaxKind.PropertyDeclaration: {
const isAbstract = hasModifier(SyntaxKind.AbstractKeyword, node);