composeComp method

void composeComp(
  1. StringBuffer buffer,
  2. Component comp
)

Implementation

void composeComp(StringBuffer buffer, Component comp) {
  if (comp is Factor) {
    composeFactor(buffer, comp);
  } else if (comp is Symbol) {
    composeSymbol(buffer, comp);
  } else if (comp is Term) {
    buffer.write('(');
    composeTerm(buffer, comp);
    buffer.write(')');
  } else {
    buffer.write('?');
  }
}