class

Myst::Printer

Inherits Reference / Object

Constructors

Class methods

Instance methods

replace(node : Node, new_node : Node)
Source
replacements

replacements is a Hash containing mappings from Node instances to other Nodes that should be used in their place when recursing through a program tree. This is useful for performing code rewrites programmatically without having to modify the original program.

Source
replacements=(replacements : Hash(UInt64, Node))

replacements is a Hash containing mappings from Node instances to other Nodes that should be used in their place when recursing through a program tree. This is useful for performing code rewrites programmatically without having to modify the original program.

Source
visit(node : Nop, io : IO)
Source
visit(node : Expressions, io : IO)
Source
visit(node : NilLiteral, io : IO)
Source
visit(node : BooleanLiteral, io : IO)
Source
visit(node : IntegerLiteral, io : IO)
Source
visit(node : FloatLiteral, io : IO)
Source
visit(node : StringLiteral, io : IO)
Source
visit(node : SymbolLiteral, io : IO)
Source
visit(node : ListLiteral, io : IO)
Source
visit(node : MapLiteral, io : IO)
Source
visit(node : Var, io : IO)
Source
visit(node : Const, io : IO)
Source
visit(node : Underscore, io : IO)
Source
visit(node : IVar, io : IO)
Source
visit(node : ValueInterpolation, io : IO)
Source
visit(node : SimpleAssign, io : IO)
Source
visit(node : Or, io : IO)
Source
visit(node : And, io : IO)
Source
visit(node : Splat, io : IO)
Source
visit(node : Not, io : IO)
Source
visit(node : Negation, io : IO)
Source
visit(node : Call, io : IO)
Source
visit(node : Param, io : IO)
Source
visit(node : ModuleDef, io : IO)
Source
visit(node : TypeDef, io : IO)
Source
visit(node : Def, io : IO)
Source
visit(node : Node, io : IO)

Catch all for unimplemented nodes

Source

Macros

make_visitor(node_type)
Source