def patternDefCode(node):
    """ Change pattern line node value to pattern binding code:
		~ Name pattern.
		~ Flag it as recursive if ever.
		~ Special case of name patterns: must be cloned. """
    name, pattern = node
    name = node.name = name.value
    node.isRecursive = pattern.isRecursive
    format, transform = pattern.format, pattern.transform
    BIND = '**=' if node.isRecursive else '='
    if pattern.isName:
        print('name pattern format', format)
        node.value = "%s %s Clone(%s, expression='%s', name='%s')%s" % (name,
            BIND, format, format, name, transform)
    else:
        format_ = format[:-1]
        node.value = "%s %s %s, name='%s')%s" % (name, BIND, format_, name,
            transform)
