Index

SourceLocation

MMO\client\scs · 1 symbol · generated 30 Sep 2026

class

SourceLocation

SourceLocation.php:8

Where a token/node/value came from in a .scs source. Attached to every AST node so any compile error can point back at the source that caused it (eSCS).

readonly class MMO\client\scs\SourceLocation implements Stringable
Namespace
MMO\client\scs
Implements
Stringable

Properties4

col

readonly
readonly int $col
Type
int

filename

readonly
readonly string $filename
Type
string

line

readonly
readonly int $line
Type
int

text

readonly
readonly string $text
Type
string

Methods2

__construct($filename, $line, $col, $text)

SourceLocation.php:9
function __construct(string $filename, int $line = 1, int $col = 1, string $text = '')
$filenamestring
$line = 1int
$col = 1int
$text = ''string