• Home
  • Raw
  • Download

Lines Matching refs:comment

57 def extract_result_types(comment):  argument
69 m = re.search(r'Usable as: Any Matcher[\s\n]*$', comment, re.S)
73 m = re.match(r'^(.*)Matcher<([^>]+)>\s*,?[\s\n]*$', comment, re.S)
75 if re.search(r'Usable as:\s*$', comment):
80 comment = m.group(1)
82 def strip_doxygen(comment): argument
85 comment = re.sub(r'^\\[^\s]+\n', r'', comment, flags=re.M)
89 comment = re.sub(r'\\see', r'See also:', comment)
92 comment = re.sub(r'\\[^\s]+\s+', r'', comment)
93 return comment
103 def add_matcher(result_type, name, args, comment, is_dyncast=False): argument
115 'comment': esc(strip_doxygen(comment)),
131 def act_on_decl(declaration, comment, allowed_types): argument
150 comment, is_dyncast=True)
161 comment, is_dyncast=True)
177 comment_result_types = extract_result_types(comment)
182 add_matcher(result_type, name, 'Matcher<Type>', comment)
185 comment)
209 add_matcher(result_type, name, args, comment)
228 add_matcher(result, name, args, comment)
254 add_matcher(result_type, name, args, comment)
264 add_matcher('*', name, 'Matcher<*>', comment)
274 add_matcher(result, name, '%s, ..., %s' % (arg, arg), comment)
285 add_matcher('*', name, 'Matcher<*>', comment)
288 add_matcher('*', name, 'Matcher<*>, ..., Matcher<*>', comment)
305 result_types = extract_result_types(comment)
307 if not comment:
314 add_matcher(result_type, name, args, comment)
337 comment = '' variable
345 act_on_decl(declaration, comment, allowed_types)
346 comment = '' variable
356 comment += re.sub(r'/+\s?', '', line) + '\n'
365 act_on_decl(declaration, comment, allowed_types)
366 comment = '' variable