Lines Matching defs:pos
155 MatchedInput(InputPosition begin, InputPosition end, SourcePosition pos)
156 : begin(begin), end(end), pos(pos) {}
159 SourcePosition pos;
278 // range from {start} to {pos} that matches the symbols of the right-hand side
283 Item(const Rule* rule, size_t mark, size_t start, size_t pos)
284 : rule_(rule), mark_(mark), start_(start), pos_(pos) {
295 // The symbol right after the mark is expected at {pos} for this item to
303 // We successfully parsed NextSymbol() between {pos} and {new_pos}.
310 DCHECK_EQ(pos(), child->start());
311 DCHECK_EQ(new_pos, child->pos());
331 CHECK_EQ(start.pos.source, end.pos.source);
332 SourcePosition combined{start.pos.source, start.pos.start, end.pos.end};
351 size_t pos() const { return pos_; }
395 // Functions to define patterns. They try to match starting from {pos}. If
396 // successful, they return true and advance {pos}. Otherwise, {pos} stays
398 using PatternFunction = bool (*)(InputPosition* pos);
412 Symbol* MatchToken(InputPosition* pos, InputPosition end);
444 // and advance {pos}. Otherwise, {pos} is unchanged.
446 InputPosition* pos);
448 InputPosition* pos);
449 V8_EXPORT_PRIVATE static bool MatchAnyChar(InputPosition* pos);
450 V8_EXPORT_PRIVATE static bool MatchString(const char* s, InputPosition* pos);