from datamodel_code_generator.parser.base import Parser


def reads_an_option(parser: Parser) -> bool:
    return parser.use_annotated


def reads_a_fact(parser: Parser) -> bool:
    return bool(parser.through_a_helper)


def a_gate_of_a_module(parser: Parser, state: object) -> bool:
    return bool(parser.in_a_module_function)
