abstract class Lucid::Compiler::NamespaceDef
- Lucid::Compiler::NamespaceDef
- Lucid::Compiler::Node
- Reference
- Object
Direct Known Subclasses
Defined in:
compiler/node.crConstructors
Instance Method Summary
- #aliases : Array(Alias)
- #aliases=(aliases : Array(Alias))
- #body : Array(Node)
- #body=(body : Array(Node))
- #constants : Array(Node)
- #constants=(constants : Array(Node))
- #extends : Array(Extend)
- #extends=(extends : Array(Extend))
- #free_vars : Array(Node)
- #free_vars=(free_vars : Array(Node))
- #includes : Array(Include)
- #includes=(includes : Array(Include))
- #methods : Array(Def)
- #methods=(methods : Array(Def))
- #name : Node
- #name=(name : Node)
-
#pretty_print(pp : PrettyPrint) : Nil
Pretty prints
self
into the given printer. - #private=(private __arg0 : Bool)
- #private? : Bool
- #superclass : Node | Nil
- #superclass=(superclass : Node | Nil)
-
#to_s(io : IO) : Nil
Appends a short String representation of this object which includes its class name and its object address.
-
#types : Array(Node)
property annotations : Array(Annotation)
-
#types=(types : Array(Node))
property annotations : Array(Annotation)
Instance methods inherited from class Lucid::Compiler::Node
at(loc : Location) : self
at,
loc : Location
loc,
loc=(loc : Location)
loc=,
pretty_print(pp : PrettyPrint) : Nil
pretty_print,
to_s(io : IO) : Nil
to_s
Constructor methods inherited from class Lucid::Compiler::Node
new
new
Constructor Detail
def self.new(name : Node, *, free_vars : Array(Node) = [] of Node, superclass : Node | Nil = nil, private __arg0 : Bool = false, includes : Array(Include) = [] of Include, extends : Array(Extend) = [] of Extend, constants : Array(Node) = [] of Node, aliases : Array(Alias) = [] of Alias, types : Array(Node) = [] of Node, methods : Array(Def) = [] of Def, body : Array(Node) = [] of Node)
#
Instance Method Detail
def pretty_print(pp : PrettyPrint) : Nil
#
Description copied from class Object
Pretty prints self
into the given printer.
By default appends a text that is the result of invoking
#inspect
on self
. Subclasses should override
for custom pretty printing.
def to_s(io : IO) : Nil
#
Description copied from class Reference
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>