Lines Matching refs:Rule
143 class Rule final {
145 explicit Rule(std::vector<Symbol*> right_hand_side,
179 Symbol(std::initializer_list<Rule> rules) { *this = rules; } in Symbol()
181 V8_EXPORT_PRIVATE Symbol& operator=(std::initializer_list<Rule> rules);
184 Rule* rule(size_t index) const { return rules_[index].get(); } in rule()
187 void AddRule(const Rule& rule) { in AddRule()
188 rules_.push_back(base::make_unique<Rule>(rule)); in AddRule()
196 std::vector<std::unique_ptr<Rule>> rules_;
210 Item(const Rule* rule, size_t mark, size_t start, size_t pos) in Item()
272 const Rule* rule() const { return rule_; } in rule()
279 const Rule* rule_;
360 Symbol* NewSymbol(std::initializer_list<Rule> rules = {}) {
385 return NewSymbol({Rule(std::move(symbols))}); in Sequence()
411 return NewSymbol({Rule({s}, CastParseResult<Result, T>), in TryOrDefault()
412 Rule({}, YieldDefaultValue<T>)}); in TryOrDefault()
439 *list = {Rule({element}, MakeSingletonVector<T>),
441 ? Rule({list, *separator, element}, MakeExtendedVector<T>)
442 : Rule({list, element}, MakeExtendedVector<T>)};
457 return NewSymbol({Rule({x}, YieldIntegralConstant<bool, true>), in CheckIf()
458 Rule({}, YieldIntegralConstant<bool, false>)}); in CheckIf()