Lines Matching defs:declaration
191 def act_on_decl(declaration, comment, allowed_types):
192 """Parse the matcher out of the given declaration and comment.
198 if declaration.strip():
200 if re.match(r"^\s?(#|namespace|using|template <typename NodeType> using|})", declaration):
210 declaration,
228 declaration,
249 declaration,
278 declaration,
289 raise Exception('Cannot parse "%s"' % declaration)
306 declaration,
335 declaration,
342 raise Exception('Cannot parse "%s"' % declaration)
361 declaration,
374 raise Exception('Cannot parse "%s"' % declaration)
391 declaration,
417 declaration,
429 declaration,
441 declaration,
462 declaration,
477 declaration,
493 declaration,
534 print('*** Unparsable: "' + declaration + '" ***')
558 # body = False: We parse the comments and declaration of the matcher.
560 declaration = ""
566 if declaration:
567 act_on_decl(declaration, comment, allowed_types)
569 declaration = ""
580 declaration += " " + line
589 act_on_decl(declaration, comment, allowed_types)
591 declaration = ""