// @target: es6 var methodName = "method"; var accessorName = "accessor"; class C { [methodName](v: string); [methodName](); [methodName](v?: string) { } }