def statement_is_fundef(node):
    """Return true if a statement node is for a function or macro definition.
  """
    tokens = node.get_semantic_tokens()
    if not tokens:
        return False
    funname = tokens[0].spelling.lower()
    return funname in ('function', 'macro')
