@reyalp/debug-utils
Version:
ts transformers for debug
34 lines (26 loc) • 737 B
text/typescript
// static code location, not runtime stack
export interface SourceLocation {
line: number
column: number
sympath: string
full: string // file:line sympath
file: SourceLocationFileInfo
symbols: SourceLocationSymbol[]
up: SourceLocation
}
export interface SourceLocationFileInfo {
ext: string // '.ts' | '.tsx'
name: string // without extension
fullname: string
rel_dir: string
rel_path: string
full_dir: string
full_path: string
}
export type SourceLocationSymbol = {
kind: 'var' | 'call' | 'class' | 'func' | 'elem' | 'prop' | 'expr' | 'namespace' | 'toplevel'
name: string
line: number
column: number
}
export declare const source_location: SourceLocation