parse

fun parse(reference: String): PackageReference

Parses a reference in the @<scope>/<name>:<version> form.

Return

the parsed reference

Parameters

reference

text to parse

Throws

if reference does not match the syntax, or if any of its parts is not a valid path segment