v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
json-parser.h
Go to the documentation of this file.
1
// Copyright 2019 the V8 project authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#ifndef V8_TORQUE_LS_JSON_PARSER_H_
6
#define V8_TORQUE_LS_JSON_PARSER_H_
7
8
#include <optional>
9
10
#include "
src/base/macros.h
"
11
#include "
src/torque/ls/json.h
"
12
#include "
src/torque/utils.h
"
13
14
namespace
v8::internal::torque::ls
{
15
16
struct
JsonParserResult
{
17
JsonValue
value
;
18
std::optional<TorqueMessage>
error
;
19
};
20
21
V8_EXPORT_PRIVATE
JsonParserResult
ParseJson
(
const
std::string& input);
22
23
}
// namespace v8::internal::torque::ls
24
25
#endif
// V8_TORQUE_LS_JSON_PARSER_H_
json.h
v8::internal::torque::ls
Definition
json-parser.cc:33
v8::internal::torque::ls::ParseJson
JsonParserResult ParseJson(const std::string &input)
Definition
json-parser.cc:181
macros.h
V8_EXPORT_PRIVATE
#define V8_EXPORT_PRIVATE
Definition
macros.h:460
v8::internal::torque::ls::JsonParserResult
Definition
json-parser.h:16
v8::internal::torque::ls::JsonParserResult::error
std::optional< TorqueMessage > error
Definition
json-parser.h:18
v8::internal::torque::ls::JsonParserResult::value
JsonValue value
Definition
json-parser.h:17
v8::internal::torque::ls::JsonValue
Definition
json.h:25
utils.h
src
torque
ls
json-parser.h
Generated on Sun Apr 6 2025 21:08:54 for v8 by
1.12.0