class Drizzle::AST::PrefixExpression

Overview

Node class representing a Prefix Expression, such as unary -, or not

Defined in:

drizzle/ast/prefix_expression.cr

Constructors

Instance Method Summary

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

literal : String literal, to_s : String to_s

Constructor Detail

def self.new(token, operator, right) #

[View source]

Instance Method Detail

def literal : String #

[View source]
def operator : String #

The prefix operator (not, -)


[View source]

The expression that is bound by the prefix operator


[View source]
def to_s : String #

[View source]
def token : Drizzle::Token #

The token that caused the generation of this node


[View source]