mirror of
https://github.com/openharmony/third_party_typescript_eslint.git
synced 2026-07-01 21:24:00 -04:00
refactor(ts-estree): remove dead legacy code (#153)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user