(loc: DirectiveLocation)
return "visit_" + loc.name.lower()
Convert a string like "FIELD_DEFINITION" to "visit_field_definition".
Convert a string like "FIELD_DEFINITION" to "visit_field_definition".
Convert a string like FIELD_DEFINITION to visit_field_definition .
def directive_location_to_visitor_method_name(loc: DirectiveLocation):
    """
    Convert a string like "FIELD_DEFINITION" to "visit_field_definition".
    """
    return "visit_" + loc.name.lower()
def directive_location_to_visitor_method_name ( loc : DirectiveLocation ) : return "visit_" + loc . name . lower ( )