Home
last modified time | relevance | path

Searched refs:parser_ (Results 1 – 25 of 47) sorted by relevance

12

/third_party/ninja/src/
Ddepfile_parser_test.cc22 DepfileParser parser_; member
28 return parser_.Parse(&input_, err); in Parse()
37 ASSERT_EQ(1u, parser_.outs_.size()); in TEST_F()
38 EXPECT_EQ("build/ninja.o", parser_.outs_[0].AsString()); in TEST_F()
39 EXPECT_EQ(4u, parser_.ins_.size()); in TEST_F()
58 ASSERT_EQ(1u, parser_.outs_.size()); in TEST_F()
59 EXPECT_EQ("foo.o", parser_.outs_[0].AsString()); in TEST_F()
60 EXPECT_EQ(2u, parser_.ins_.size()); in TEST_F()
70 ASSERT_EQ(1u, parser_.outs_.size()); in TEST_F()
71 EXPECT_EQ("foo.o", parser_.outs_[0].AsString()); in TEST_F()
[all …]
/third_party/node/src/
Dnode_http_parser.cc333 if (parser_.type == HTTP_REQUEST) in on_headers_complete()
341 if (parser_.type == HTTP_REQUEST) { in on_headers_complete()
343 Uint32::NewFromUnsigned(env()->isolate(), parser_.method); in on_headers_complete()
347 if (parser_.type == HTTP_RESPONSE) { in on_headers_complete()
349 Integer::New(env()->isolate(), parser_.status_code); in on_headers_complete()
354 argv[A_VERSION_MAJOR] = Integer::New(env()->isolate(), parser_.http_major); in on_headers_complete()
355 argv[A_VERSION_MINOR] = Integer::New(env()->isolate(), parser_.http_minor); in on_headers_complete()
358 should_keep_alive = llhttp_should_keep_alive(&parser_); in on_headers_complete()
363 argv[A_UPGRADE] = Boolean::New(env()->isolate(), parser_.upgrade); in on_headers_complete()
417 llhttp_set_error_reason(&parser_, "HPE_JS_EXCEPTION:JS Exception"); in on_body()
[all …]
/third_party/flatbuffers/src/
Didl_gen_json_schema.cpp161 return parser_.opts.indent_step >= 0 ? "\n" : ""; in NewLine()
165 const auto num_spaces = indent * std::max(parser_.opts.indent_step, 0); in Indent()
171 if (parser_.root_struct_def_ == nullptr) { return false; } in generate()
177 for (auto e = parser_.enums_.vec.cbegin(); e != parser_.enums_.vec.cend(); in generate()
191 for (auto s = parser_.structs_.vec.cbegin(); in generate()
192 s != parser_.structs_.vec.cend(); ++s) { in generate()
257 if (*s != parser_.structs_.vec.back()) { closeType.append(","); } in generate()
264 GenFullName(parser_.root_struct_def_) + "\"" + NewLine(); in generate()
271 const auto file_path = GeneratedFileName(path_, file_name_, parser_.opts); in save()
Didl_gen_grpc.cpp227 : parser_(parser), file_name_(file_name), language_(language) {} in FlatBufFile()
250 return parser_.current_namespace_->GetFullyQualifiedName(""); in package()
254 return parser_.current_namespace_->components; in package_parts()
282 return static_cast<int>(parser_.services_.vec.size()); in service_count()
287 new FlatBufService(parser_.services_.vec[i])); in service()
297 const Parser &parser_; member in flatbuffers::FlatBufFile
307 parser_(parser), in GoGRPCGenerator()
312 FlatBufFile file(parser_, file_name_, FlatBufFile::kLanguageGo); in generate()
317 const Definition *def = parser_.services_.vec[i]; in generate()
331 const Parser &parser_; member in flatbuffers::GoGRPCGenerator
[all …]
Didl_gen_rust.cpp345 for (auto ns_it = parser_.namespaces_.begin(); in generate()
346 ns_it != parser_.namespaces_.end(); ++ns_it) { in generate()
350 for (auto it = parser_.enums_.vec.begin(); it != parser_.enums_.vec.end(); in generate()
360 for (auto it = parser_.structs_.vec.begin(); in generate()
361 it != parser_.structs_.vec.end(); ++it) { in generate()
371 for (auto it = parser_.structs_.vec.begin(); in generate()
372 it != parser_.structs_.vec.end(); ++it) { in generate()
378 if (parser_.opts.generate_object_based_api) { in generate()
385 if (parser_.root_struct_def_) { in generate()
386 auto &struct_def = *parser_.root_struct_def_; in generate()
[all …]
Didl_gen_java.cpp51 cur_name_space_ = parser_.current_namespace_; in generate()
53 for (auto it = parser_.enums_.vec.begin(); it != parser_.enums_.vec.end(); in generate()
57 if (!parser_.opts.one_file) cur_name_space_ = enum_def.defined_namespace; in generate()
59 if (parser_.opts.one_file) { in generate()
68 for (auto it = parser_.structs_.vec.begin(); in generate()
69 it != parser_.structs_.vec.end(); ++it) { in generate()
72 if (!parser_.opts.one_file) in generate()
75 if (parser_.opts.one_file) { in generate()
84 if (parser_.opts.one_file) { in generate()
85 return SaveType(file_name_, *parser_.current_namespace_, one_file_code, in generate()
[all …]
Didl_gen_cpp.cpp205 for (auto it = parser_.native_included_files_.begin(); in GenIncludeDependencies()
206 it != parser_.native_included_files_.end(); ++it) { in GenIncludeDependencies()
211 for (auto it = parser_.included_files_.begin(); in GenIncludeDependencies()
212 it != parser_.included_files_.end(); ++it) { in GenIncludeDependencies()
247 if (!parser_.root_struct_def_) { in generate_bfbs_embed()
251 auto &struct_def = *parser_.root_struct_def_; in generate_bfbs_embed()
258 if (parser_.opts.gen_nullable) { in generate_bfbs_embed()
268 BufferToHexText(parser_.builder_.GetBufferPointer(), in generate_bfbs_embed()
269 parser_.builder_.GetSize(), 105, " ", ""); in generate_bfbs_embed()
275 NumToString(parser_.builder_.GetSize()) + "] = {"; in generate_bfbs_embed()
[all …]
Didl_gen_swift.cpp146 for (auto it = parser_.enums_.vec.begin(); it != parser_.enums_.vec.end(); in generate()
152 for (auto it = parser_.structs_.vec.begin(); in generate()
153 it != parser_.structs_.vec.end(); ++it) { in generate()
161 for (auto it = parser_.structs_.vec.begin(); in generate()
162 it != parser_.structs_.vec.end(); ++it) { in generate()
166 if (parser_.opts.generate_object_based_api) { in generate()
172 const auto filename = GeneratedFileName(path_, file_name_, parser_.opts); in generate()
191 if (parser_.opts.generate_object_based_api) code_ += ", NativeObject\\"; in GenStructReader()
234 if (parser_.opts.generate_object_based_api) in GenStructReader()
286 if (parser_.opts.mutable_buffer && !IsStruct(field.value.type)) in GenMutableStructReader()
[all …]
Didl_gen_python.cpp273 if (parser_.opts.include_dependence_headers) { in GetStructFieldOfTable()
310 } else if (parser_.opts.include_dependence_headers) { in GetUnionField()
352 if (parser_.opts.include_dependence_headers) { in GetMemberOfVectorOfStruct()
427 auto nested_root = parser_.LookupStruct(nested->constant); in GetVectorAsNestedFlatbuffer()
430 parser_.current_namespace_->GetFullyQualifiedName(nested->constant); in GetVectorAsNestedFlatbuffer()
431 nested_root = parser_.LookupStruct(qualified_name); in GetVectorAsNestedFlatbuffer()
639 auto nested_root = parser_.LookupStruct(nested->constant); in BuildVectorOfTableFromBytes()
642 parser_.current_namespace_->GetFullyQualifiedName(nested->constant); in BuildVectorOfTableFromBytes()
643 nested_root = parser_.LookupStruct(qualified_name); in BuildVectorOfTableFromBytes()
776 for (auto it = parser_.file_identifier_.begin(); in GenHasFileIdentifier()
[all …]
Didl_gen_lobster.cpp359 for (auto it = parser_.enums_.vec.begin(); it != parser_.enums_.vec.end(); in generate()
364 for (auto it = parser_.structs_.vec.begin(); in generate()
365 it != parser_.structs_.vec.end(); ++it) { in generate()
369 for (auto it = parser_.structs_.vec.begin(); in generate()
370 it != parser_.structs_.vec.end(); ++it) { in generate()
374 return SaveFile(GeneratedFileName(path_, file_name_, parser_.opts).c_str(), in generate()
Didl_gen_kotlin.cpp69 cur_name_space_ = parser_.current_namespace_; in generate()
70 for (auto it = parser_.enums_.vec.begin(); it != parser_.enums_.vec.end(); in generate()
74 if (!parser_.opts.one_file) cur_name_space_ = enum_def.defined_namespace; in generate()
76 if (parser_.opts.one_file) { in generate()
85 for (auto it = parser_.structs_.vec.begin(); in generate()
86 it != parser_.structs_.vec.end(); ++it) { in generate()
89 if (!parser_.opts.one_file) in generate()
91 GenStruct(struct_def, structWriter, parser_.opts); in generate()
92 if (parser_.opts.one_file) { in generate()
101 if (parser_.opts.one_file) { in generate()
[all …]
Didl_gen_csharp.cpp56 cur_name_space_ = parser_.current_namespace_; in generate()
58 for (auto it = parser_.enums_.vec.begin(); it != parser_.enums_.vec.end(); in generate()
62 if (!parser_.opts.one_file) cur_name_space_ = enum_def.defined_namespace; in generate()
63 GenEnum(enum_def, &enumcode, parser_.opts); in generate()
64 if (parser_.opts.one_file) { in generate()
73 for (auto it = parser_.structs_.vec.begin(); in generate()
74 it != parser_.structs_.vec.end(); ++it) { in generate()
77 if (!parser_.opts.one_file) in generate()
79 GenStruct(struct_def, &declcode, parser_.opts); in generate()
80 if (parser_.opts.one_file) { in generate()
[all …]
Didl_gen_ts.cpp82 for (auto it = parser_.enums_.vec.begin(); it != parser_.enums_.vec.end(); in generateEnums()
96 for (auto it = parser_.structs_.vec.begin(); in generateStructs()
97 it != parser_.structs_.vec.end(); ++it) { in generateStructs()
103 GenStruct(parser_, struct_def, &declcode, imports); in generateStructs()
379 if (parser_.root_struct_def_ == &struct_def) { in GenerateFinisher()
387 if (!parser_.file_identifier_.empty()) { in GenerateFinisher()
388 code += ", '" + parser_.file_identifier_ + "'"; in GenerateFinisher()
391 if (parser_.file_identifier_.empty()) { code += ", undefined"; } in GenerateFinisher()
471 if (parser_.opts.generate_object_based_api) in AddImport()
475 if (parser_.opts.generate_object_based_api) in AddImport()
[all …]
Didl_gen_go.cpp74 for (auto it = parser_.enums_.vec.begin(); it != parser_.enums_.vec.end(); in generate()
80 if ((*it)->is_union && parser_.opts.generate_object_based_api) { in generate()
86 if (parser_.opts.one_file) { in generate()
93 for (auto it = parser_.structs_.vec.begin(); in generate()
94 it != parser_.structs_.vec.end(); ++it) { in generate()
98 if (parser_.opts.one_file) { in generate()
105 if (parser_.opts.one_file) { in generate()
107 const bool is_enum = !parser_.enums_.vec.empty(); in generate()
111 GeneratedFileName(path_, file_name_, parser_.opts); in generate()
757 if (parser_.opts.generate_object_based_api) { in GenStruct()
[all …]
Didl_gen_php.cpp43 for (auto it = parser_.enums_.vec.begin(); it != parser_.enums_.vec.end(); in GenerateEnums()
54 for (auto it = parser_.structs_.vec.begin(); in GenerateStructs()
55 it != parser_.structs_.vec.end(); ++it) { in GenerateStructs()
657 if (parser_.root_struct_def_ == &struct_def) { in GetEndOffsetOnTable()
665 if (parser_.file_identifier_.length()) in GetEndOffsetOnTable()
666 code += ", \"" + parser_.file_identifier_ + "\""; in GetEndOffsetOnTable()
759 if (parser_.file_identifier_.length()) { in GenStruct()
765 code += parser_.file_identifier_ + "\";\n"; in GenStruct()
778 if (parser_.file_extension_.length()) { in GenStruct()
783 code += Indent + Indent + "return \"" + parser_.file_extension_; in GenStruct()
/third_party/gn/src/base/json/
Djson_reader.cc38 : parser_(new internal::JSONParser(options, max_depth)) {} in JSONReader()
106 std::optional<Value> value = parser_->Parse(json); in ReadToValue()
111 return parser_->error_code(); in error_code()
115 return parser_->GetErrorMessage(); in GetErrorMessage()
/third_party/boost/boost/spirit/home/classic/meta/
Dtraverse.hpp46 traverse(MetaT const &meta_, ParserT const &parser_) in traverse()
50 meta_, parser_, traverse_post_order_env<0, 0, 0, 0>()); in traverse()
78 generate_plain(ParserT const &parser_, EnvT const& /*env*/) const in generate_plain()
80 return parser_; in generate_plain()
/third_party/protobuf/src/google/protobuf/compiler/
Dparser_unittest.cc113 parser_.reset(new Parser()); in SetupParser()
114 parser_->RecordErrorsTo(&error_collector_); in SetupParser()
115 parser_->SetRequireSyntaxIdentifier(require_syntax_identifier_); in SetupParser()
125 parser_->Parse(input_.get(), &actual); in ExpectParsesTo()
154 parser_->Parse(input_.get(), &file); in ExpectHasEarlyExitErrors()
164 parser_->RecordSourceLocationsTo(&source_locations); in ExpectHasValidationErrors()
168 parser_->Parse(input_.get(), &file); in ExpectHasValidationErrors()
184 std::unique_ptr<Parser> parser_; member in google::protobuf::compiler::__anonb024d4af0111::ParserTest
195 parser_->SetStopAfterSyntaxIdentifier(true); in TEST_F()
196 EXPECT_TRUE(parser_->Parse(input_.get(), NULL)); in TEST_F()
[all …]
/third_party/re2/re2/
Dre2.h799 Arg(type* p) : arg_(p), parser_(name) {} \
800 Arg(type* p, Parser parser) : arg_(p), parser_(parser) {}
823 : arg_(p), parser_(_RE2_MatchObject<T>::Parse) { } in MAKE_PARSER()
825 : arg_(p), parser_(parser) { } in Arg()
832 Parser parser_; variable
867 inline RE2::Arg::Arg() : arg_(NULL), parser_(parse_null) { } in Arg()
868 inline RE2::Arg::Arg(void* p) : arg_(p), parser_(parse_null) { } in Arg()
869 inline RE2::Arg::Arg(std::nullptr_t p) : arg_(p), parser_(parse_null) { } in Arg()
872 return (*parser_)(str, n, arg_); in Parse()
/third_party/re2/util/
Dpcre.h580 Arg(type* p) : arg_(p), parser_(name) {} \
581 Arg(type* p, Parser parser) : arg_(p), parser_(parser) {}
606 : arg_(p), parser_(_PCRE_MatchObject<T>::Parse) { in Arg()
614 Parser parser_; variable
649 inline PCRE::Arg::Arg() : arg_(NULL), parser_(parse_null) { } in Arg()
650 inline PCRE::Arg::Arg(void* p) : arg_(p), parser_(parse_null) { } in Arg()
653 return (*parser_)(str, n, arg_); in Parse()
/third_party/boost/libs/beast/example/websocket/server/chat-multi/
Dhttp_session.cpp258 parser_.emplace(); in do_read()
262 parser_->body_limit(10000); in do_read()
271 parser_->get(), in do_read()
293 if(websocket::is_upgrade(parser_->get())) in on_read()
299 state_)->run(parser_->release()); in on_read()
347 parser_->release(), in on_read()
/third_party/boost/libs/spirit/classic/test/
Dtraverse_tests.cpp278 generate_plain(ParserT const &parser_, EnvT const &env) const in generate_plain() argument
287 << parser_name(parser_); in generate_plain()
290 return this->base_t::generate_plain(parser_, env); in generate_plain()
349 post_order_trace_test(ParserT const &parser_, char const *first[], size_t cnt) in post_order_trace_test() argument
354 post_order::traverse(trace_vector, parser_); in post_order_trace_test()
/third_party/boost/libs/beast/example/advanced/server/
Dadvanced_server.cpp426 boost::optional<http::request_parser<http::string_body>> parser_; member in http_session
460 parser_.emplace(); in do_read()
464 parser_->body_limit(10000); in do_read()
473 *parser_, in do_read()
492 if(websocket::is_upgrade(parser_->get())) in on_read()
497 stream_.release_socket())->do_accept(parser_->release()); in on_read()
502 handle_request(*doc_root_, parser_->release(), queue_); in on_read()
/third_party/boost/libs/beast/example/http/server/fast/
Dhttp_server_fast.cpp110 boost::optional<http::request_parser<request_body_t, alloc_t>> parser_; member in http_worker
167 parser_.emplace( in read_request()
175 *parser_, in read_request()
181 process_request(parser_->get()); in read_request()
/third_party/python/Lib/test/
Dtest_optparse.py1105 def process_opt(self, option, opt, value, parser_): argument
1109 self.assertTrue(parser_ is self.parser)
1111 self.assertEqual(vars(parser_.values), {'filename': None})
1113 parser_.values.x = 42
1117 self.assertTrue(parser_ is self.parser)
1119 self.assertEqual(vars(parser_.values), {'filename': None, 'x': 42})
1121 setattr(parser_.values, option.dest, value)
1153 def process_tuple(self, option, opt, value, parser_, len, type): argument
1163 getattr(parser_.values, option.dest).append(value)
1178 def process_n(self, option, opt, value, parser_): argument
[all …]

12