Index

ImportNode

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

class

ImportNode

ImportNode.php:10

@import "file.scs" -- resolved at compile time.

class MMO\client\scs\nodes\ImportNode extends MMO\client\scs\nodes\Node
Namespace
MMO\client\scs\nodes
Extends
Node
The imported file keeps its own namespace (`@use lib::center`), unless the import renames it (`as ui`) or merges it into the importing file (`as self`, and `@use center` then works unqualified).

Properties3

merge

bool $merge
Type
bool

Methods1

__construct($path, $alias, $merge)

ImportNode.php:16
function __construct(string $path, ?string $alias = null, bool $merge = false)
$pathstring
$alias = nullnull | stringthe namespace the file is registered under, null for its own
$merge = falsebooltrue for as self: the file's definitions join the importing file's namespace
Inherited members (3)
PropertiesDeclared byDescription
locationNode
wsNode
MethodsDeclared byDescription
at($location, $ws)Node