Skip to content

[Feature] - Add a constructor that accepts only a start position to Ubiquity.NET.Runtime.Utils.SourceLocation #293

Description

@smaillet

Is your feature request related to a problem? Please describe.
Ubiquity.NET.Runtime.Utils.SourceLocation is missing a constructor that accepts only a start position. While the type handles a start only position, it has no constructor for that. This forces callers to construct using a constructor that duplicates the values EVERY time. This is
no big deal in small samples, but a HUGE PITA when used to convert from a single point representation (like LINQ to XML).

Describe the solution you'd like
Add a new forwarding constructor to SourceLocation that accepts only a starting point.

Describe alternatives you've considered
Leave it as-is and suffer the pain...

Additional context
This was found by real world use of the type in parsing/validating XML data

Metadata

Metadata

Assignees

No one assigned

    Fields

    No fields configured for Feature.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions