errorEof function
Implementation
JSONASTException errorEof(
String input,
List<dynamic> tokenList,
Settings settings,
) {
final loc = (tokenList.isNotEmpty
? tokenList[tokenList.length - 1].loc.end as Loc
: Loc(line: 1, column: 1));
return JSONASTException(
unexpectedEnd(),
input,
settings.source,
loc.line,
loc.column,
);
}