getNodeType method

dynamic getNodeType([
  1. dynamic builder,
  2. dynamic output
])

Implementation

getNodeType([builder, output]) {
  var ifType = this.ifNode.getNodeType(builder);
  var elseType = this.elseNode.getNodeType(builder);

  if (builder.getTypeLength(elseType) > builder.getTypeLength(ifType)) {
    return elseType;
  }

  return ifType;
}