debuginfo: Implemented trait_method branch in create_function_metadata().