wp-includes/comment.php:4590Removes the current token, keeping any text it wraps.
public function remove_token(): void { // Always called after next_tag() returned true, so the bookmark is set. $this->set_bookmark( 'here' ); $span = $this->bookmarks['here']; $this->lexical_updates[] = new WP_HTML_Text_Replacement( $span->start, $span->length, '' ); }src/wp-includes/comment.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.