elementName method

String elementName(
  1. Vocabulary vocabulary,
  2. int a
)

Implementation

String elementName(Vocabulary vocabulary, int a) {
  if (a == Token.EOF) {
    return '<EOF>';
  } else if (a == Token.EPSILON) {
    return '<EPSILON>';
  } else {
    return vocabulary.getDisplayName(a);
  }
}