OperatorNode constructor

OperatorNode(
  1. dynamic op,
  2. dynamic aNode,
  3. dynamic bNode, [
  4. List? params,
])

Implementation

OperatorNode(op, aNode, bNode, [List? params]) : super() {
  generateLength = 2;

  this.op = op;

  if (params != null && params.length > 0) {
    var finalBNode = bNode;

    for (var i = 0; i < params.length; i++) {
      finalBNode = new OperatorNode(op, finalBNode, params[i]);
    }

    bNode = finalBNode;
  }

  this.aNode = aNode;
  this.bNode = bNode;
}