Add an `fn` snippet.