Lines Matching refs:matcher
45 bool Field::matches(const Matcher& matcher) const { in matches()
46 if (mTag != matcher.mMatcher.getTag()) { in matches()
49 if ((mField & matcher.mMask) == matcher.mMatcher.getField()) { in matches()
53 if (matcher.hasAllPositionMatcher() && in matches()
54 (mField & (matcher.mMask & kClearAllPositionMatcherMask)) == matcher.mMatcher.getField()) { in matches()
61 void translateFieldMatcher(int tag, const FieldMatcher& matcher, int depth, int* pos, int* mask, in translateFieldMatcher() argument
68 pos[depth] = matcher.field(); in translateFieldMatcher()
71 if (matcher.has_position()) { in translateFieldMatcher()
76 switch (matcher.position()) { in translateFieldMatcher()
100 if (matcher.child_size() == 0) { in translateFieldMatcher()
103 for (const auto& child : matcher.child()) { in translateFieldMatcher()
109 void translateFieldMatcher(const FieldMatcher& matcher, std::vector<Matcher>* output) { in translateFieldMatcher() argument
112 int tag = matcher.field(); in translateFieldMatcher()
113 for (const auto& child : matcher.child()) { in translateFieldMatcher()
441 bool HasPositionANY(const FieldMatcher& matcher) { in HasPositionANY() argument
442 if (matcher.has_position() && matcher.position() == Position::ANY) { in HasPositionANY()
445 for (const auto& child : matcher.child()) { in HasPositionANY()
453 bool HasPositionALL(const FieldMatcher& matcher) { in HasPositionALL() argument
454 if (matcher.has_position() && matcher.position() == Position::ALL) { in HasPositionALL()
457 for (const auto& child : matcher.child()) { in HasPositionALL()