Skip to content

Add a spanned method for automatically wrapping the parser result in a Span #640

@TheOnlyTails

Description

@TheOnlyTails

This would be a very simple utility method I feel is missing right now, as a shorthand:

parser.map_extra(|it, e| (it, e.span()))
// into
parser.spanned()

It's not essential or anything, but it'll definitely be nice to have.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiA problem with the design of an API featureenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions