class Cosmo::AST::Expression::VarAssignment

Defined in:

cosmo/syntax/parser/expressions/var_assignment.cr

Constructors

Instance Method Summary

Instance methods inherited from class Cosmo::AST::Expression::Base

accept(visitor : Visitor(R)) forall R accept

Instance methods inherited from class Cosmo::AST::Node

end_location : Location | Nil end_location, end_location=(end_location : Location | Nil) end_location=, single_expression : Node single_expression, single_expression? : Node | Nil single_expression?, start_location : Location | Nil start_location, start_location=(start_location : Location | Nil) start_location=, token : Token token, visibility : Cosmo::AST::Visibility visibility, visibility=(visibility : Cosmo::AST::Visibility) visibility=

Constructor Detail

def self.new(var : Cosmo::AST::Expression::Var, value : Array(Cosmo::ValueType) | Bool | Char | Cosmo::AST::Expression::Base | Cosmo::Callable | Cosmo::Class | Cosmo::ClassInstance | Cosmo::Spread | Cosmo::Type | Float32 | Float64 | Hash(Cosmo::ValueType, Cosmo::ValueType) | Int128 | Int16 | Int32 | Int64 | Int8 | Range(Int128 | Int16 | Int32 | Int64 | Int8 | UInt16 | UInt32 | UInt64 | UInt8, Int128 | Int16 | Int32 | Int64 | Int8 | UInt16 | UInt32 | UInt64 | UInt8) | String | UInt16 | UInt32 | UInt64 | UInt8 | Nil) #

[View source]

Instance Method Detail

def accept(visitor : Visitor(R)) : R forall R #

[View source]
def to_s(indent : Int = 0) #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]
def token : Token #

[View source]
def value : Base | ValueType #

[View source]
def value=(value : Base | ValueType) #

[View source]
def var : Var #

[View source]