function declareFunction( node ) {
		var i;

		node.locals = node.locals || [];
		for ( i = 0; i < node.params.length; i++ ) {
			declarationPattern( node.params[ i ], node );
		}
		if ( node.id ) {
			appendUnique( node.locals, node.id.name );
			appendUnique( declarations, node.id );
		}
	}
Resolves identifiers arising from a function declaration, such as function parameters and the function name.

@private
@param {Node} node - function declaration AST node