#!/usr/bin/python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# flake8: noqa
from pysa import _test_sink, _test_source


class SkipMe:
    def taint_here(self, x):
        _test_sink(x)

    def tito_here(self, x):
        return x


def no_issue_due_to_skip():
    x = _test_source()
    skip = SkipMe()
    skip.taint_here(x)
    _test_sink(skip.tito_here(x))


# No issue in top level
_test_sink(_test_source())


class SkipTopLevel:
    # No issue in class top level
    _test_sink(_test_source())
