3.14 srcloc
On this page:
3.14.1 Data types
.format
.same-file
.before
.format
.same-file
.before
.after
3.14.2 Functions

3.14 srcloc

Usage:
include srcloc
import srcloc as ...

3.14.1 Data types

builtin
Fields
module-name :: Any
Methods

.format :: (show-file :: Any) -> Any

.same-file :: (other :: Any) -> Any

.before :: (other :: Any) -> Any

srcloc
Fields
source :: String
start-line :: Number
start-column :: Number
start-char :: Number
end-line :: Number
end-column :: Number
end-char :: Number
Methods

.format :: (show-file :: Any) -> Any

Returns either ’file: line, col’ or just ’line, col’, depending on the show-file flag

.same-file :: (other :: Srcloc) -> Any

.before :: (other :: Srcloc) -> Any

Returns true if this location comes before the other one, assuming they come from the same file

Shared Methods

.after :: (other :: Any) -> Any
3.14.2 Functions