forked from OSchip/llvm-project
parent
5b5935d17d
commit
bbb8eb58f9
|
@ -29,7 +29,7 @@ JSONParser::JSONParser(StringRef Input, SourceMgr *SM)
|
||||||
|
|
||||||
JSONValue *JSONParser::parseRoot() {
|
JSONValue *JSONParser::parseRoot() {
|
||||||
if (Position != InputBuffer->getBuffer().begin())
|
if (Position != InputBuffer->getBuffer().begin())
|
||||||
report_fatal_error("Cannot resuse JSONParser.");
|
report_fatal_error("Cannot reuse JSONParser.");
|
||||||
if (isWhitespace())
|
if (isWhitespace())
|
||||||
nextNonWhitespace();
|
nextNonWhitespace();
|
||||||
if (errorIfAtEndOfFile("'[' or '{' at start of JSON text"))
|
if (errorIfAtEndOfFile("'[' or '{' at start of JSON text"))
|
||||||
|
|
Loading…
Reference in New Issue