hasParser method

bool hasParser (Symbol symbol, { bool allowQueued: true })

Does parser with symbol as its associated symbol exist?

If allowQueued is true, returns true if there is such a parser in queue.

Implementation

static bool hasParser(Symbol symbol, {bool allowQueued = true}) {
  return parsers.containsKey(symbol) || (allowQueued && queuedParsers.contains(symbol));
}