Binary class

Represents a binary expression, i.e. left operator right.

// 2 + 3
Binary('+', LiteralPrimitive(2), LiteralPrimitive(3))
Inheritance

Constructors

Binary(String operator, AST left, AST right)

Properties

hashCode int
The hash code for this object.
no setterinherited
left AST
Left-hand expression/
final
operator String
A literal result of parsing a binary operator.
final
Right-hand-expression
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
visit<R, C, CO extends C>(AstVisitor<R, C?> visitor, [CO? context]) → R
Given a visitor and optionally a context, produce a return value R.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited