Lines Matching refs:matcher
44 bool Field::matches(const Matcher& matcher) const { in matches()
45 if (mTag != matcher.mMatcher.getTag()) { in matches()
48 if ((mField & matcher.mMask) == matcher.mMatcher.getField()) { in matches()
52 if (matcher.hasAllPositionMatcher() && in matches()
53 (mField & (matcher.mMask & kClearAllPositionMatcherMask)) == matcher.mMatcher.getField()) { in matches()
60 void translateFieldMatcher(int tag, const FieldMatcher& matcher, int depth, int* pos, int* mask, in translateFieldMatcher() argument
67 pos[depth] = matcher.field(); in translateFieldMatcher()
70 if (matcher.has_position()) { in translateFieldMatcher()
75 switch (matcher.position()) { in translateFieldMatcher()
99 if (matcher.child_size() == 0) { in translateFieldMatcher()
102 for (const auto& child : matcher.child()) { in translateFieldMatcher()
108 void translateFieldMatcher(const FieldMatcher& matcher, std::vector<Matcher>* output) { in translateFieldMatcher() argument
111 int tag = matcher.field(); in translateFieldMatcher()
112 for (const auto& child : matcher.child()) { in translateFieldMatcher()
448 bool HasPositionANY(const FieldMatcher& matcher) { in HasPositionANY() argument
449 if (matcher.has_position() && matcher.position() == Position::ANY) { in HasPositionANY()
452 for (const auto& child : matcher.child()) { in HasPositionANY()
460 bool HasPositionALL(const FieldMatcher& matcher) { in HasPositionALL() argument
461 if (matcher.has_position() && matcher.position() == Position::ALL) { in HasPositionALL()
464 for (const auto& child : matcher.child()) { in HasPositionALL()