abstract class Cosmo::AST::Expression::Literal
Direct Known Subclasses
- Cosmo::AST::Expression::BigIntLiteral
- Cosmo::AST::Expression::BooleanLiteral
- Cosmo::AST::Expression::CharLiteral
- Cosmo::AST::Expression::FloatLiteral
- Cosmo::AST::Expression::IntLiteral
- Cosmo::AST::Expression::NoneLiteral
- Cosmo::AST::Expression::StringLiteral
Defined in:
cosmo/syntax/parser/expressions/literals.crConstructors
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(value : Bool | Char | Float32 | Float64 | Int128 | Int16 | Int32 | Int64 | Int8 | String | UInt16 | UInt32 | UInt64 | UInt8 | Nil, token : Cosmo::Token)
#