class Myst::Require

Overview

A require expression. Requires are the primary mechanism for loading code from other source files. Files will only be loaded once. If another require appears that references the same file, it will not be loaded again. The result of a require statement will be a boolean indicating whether the code was loaded.

'require' string

Defined in:

lib/myst/src/myst/syntax/ast.cr
ext/myst/required_tree.cr

Instance Method Summary

Instance Method Detail

def accept_children(visitor) #

[View source]
def required_tree : Node | Nil #

def required_tree=(required_tree : Node | Nil) #

[View source]
def required_tree? : Node | Nil | Nil #