function isLiteralNameOfPropertyDeclarationOrIndexAccess(node) {
        if (node.kind === 9 /* StringLiteral */ || node.kind === 8 /* NumericLiteral */) {
            switch (node.parent.kind) {
                case 141 /* PropertyDeclaration */:
                case 140 /* PropertySignature */:
                case 245 /* PropertyAssignment */:
                case 247 /* EnumMember */:
                case 143 /* MethodDeclaration */:
                case 142 /* MethodSignature */:
                case 145 /* GetAccessor */:
                case 146 /* SetAccessor */:
                case 218 /* ModuleDeclaration */:
                    return node.parent.name === node;
                case 167 /* ElementAccessExpression */:
                    return node.parent.argumentExpression === node;
            }
        }
        return false;
    }
Returns true if node is a name of an object literal property, e.g. "a" in x = { "a": 1 }