def patternCode(node):
    """ Change pattern definition to pattern expr code:
		~ Append possible transforms.
		~ Flag it as recursive if ever.
		~ (Original format expr is already given in call).
		Note: This will be used for single pattern generation. """
    format, transform = node
    node.isRecursive = transform.isRecursive
    node.isName = format.tag == 'name'
    format, transform = format.value, transform.value
    node.format, node.transform = format, transform
    node.value = '%s%s' % (format, transform)
