Skip to content

figure out how to separate this like the rest of the shortcuts (see shortcuts.kt... #44

@github-actions

Description

@github-actions

figure out how to separate this like the rest of the shortcuts (see shortcuts.kt)

https://github.com/DetachHead/xpath-builder/blob/e152e5d3dcc52e1d33991d37f805936062d1e359/src/commonMain/kotlin/LocationPath.kt#L74

     */
    public operator fun Axis.invoke(node: String): LocationPath = this(NodeTest(node))

    /**
     * shortcut for an [ExpressionBuilder.position] predicate
     */
    //TODO: figure out how to separate this like the rest of the shortcuts (see shortcuts.kt)
    public operator fun LocationPath.get(index: Int): LocationPath = this[{ position() equal index.toString() }]
}
 No newline at end of file
ndex 9c24f8b..3cc28c3 100644
++ b/src/commonMain/kotlin/NodeTest.kt

abcb089532666e6e01afadeb5068962d7ead7801

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions