def METHOD_NAME(self, p):
    """
    Return the path fragment if this node is a @path or @view or any @file node.
    """
    head = p.h
    for s in ('@path', '@view', '@strip', '@file', '@thin', '@nosent', '@asis'):
        if head.startswith(s):
            fragment = head[head.find(' ') :].strip()
            return fragment
    return ''