Builtins and Libraries
3.1 Global Utilities
3.2 Numbers
3.3 Strings
3.4 Booleans
3.5 Raw  Array
3.6 Tables
3.7 lists
3.8 sets
3.9 arrays
3.10 string-dict
3.11 option
3.12 pick
3.13 either
3.14 srcloc
3.15 pprint
3.16 s-exp
3.17 s-exp-structs
3.18 image-structs
3.19 image
3.20 world
3.21 gdrive-sheets
3.22 data-source
3.23 reactors
3.24 chart
3.25 plot
3.26 statistics
3.27 math
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