function getCombinedNodeFlags(node) {
        node = walkUpBindingElementsAndPatterns(node);
        var flags = node.flags;
        if (node.kind === 211 /* VariableDeclaration */) {
            node = node.parent;
        }
        if (node && node.kind === 212 /* VariableDeclarationList */) {
            flags |= node.flags;
            node = node.parent;
        }
        if (node && node.kind === 193 /* VariableStatement */) {
            flags |= node.flags;
        }
        return flags;
    }