class Crystal::TypeDeclaration
inherits Crystal::ASTNode
¶
Class methods¶
Methods¶
#==(other : self)
¶
(other : self)
Returns true
if this reference is the same as other. Invokes same?
.
#discarded=(discarded)
¶
(discarded)
Whether a class variable assignment needs to be skipped because it was replaced with another initializer
class Foo
@@x : Int32 = 1 # This will never execute
@@x : Int32 = 2
end
#discarded? : Bool
¶
: Bool
Whether a class variable assignment needs to be skipped because it was replaced with another initializer
class Foo
@@x : Int32 = 1 # This will never execute
@@x : Int32 = 2
end
#hash(hasher)
¶
(hasher)
#interpret(method : String, args : Array(ASTNode), named_args : Hash(String, ASTNode)?, block : Crystal::Block?, interpreter : Crystal::MacroInterpreter, name_loc : Location?)
¶
(method : String, args : Array(ASTNode), named_args : Hash(String, ASTNode)?, block : Crystal::Block?, interpreter : Crystal::MacroInterpreter, name_loc : Location?)