/third_party/ninja/src/ |
D | depfile_parser_test.cc | 24 DepfileParser parser_; member 30 return parser_.Parse(&input_, err); in Parse() 39 ASSERT_EQ(1u, parser_.outs_.size()); in TEST_F() 40 EXPECT_EQ("build/ninja.o", parser_.outs_[0].AsString()); in TEST_F() 41 EXPECT_EQ(4u, parser_.ins_.size()); in TEST_F() 60 ASSERT_EQ(1u, parser_.outs_.size()); in TEST_F() 61 EXPECT_EQ("foo.o", parser_.outs_[0].AsString()); in TEST_F() 62 EXPECT_EQ(2u, parser_.ins_.size()); in TEST_F() 72 ASSERT_EQ(1u, parser_.outs_.size()); in TEST_F() 73 EXPECT_EQ("foo.o", parser_.outs_[0].AsString()); in TEST_F() [all …]
|
/third_party/node/src/ |
D | node_http_parser.cc | 397 if (parser_.type == HTTP_REQUEST) in on_headers_complete() 405 if (parser_.type == HTTP_REQUEST) { in on_headers_complete() 407 Uint32::NewFromUnsigned(env()->isolate(), parser_.method); in on_headers_complete() 411 if (parser_.type == HTTP_RESPONSE) { in on_headers_complete() 413 Integer::New(env()->isolate(), parser_.status_code); in on_headers_complete() 418 argv[A_VERSION_MAJOR] = Integer::New(env()->isolate(), parser_.http_major); in on_headers_complete() 419 argv[A_VERSION_MINOR] = Integer::New(env()->isolate(), parser_.http_minor); in on_headers_complete() 422 should_keep_alive = llhttp_should_keep_alive(&parser_); in on_headers_complete() 427 argv[A_UPGRADE] = Boolean::New(env()->isolate(), parser_.upgrade); in on_headers_complete() 469 llhttp_set_error_reason(&parser_, "HPE_JS_EXCEPTION:JS Exception"); in on_body() [all …]
|
D | inspector_socket.cc | 488 llhttp_init(&parser_, HTTP_REQUEST, &parser_settings); in HttpHandler() 534 err = llhttp_execute(&parser_, data->data(), data->size()); in OnData() 538 llhttp_resume_after_upgrade(&parser_); in OnData() 602 return node::ContainerOf(&HttpHandler::parser_, parser); in From() 642 llhttp_t parser_; member in node::inspector::__anona61682c20111::HttpHandler
|
/third_party/gn/src/base/json/ |
D | json_reader.cc | 38 : 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()
|
D | json_reader.h | 128 std::unique_ptr<internal::JSONParser> parser_;
|
/third_party/protobuf/src/google/protobuf/compiler/ |
D | parser_unittest.cc | 113 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::__anon53b9b1300111::ParserTest 195 parser_->SetStopAfterSyntaxIdentifier(true); in TEST_F() 196 EXPECT_TRUE(parser_->Parse(input_.get(), NULL)); in TEST_F() [all …]
|
D | parser.cc | 402 : parser_(parser), in LocationRecorder() 404 location_(parser_->source_code_info_->add_location()) { in LocationRecorder() 405 location_->add_span(parser_->input_->current().line); in LocationRecorder() 406 location_->add_span(parser_->input_->current().column); in LocationRecorder() 435 parser_ = parent.parser_; in Init() 441 location_->add_span(parser_->input_->current().line); in Init() 442 location_->add_span(parser_->input_->current().column); in Init() 447 EndAt(parser_->input_->previous()); in ~LocationRecorder() 475 if (parser_->source_location_table_ != NULL) { in RecordLegacyLocation() 476 parser_->source_location_table_->Add( in RecordLegacyLocation() [all …]
|
D | parser.h | 283 Parser* parser_;
|
/third_party/node/deps/v8/src/parsing/ |
D | expression-scope.h | 54 VariableProxy* result = parser_->NewRawVariable(name, pos); 187 if (is_strict(parser_->language_mode())) { in RecordStrictModeParameterError() 190 parser_->parameters_->set_strict_parameter_error(loc, message); in RecordStrictModeParameterError() 193 parser_->next_arrow_function_info_.strict_parameter_error_location = loc; in RecordStrictModeParameterError() 194 parser_->next_arrow_function_info_.strict_parameter_error_message = in RecordStrictModeParameterError() 253 ParserT* parser() const { return parser_; } in parser() 257 parser_->ReportMessageAt(loc, message); in Report() 261 : parser_(parser), in ExpressionScope() 275 DCHECK(parser_->expression_scope_ == this || in ~ExpressionScope() 276 parser_->expression_scope_ == parent_); in ~ExpressionScope() [all …]
|
D | parser.h | 200 : parser_(parser), old_mode_(parser->mode_) { 201 parser_->mode_ = mode; 203 ~ParsingModeScope() { parser_->mode_ = old_mode_; } 206 Parser* parser_;
|
D | parser-base.h | 1510 : parser_(parser), previous_accept_IN_(parser->accept_IN_) { in AcceptINScope() 1511 parser_->accept_IN_ = accept_IN; in AcceptINScope() 1514 ~AcceptINScope() { parser_->accept_IN_ = previous_accept_IN_; } in ~AcceptINScope() 1517 ParserBase* parser_; 1524 : parser_(parser), parent_parameters_(parser_->parameters_) { in ParameterParsingScope() 1525 parser_->parameters_ = parameters; in ParameterParsingScope() 1528 ~ParameterParsingScope() { parser_->parameters_ = parent_parameters_; } in ~ParameterParsingScope() 1531 Impl* parser_; 1538 : parser_(parser), expression_scope_(parser_->expression_scope_) { in FunctionParsingScope() 1539 parser_->expression_scope_ = nullptr; in FunctionParsingScope() [all …]
|
/third_party/python/Lib/test/ |
D | test_optparse.py | 1105 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 …]
|
/third_party/protobuf/src/google/protobuf/ |
D | text_format_unittest.cc | 1409 parser_.RecordErrorsTo(&error_collector); in ExpectMessage() 1410 EXPECT_EQ(expected_result, parser_.ParseFromString(input, proto)) in ExpectMessage() 1415 parser_.RecordErrorsTo(nullptr); in ExpectMessage() 1421 parser_.RecordErrorsTo(&error_collector); in ExpectSuccessAndTree() 1422 parser_.WriteLocationsTo(info_tree); in ExpectSuccessAndTree() 1423 EXPECT_TRUE(parser_.ParseFromString(input, proto)); in ExpectSuccessAndTree() 1424 parser_.WriteLocationsTo(nullptr); in ExpectSuccessAndTree() 1425 parser_.RecordErrorsTo(nullptr); in ExpectSuccessAndTree() 1457 TextFormat::Parser parser_; member in google::protobuf::text_format_unittest::TextFormatParserTest 1913 parser_.SetRecursionLimit(100); in TEST_F() [all …]
|
D | text_format.cc | 1179 : parser_(parser) {} in ParserErrorCollector() 1184 parser_->ReportError(line, column, message); in AddError() 1188 parser_->ReportWarning(line, column, message); in AddWarning() 1193 TextFormat::Parser::ParserImpl* parser_; member in google::protobuf::TextFormat::Parser::ParserImpl::ParserErrorCollector
|
/third_party/node/deps/v8/src/regexp/ |
D | regexp-parser.cc | 313 : parser_(parser) { in ForceUnicodeScope() 314 DCHECK(!parser_->force_unicode_); in ForceUnicodeScope() 315 parser_->force_unicode_ = true; in ForceUnicodeScope() 318 DCHECK(parser_->force_unicode_); in ~ForceUnicodeScope() 319 parser_->force_unicode_ = false; in ~ForceUnicodeScope() 323 RegExpParserImpl<CharT>* const parser_; member in v8::internal::__anon35ea97ba0111::RegExpParserImpl::ForceUnicodeScope
|
/third_party/node/deps/v8/src/asmjs/ |
D | asm-parser.cc | 184 explicit TemporaryVariableScope(AsmJsParser* parser) : parser_(parser) { in TemporaryVariableScope() 185 local_depth_ = parser_->function_temp_locals_depth_; in TemporaryVariableScope() 186 parser_->function_temp_locals_depth_++; in TemporaryVariableScope() 189 DCHECK_EQ(local_depth_, parser_->function_temp_locals_depth_ - 1); in ~TemporaryVariableScope() 190 parser_->function_temp_locals_depth_--; in ~TemporaryVariableScope() 192 uint32_t get() const { return parser_->TempVariable(local_depth_); } in get() 195 AsmJsParser* parser_; member in v8::internal::wasm::AsmJsParser::TemporaryVariableScope
|
/third_party/skia/third_party/externals/tint/src/reader/wgsl/ |
D | parser_impl.cc | 198 : parser_(parser), start_(start) {} in MultiTokenSource() 203 Source end = parser_->last_token().source().End(); in operator Source() 211 ParserImpl* parser_; member in tint::reader::wgsl::ParserImpl::MultiTokenSource
|