Skip to content

Code Review: Xml2XPathObject #5

@redvers

Description

@redvers

Xml2XPathObject

  • Enum/value separation. The match ptr.xmltype branches like | XPathTypeBoolean() => XPathTypeBoolean ; return … suggest those patterns may be vestigial (the first part is never used). If so, drop the XPathTypeBoolean ; side‑effect and just return (ptr.boolval == 1).

  • Document unsupported cases. You currently return None for Point, Range, LocationSet, Users, XsltTree. That’s a reasonable MVP, but:

  • Add a comment at the type alias site (Xml2XPathResult) noting that those XPath types collapse to None.

  • Consider logging (debug) when encountering unsupported types to help debugging.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions