Home
last modified time | relevance | path

Searched refs:JSONReader (Results 1 – 11 of 11) sorted by relevance

/third_party/gn/src/base/json/
Djson_reader.cc18 const int JSONReader::kStackMaxDepth = 200;
21 static_assert(JSONReader::JSON_PARSE_ERROR_COUNT < 1000,
24 const char JSONReader::kInvalidEscape[] = "Invalid escape sequence.";
25 const char JSONReader::kSyntaxError[] = "Syntax error.";
26 const char JSONReader::kUnexpectedToken[] = "Unexpected token.";
27 const char JSONReader::kTrailingComma[] = "Trailing comma not allowed.";
28 const char JSONReader::kTooMuchNesting[] = "Too much nesting.";
29 const char JSONReader::kUnexpectedDataAfterRoot[] =
31 const char JSONReader::kUnsupportedEncoding[] =
33 const char JSONReader::kUnquotedDictionaryKey[] =
[all …]
Djson_parser.cc63 error_code_(JSONReader::JSON_NO_ERROR), in JSONParser()
66 CHECK_LE(max_depth, JSONReader::kStackMaxDepth); in JSONParser()
77 error_code_ = JSONReader::JSON_NO_ERROR; in Parse()
84 ReportError(JSONReader::JSON_TOO_LARGE, 0); in Parse()
100 ReportError(JSONReader::JSON_UNEXPECTED_DATA_AFTER_ROOT, 1); in Parse()
107 JSONReader::JsonParseError JSONParser::error_code() const { in error_code()
113 JSONReader::ErrorCodeToString(error_code_)); in GetErrorMessage()
321 ReportError(JSONReader::JSON_UNEXPECTED_TOKEN, 1); in ParseToken()
328 ReportError(JSONReader::JSON_UNEXPECTED_TOKEN, 1); in ConsumeDictionary()
334 ReportError(JSONReader::JSON_TOO_MUCH_NESTING, 0); in ConsumeDictionary()
[all …]
Djson_parser.h44 JSONParser(int options, int max_depth = JSONReader::kStackMaxDepth);
54 JSONReader::JsonParseError error_code() const;
205 void ReportError(JSONReader::JsonParseError code, int column_adjust);
235 JSONReader::JsonParseError error_code_;
Djson_reader.h57 class JSONReader {
88 JSONReader(int options = JSON_PARSE_RFC, int max_depth = kStackMaxDepth);
90 ~JSONReader();
/third_party/gn/src/gn/
Dohos_components.cc114 …std::unique_ptr<base::Value> components_value = base::JSONReader::ReadAndReturnError(components_co… in LoadComponentInfo()
291 std::unique_ptr<base::Value> override_value = base::JSONReader::ReadAndReturnError(override_map, in LoadOverrideMap()
318 std::unique_ptr<base::Value> content_value = base::JSONReader::ReadAndReturnError(content, in LoadToolchain()
Dohos_components_mapping.cc64 std::unique_ptr<base::Value> mapping = base::JSONReader::ReadAndReturnError(mappingContent, in LoadMappingFile()
Dinput_conversion.cc188 std::unique_ptr<base::Value> value = base::JSONReader::ReadAndReturnError( in ParseJSON()
Danalyzer.cc126 std::unique_ptr<base::Value> value = base::JSONReader::ReadAndReturnError( in JSONToInputs()
Dohos_components_checker.cc189 std::unique_ptr<base::Value> whitelist = base::JSONReader::ReadAndReturnError(whitelistContent, in LoadWhitelist()
Dcommand_format.cc1261 base::JSONReader reader; in FormatJsonToString()
/third_party/node/tools/inspector_protocol/lib/
Dbase_string_adapter_cc.template139 std::unique_ptr<base::Value> value = base::JSONReader::ReadDeprecated(message);