TextResourceOrigin

Origin for an item loaded from a text resource. Provides access to the original Resource that loaded the text and a Location within it. If the provided resource provides an Origin (e.g. it is an OriginTrackedResource), then it will be used as the origin parent.

Author

Madhura Bhave

Phillip Webb

Since

2.0.0

See also

Constructors

Link copied to clipboard
constructor(resource: Resource, location: TextResourceOrigin.Location)

Types

Link copied to clipboard
class Location
A location (line and column number) within the resource.

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun equals(obj: Any): Boolean
Link copied to clipboard
open fun from(source: Any): Origin
Find the Origin that an object originated from.
Link copied to clipboard
open fun getParent(): Origin
Return the parent origin for this instance if there is one.
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun parentsFrom(source: Any): List<Origin>
Find the parents of the Origin that an object originated from.
Link copied to clipboard
open fun toString(): String