def only_for_dart_files(func):
    @wraps(func)
    def inner(self, view):
        try:
            fname = view.file_name()
            if fname and is_dart_script(fname):
                return func(self, view)
        except __HOLE__:
            assert view is None, "wrong usage"
    return inner
dataset/ETHPy150Open guillermooo/dart-sublime-bundle/lib/path.py/only_for_dart_files