public SourceRange( startLine as Long = 0, startColumn as Long = 0, endLine as Long = 0, endColumn as Long = 0 )
Constructs a SourceRange from zero-based start/end line and column coordinates.
| Parameter | Description |
|---|---|
startLine | Zero-based start line index. |
startColumn | Zero-based start column offset. |
endLine | Zero-based inclusive end line index. |
endColumn | Zero-based end column offset. |
import klyn.code.ast r = SourceRange(0, 4, 8, 0) assert r.startLine == 0