Skip to content

Locator

[Source]

Encapsulation of the bundle dependency's locator string, parsed into distinct fields. locator := repo_path[.vcs_suffix][/bundle_path]

class val Locator is
  Hashable ref,
  Stringable box

Implements


Constructors

create

[Source]

new val create(
  loc: String val)
: Locator val^

Parameters

Returns


Public fields

let repo_path: String val

[Source]


let vcs_suffix: String val

[Source]


let bundle_path: String val

[Source]


Public Functions

path

[Source]

Returns a unique name for this locator without the vcs suffix.

fun box path()
: String val

Returns


flat_name

[Source]

fun box flat_name()
: String val

Returns


string

[Source]

Returns the full string for of this locator.

fun box string()
: String iso^

Returns


compare

[Source]

fun box compare(
  that: Locator box)
: (Less val | Equal val | Greater val)

Parameters

Returns


hash

[Source]

fun box hash()
: USize val

Returns


is_vcs

[Source]

fun box is_vcs()
: Bool val

Returns


is_local

[Source]

fun box is_local()
: Bool val

Returns


is_remote_vcs

[Source]

fun box is_remote_vcs()
: Bool val

Returns


is_local_vcs

[Source]

fun box is_local_vcs()
: Bool val

Returns


is_local_direct

[Source]

fun box is_local_direct()
: Bool val

Returns