OperandSyntax

data class OperandSyntax(operand: MathSyntax, parentheses: Boolean) : MathSyntax

Represents operand of a certain operator wrapped with parentheses or not.

Author

Iaroslav Postovalov

Constructors

Link copied to clipboard
fun OperandSyntax(operand: MathSyntax, parentheses: Boolean)

Properties

Link copied to clipboard
val operand: MathSyntax

The operand.

Link copied to clipboard
var parent: MathSyntax? = null

The parent node of this syntax node.

Link copied to clipboard
var parentheses: Boolean

Whether the operand should be wrapped with parentheses.

Sources

Link copied to clipboard