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) {
    composeTerm(buffer, comp);
  } else {
    buffer.write('?');
  }
}