unexpectedSymbol function

String unexpectedSymbol(
  1. String symbol,
  2. String? source,
  3. int line,
  4. int column,
)

Implementation

String unexpectedSymbol(String symbol, String? source, int line, int column) {
  final sourceOrEmpty = source != null ? '$source:' : '';
  final positionStr = '$sourceOrEmpty$line:$column';
  return 'Unexpected symbol <$symbol> at $positionStr';
}