Types
Source
Source type {
file: Str?,
line: Int?,
column: Int?,
position: Int?
}
Source location information for a variable or function.
Example
src source(my-function)
src.file // "src/myapp/handlers.hot"
src.line // 42
src.column // 1
src.position // 1024 (byte offset)
Functions
source core
fn (lazy var: Any): Source
Get source file and position information for var.
Example
src source(my-function)
// src.file = "src/myapp/handlers.hot"
// src.line = 42
// src.column = 1
get
fn (lazy var: Any): Any
Get metadata attached to var.
Example
// Given a function with metadata:
// greet meta {"doc": "Say hello", "core": true}
// fn (name) { ... }
::hot::meta/get(greet)
// {"doc": "Say hello", "core": true}