diff --git a/src/args.py b/src/args.py index 248e0574..242a7489 100644 --- a/src/args.py +++ b/src/args.py @@ -161,7 +161,7 @@ parser.add_argument( "--language", default="kotlin", - choices=['kotlin', 'groovy', 'java', 'scala'], + choices=['kotlin', 'groovy', 'java', 'scala','swift'], help="Select specific language" ) parser.add_argument( diff --git a/src/compilers/__init__.py b/src/compilers/__init__.py index 89be02ef..6694a3b5 100644 --- a/src/compilers/__init__.py +++ b/src/compilers/__init__.py @@ -2,11 +2,13 @@ from src.compilers.groovy import GroovyCompiler from src.compilers.java import JavaCompiler from src.compilers.scala import ScalaCompiler +from src.compilers.swift import SwiftCompiler COMPILERS = { 'kotlin': KotlinCompiler, 'groovy': GroovyCompiler, 'java': JavaCompiler, - 'scala': ScalaCompiler + 'scala': ScalaCompiler, + 'swift': SwiftCompiler } diff --git a/src/compilers/swift.py b/src/compilers/swift.py new file mode 100644 index 00000000..f7a56a2d --- /dev/null +++ b/src/compilers/swift.py @@ -0,0 +1,33 @@ +import re +import os + +from src.compilers.base import BaseCompiler + + +class SwiftCompiler(BaseCompiler): + ERROR_REGEX = re.compile( + r'([a-zA-Z0-9\/_]+.swift):((\d+:\d+): error:[ ]+.*)(.*?(?=\n{1,}))') + + + CRASH_REGEX = re.compile(r'^compile command failed.*') + + def __init__(self, input_name, filter_patterns=None, + library_path=None): + input_name = os.path.join(input_name, '*', '*.swift') + super().__init__(input_name, filter_patterns, library_path) + + @classmethod + def get_compiler_version(cls): + return ['swiftc', '-version'] + + def get_compiler_cmd(self): + extra_options = [] + if self.library_path: + extra_options = ["-cp", self.library_path] + return ['swiftc'] + extra_options + [self.input_name] + + def get_filename(self, match): + return match[0] + + def get_error_msg(self, match): + return match[1] diff --git a/src/generators/api/api_generator.py b/src/generators/api/api_generator.py index 1c4441d9..82c31e08 100644 --- a/src/generators/api/api_generator.py +++ b/src/generators/api/api_generator.py @@ -50,6 +50,7 @@ class APIGenerator(Generator): "kotlin": builder.KotlinAPIGraphBuilder, "groovy": builder.JavaAPIGraphBuilder, "scala": builder.ScalaAPIGraphBuilder, + "swift": builder.SwiftAPIGraphBuilder, } def __init__(self, api_docs, options={}, language=None, logger=None): @@ -121,7 +122,7 @@ def produce_test_case(self, expr: ast.Expr, type_parameters.extend(self.test_case_type_params) main_func = ast.FunctionDeclaration( self.TEST_CASE_NAME, - params=[], + params=[] if self.language != 'swift' else [ast.ParameterDeclaration(str(t.name).lower(),t) for t in type_parameters], #TODO add parameters type_parameters=type_parameters, ret_type=self.bt_factory.get_void_type(), body=ast.Block(body), @@ -170,7 +171,7 @@ def wrap_types_with_type_parameter(self, types: List[tp.TypeParameter], is_blacklisted = ( upper_bound.name in blacklisted or (upper_bound.name == "Nullable" - and upper_bound.type_args[0].name in blacklisted) + and upper_bound.type_args[0].name in blacklisted) or (upper_bound.name == "Reference" and upper_bound.type_args[0].name in blacklisted) ) if upper_bound.is_type_constructor() or is_blacklisted: return types @@ -335,7 +336,7 @@ def compute_programs(self): def generate_expr_from_node(self, node: tp.Type, func_ref: bool, constraints: dict = None, - depth: int = 1) -> ExprRes: + depth: int = 1,is_mutating=False) -> ExprRes: is_func = func_ref and self.api_graph.get_functional_type( node) is not None res = ( @@ -346,7 +347,8 @@ def generate_expr_from_node(self, node: tp.Type, else self._generate_expr_from_node( node, depth, {} if func_ref else (constraints or {})) ) - if node and utils.random.bool(prob=cfg.prob.local_variable_prob): + # Generate a local variable for the expression, required for mutaing methods and inout parameters in Swift + if node and (utils.random.bool(prob=cfg.prob.local_variable_prob) or is_mutating or str(node).startswith('Reference')): var_name = gu.gen_identifier("lower") if node.is_type_constructor(): node = node.new(node.type_parameters) @@ -367,11 +369,11 @@ def generate_expr_from_node(self, node: tp.Type, def generate_expr_from_nodes(self, nodes: List[tp.Type], constraints: dict, func_ref: bool = False, - depth: int = 1) -> ExprRes: + depth: int = 1,is_mutating=False) -> ExprRes: if len(nodes) == 1: return self.generate_expr_from_node( nodes[0], func_ref=func_ref, constraints=constraints, - depth=depth) + depth=depth,is_mutating=is_mutating) cond = self.generate_expr(self.bt_factory.get_boolean_type()) cond_type = functools.reduce( lambda acc, x: acc if x.is_subtype(acc) else x, @@ -398,19 +400,38 @@ def generate_expr_from_nodes(self, nodes: List[tp.Type], def generate_from_type_combination(self, api, receiver, parameters, return_type, type_map) -> ast.Expr: type_var_map = copy(type_map) + is_mutating = False + if isinstance(api, ag.Method): + is_mutating = api.metadata.get('is_mutating',False) + receiver, _, _ = self.generate_expr_from_nodes( - receiver, type_var_map, func_ref=False) + receiver, type_var_map, func_ref=False, is_mutating=is_mutating) exp_parameters = [p.t for p in getattr(api, "parameters", [])] args = self._generate_args(exp_parameters, parameters, depth=1, type_var_map=type_var_map) var_type = return_type self.type_eraser.with_target(return_type) if isinstance(api, ag.Method): - call_args = [ast.CallArgument(arg.expr) for arg in args] + parameter_list = api.parameters + + names = [] + """ + extract names of the parameters, named parameters are default in Swift + """ + if parameter_list: + names = [param.name if isinstance(param,ag.NamedParameter) else None for param in parameter_list] + + + if self.language == 'swift' and len(args)==len(names): + call_args = [ast.CallArgument(args[i].expr,names[i],inout=str(parameter_list[i].t).startswith('Reference')) + for i in range(len(args))] + else: + call_args = [ast.CallArgument(args[i].expr,inout=str(parameter_list[i].t).startswith('Reference')) for i in range(len(args))] + type_args = self.substitute_types(api.type_parameters, type_var_map) expr = ast.FunctionCall(api.name, args=call_args, - receiver=receiver, type_args=type_args) + receiver=receiver, type_args=type_args,names=names,throws=api.metadata.get('throws',False)) if api.type_parameters and self.type_erasure_mode: self.type_eraser.erase_types(expr, api, args) elif isinstance(api, ag.Constructor): @@ -423,8 +444,16 @@ def _instantiate_type_con(t: tp.Type): con_type = self.api_graph.get_type_by_name( cls_name) or self.parse_builtin_type(cls_name) con_type = _instantiate_type_con(con_type) - call_args = [arg.expr for arg in args] - expr = ast.New(con_type, call_args, receiver=receiver) + parameter_list = api.parameters + """ + extract names of the parameters, named parameters are default in Swift + """ + names = [] + if parameter_list: + names = [param.name if isinstance(param,ag.NamedParameter) else None for param in parameter_list] + + call_args = [arg.expr for arg in args] + expr = ast.New(con_type, call_args, receiver=receiver,names=names) if con_type.is_parameterized() and self.type_erasure_mode: self.type_eraser.erase_types(expr, api, args) else: @@ -536,7 +565,8 @@ def generate_func_ref(self, expr_type: tp.Type, type_var_map: dict, self.api_graph.get_functional_type(expr_type), type_var_map) return ast.FunctionReference(api_name, receiver=rec, signature=expr_type, - function_type=func_type) + function_type=func_type,named_parameters = None if len(api.parameters)==0 else [e.name if isinstance(e, ag.NamedParameter) else '' for e in api.parameters] +) def generate_expr(self, expr_type: tp.Type = None, @@ -647,7 +677,7 @@ def _generate_expr_from_node(self, node, depth=1, constraints=None): return ExprRes(expr, type_var_map, path) def _generate_args(self, parameters, actual_types, depth, - type_var_map): + type_var_map,is_mutating=False): if not parameters: return [] args = [] @@ -665,7 +695,7 @@ def _generate_args(self, parameters, actual_types, depth, rec_bound_handler=self.api_graph.get_instantiations_of_recursive_bound) expr = self.generate_expr_from_nodes(param_types, {}, func_ref=True, - depth=depth) + depth=depth,is_mutating=is_mutating) self.type_eraser.reset_target_type() args.append(expr) return args @@ -688,15 +718,42 @@ def _instantiate_type_con(t: tp.Type): depth, type_var_map) self.type_eraser.reset_target_type() if isinstance(elem, ag.Method): + is_mutating = elem.metadata.get('is_mutating',False) parameters = [param.t for param in elem.parameters] + parameter_list = elem.parameters + """ + extract names of the parameters, named parameters are default in Swift + """ + names = [] + if parameter_list: + names = [param.name if isinstance(param,ag.NamedParameter) else None for param in parameter_list] + args = self._generate_args(parameters, [[p] for p in parameters], - depth + 1, type_var_map) - call_args = [ast.CallArgument(arg.expr) - for arg in args] + depth + 1, type_var_map,is_mutating=is_mutating) + if is_mutating: + var_name = gu.gen_identifier("lower") + last_elem = receiver_path[-1] + if isinstance(last_elem,tp.Type): + var_type = tp.substitute_type(last_elem, type_var_map) + if var_type.is_type_constructor(): + var_type = var_type.new([type_var_map[t] for t in var_type.type_parameters]) + else: + var_type = tp.substitute_type(self.api_graph.get_output_type(last_elem), type_var_map) + mut_var = ast.VariableDeclaration(var_name,receiver,var_type=var_type) + receiver = ast.Variable(var_name) + self._add_node_to_parent(self.namespace, mut_var) + if names and self.language == 'swift' and len(args)==len(names): + + + call_args = [ast.CallArgument(args[i].expr,names[i],inout=str(parameter_list[i].t).startswith('Reference')) #NAMED ARGUMENTS TODO + for i in range(len(args))] + else : + + call_args = [ast.CallArgument(args[i].expr,inout=str(parameter_list[i].t).startswith('Reference')) for i in range(len(args))] type_args = [type_var_map[tpa] for tpa in elem.type_parameters] expr = ast.FunctionCall(elem.name, args=call_args, - receiver=receiver, type_args=type_args) + receiver=receiver, type_args=type_args,names=names,throws=elem.metadata.get('throws',False)) if elem.type_parameters and self.type_erasure_mode: self.type_eraser.erase_types(expr, elem, args) elif isinstance(elem, ag.Field): @@ -710,7 +767,20 @@ def _instantiate_type_con(t: tp.Type): args = self._generate_args(parameters, [[p] for p in parameters], depth + 1, type_var_map) call_args = [arg.expr for arg in args] - expr = ast.New(con_type, call_args, receiver=receiver) + parameter_list = elem.parameters + """ + extract names of the parameters, named parameters are default in Swift + """ + names = [] + if parameter_list: + names = [param.name if isinstance(param,ag.NamedParameter) else None for param in parameter_list] + + + if names and self.language == 'swift': + expr = ast.New(con_type, call_args, receiver=receiver, names=names) + else: + expr = ast.New(con_type, call_args, receiver=receiver) + if con_type.is_parameterized() and self.type_erasure_mode: self.type_eraser.erase_types(expr, elem, args) elif isinstance(elem, ag.Variable): diff --git a/src/generators/api/api_graph.py b/src/generators/api/api_graph.py index 7ab9c7c4..a164299f 100644 --- a/src/generators/api/api_graph.py +++ b/src/generators/api/api_graph.py @@ -3,7 +3,7 @@ import itertools import statistics from typing import NamedTuple, List, Union, Set, Dict, Tuple - +import re import networkx as nx from src import utils @@ -12,7 +12,7 @@ from src.generators.api import utils as au from src.generators.api.matcher import Matcher from src.generators.api.nodes import (Field, Method, Constructor, Variable, - Parameter) + Parameter, NamedParameter) IN = 0 @@ -122,7 +122,10 @@ class APIGraph(): "kotlin.LongArray", "kotlin.FloatArray", "kotlin.DoubleArray", - } + }, + "swift": {"Swift.Array", + "Array", + } } def __init__(self, api_graph, subtyping_graph, functional_types, @@ -148,7 +151,7 @@ def __init__(self, api_graph, subtyping_graph, functional_types, if ( not (t.is_parameterized() and t.has_type_variables()) and not (t.name == self.bt_factory.get_void_type().name and - getattr(t, "primive", False)) + getattr(t, "primive", False)) #TODO TYPO??? primitive ) ] self.type_constructors = [t for t in self.types @@ -199,7 +202,21 @@ class _Type(NamedTuple): signature_length) def get_reg_types(self): - return self.types + #for Swift also return the built-ins + types = self.types + language = self.bt_factory.get_language() + builtins = [] + if language == "swift": + integer_type = self.bt_factory.get_integer_type() + float_type = self.bt_factory.get_float_type() + double_type = self.bt_factory.get_double_type() + boolean_type = self.bt_factory.get_boolean_type() + character_type = self.bt_factory.get_char_type() + string_type = self.bt_factory.get_string_type() + builtins = [integer_type, float_type, double_type, boolean_type, + character_type, string_type] + + return types + builtins def _get_random_type(self, types): t = tu.select_random_type(types) @@ -428,7 +445,7 @@ def get_sources_and_target( msg = msg.format(sel=target_selection) return Exception(msg) origin = target - targets = [] + targets = [origin] if target.is_parameterized(): is_primitive = ( origin.t_constructor == self.bt_factory.get_array_type() and @@ -606,6 +623,8 @@ def _get_overloaded_method_from_inheritance( overloaded_methods: Set[Tuple[Method, bool]] ) -> Set[Tuple[Method, bool]]: methods = set() + if type(receiver) == int: + return methods #TODO dirty solution for supertype in receiver.get_supertypes(): if supertype.is_parameterized(): supertype = self.get_type_by_name( @@ -660,7 +679,7 @@ def get_overloaded_methods(self, receiver: tp.Type, methods = set() base_t = receiver - if receiver.is_parameterized(): + if type(receiver) != int and receiver.is_parameterized(): #TODO int is parameterized??? # Get the type constructor in order to retrieve the definitions # of the corresponding class base_t = self.get_type_by_name(receiver.name) or \ @@ -675,7 +694,7 @@ def get_overloaded_methods(self, receiver: tp.Type, return methods def get_functional_type(self, etype: tp.Type) -> tp.ParameterizedType: - if etype.is_parameterized(): + if etype.is_parameterized(): #TODO tuple is parameterized??? # Check if this the given type is a native function type, e.g., # (Boolean) -> String. t_constructor = self.get_type_by_name( @@ -735,6 +754,16 @@ def get_function_refs_of(self, etype: tp.Type, for api in api_components: if not isinstance(api, (Method, Constructor)): continue + non_letter_pattern = r'[^a-zA-Z]' + # Finding all non-letter characters + binary_op = bool(re.search(non_letter_pattern, api.name.split('.')[-1])) + """ + exclude mutating methods, binary functions and subscripts from ref for Swift + """ + language = self.bt_factory.get_language() + if language == 'swift' and (api.metadata.get("is_mutating",None) or 'subscript' in api.name or binary_op): + continue + param_types = [ ( self.bt_factory.get_array_type().new([param.t.box_type()]) @@ -743,7 +772,7 @@ def get_function_refs_of(self, etype: tp.Type, ) for param in api.parameters ] - rec_type, out_type = self._get_receiver_and_ret_type_of_func(api) + rec_type, out_type = self._get_receiver_and_ret_type_of_func(api) match, sub = func_type.t_constructor.match_function( rec_type, out_type, param_types, func_type, self.bt_factory, api.metadata @@ -773,6 +802,21 @@ def generate_type_params(self): # Add a bound to the generated type parameter blacklisted = self.BLACKLISTED_TYPES[ self.bt_factory.get_language()] + if self.bt_factory.get_language() == "swift": + whitelist = self.bt_factory.generic_whitelist + all_types = copy(self.get_reg_types()) + + for t in all_types: + if t not in whitelist: + if t.name.startswith('any '): + continue + blacklisted.add(t.name) + + alphabet = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'] + for a in alphabet: + if a not in blacklisted: + blacklisted.add(a) + blacklisted = set(blacklisted) bound = self.get_random_type(excluded=blacklisted).box_type() source = bound kwargs = {} diff --git a/src/generators/api/builder.py b/src/generators/api/builder.py index 9f7a3b00..b81875cf 100644 --- a/src/generators/api/builder.py +++ b/src/generators/api/builder.py @@ -11,16 +11,17 @@ from src.ir import BUILTIN_FACTORIES, types as tp, kotlin_types as kt from src.ir.builtins import BuiltinFactory from src.generators.api.api_graph import (APIGraph, IN, OUT, Method, - Constructor, Field, Parameter) + Constructor, Field, Parameter, NamedParameter) from src.generators.api.type_parsers import (TypeParser, KotlinTypeParser, - JavaTypeParser, ScalaTypeParser) + JavaTypeParser, ScalaTypeParser,SwiftTypeParser) PROTECTED = "protected" PUBLIC = "public" ROOT_CLASSES = { "java": "java.lang.Object", "kotlin": "kotlin.Any", - "scala": "scala.Any" + "scala": "scala.Any", + "swift": "swift.Any" } @@ -29,7 +30,7 @@ def __init__(self, target_language, **kwargs): self.target_language: str = target_language self.bt_factory: BuiltinFactory = BUILTIN_FACTORIES[target_language] self.api_language: str = None - + self.generic_whitelist = set() self.graph: nx.DiGraph = None self.subtyping_graph: nx.DiGraph = None @@ -76,11 +77,13 @@ def build_topological_sort(self, docs: dict) -> List[str]: for api_doc in docs.values(): name = api_doc["name"] self.api_language = api_doc.get("language", self.api_language) - super_types = { - self.parse_type(st, build_class_node=True) - for st in api_doc.get("implements", []) + api_doc.get( - "inherits", []) - } + super_types = set() + #exclude conditional inheritance + for st in api_doc.get("implements", []) + api_doc.get("inherits", []): + if isinstance(st,dict) and st.get("conditional",False): + continue + super_types.add(self.parse_type(st, build_class_node=True)) + dep_graph.add_node(name) parent = api_doc.get("parent") if parent: @@ -325,6 +328,9 @@ def get_api_outgoing_node(self, output_type: tp.Type): return target_node, kwargs def get_receiver_name(self, method_api: dict) -> str: + if self.api_language == "swift" and method_api.get("receiver",False): + return method_api.get("receiver") + if self.class_name: return self.class_name return method_api.get("receiver") @@ -344,7 +350,7 @@ def build_method_type_parameters( self._current_func_type_var_map = OrderedDict() self.rename_type_parameters( method_fqn, method_api["type_parameters"], - self._current_func_type_var_map + self._current_func_type_var_map,method_api=method_api ) type_parameters = list(self._current_func_type_var_map.values()) return type_parameters @@ -364,9 +370,9 @@ def build_method_node(self, method_api: dict, # Unable to parse type parameters return None parameters = [ - Parameter(self.parse_type(p), - self.get_type_parser().is_variable_argument(p)) - for p in method_api["parameters"] + Parameter(self.parse_type(p), + self.get_type_parser().is_variable_argument(p)) + for p in method_api["parameters"] ] if any(p.t is None for p in parameters): # Unable to parse parameter types @@ -422,10 +428,14 @@ def build_tentative_type(self, class_api): def build_class_node(self, class_api: dict) -> tp.Type: self.parent_cls = self.class_nodes.get(class_api.get("parent")) self.build_tentative_type(class_api) - super_types = { - self.parse_type(st, build_class_node=True) - for st in class_api["implements"] + class_api["inherits"] - } + api_doc = class_api + super_types = set() + for st in api_doc.get("implements", []) + api_doc.get("inherits", []): + if isinstance(st,dict) and st.get("conditional",False): + continue + super_types.add(self.parse_type(st, build_class_node=True)) + + if not super_types: super_types.add(self.parse_type(ROOT_CLASSES[self.api_language])) @@ -457,10 +467,66 @@ def build_class_node(self, class_api: dict) -> tp.Type: return class_node def build_subtyping_relations(self, class_api: dict): - super_types = { - self.parse_type(st, build_class_node=True) - for st in class_api["implements"] + class_api["inherits"] - } + api_doc = class_api + super_types = set() + for st in api_doc.get("implements", []) + api_doc.get("inherits", []): + if isinstance(st,dict) and st.get("conditional",False): + continue + super_types.add(self.parse_type(st, build_class_node=True)) + for st in class_api["implements"] + class_api["inherits"]: + st = self.parse_type(st) + self.generic_whitelist.add(st) + self.bt_factory.generic_whitelist = self.generic_whitelist + if not super_types: + super_types.add(self.bt_factory.get_any_type()) + for st in super_types: + kwargs = {} + source = st + if st.is_parameterized(): + source = st.t_constructor + kwargs["constraint"] = st.get_type_variable_assignments() + self.subtyping_graph.add_node(source) + # Do not connect a node with itself. + class_node = self.class_nodes[self.class_name] + if class_node != source: + self.subtyping_graph.add_edge(source, class_node, **kwargs) + + +class SwiftAPIGraphBuilder(APIGraphBuilder): + # named parameters TODO + def __init__(self, target_language, **kwargs): + super().__init__(target_language, **kwargs) + self.api_language = "swift" + self.protocols = set() + def parse_type(self, str_t: str, **kwargs) -> tp.Type: + return self.get_type_parser().parse_type(str_t,protocols=self.protocols) + def process_class(self, class_api: dict): + all_protocols = class_api.get("all_protocols",[]) + for p in all_protocols: + self.protocols.add(str(p)) + super().process_class(class_api) + + def get_type_parser(self): + return SwiftTypeParser( + self.target_language, + self.type_var_mappings, + self._current_func_type_var_map, + self._class_type_var_map, + self.parsed_types + ) + def parse_named_arguments(self, param: str): + return self.get_type_parser().parse_named_arguments(param,protocols=self.protocols) + def build_subtyping_relations(self, class_api: dict): + api_doc = class_api + super_types = set() + for st in api_doc.get("implements", []) + api_doc.get("inherits", []): + if isinstance(st,dict) and st.get("conditional",False): + continue + super_types.add(self.parse_type(st, build_class_node=True)) + for st in class_api["implements"] + class_api["inherits"]: + st = self.parse_type(st) + self.generic_whitelist.add(st) + self.bt_factory.generic_whitelist = self.generic_whitelist if not super_types: super_types.add(self.bt_factory.get_any_type()) for st in super_types: @@ -474,6 +540,181 @@ def build_subtyping_relations(self, class_api: dict): class_node = self.class_nodes[self.class_name] if class_node != source: self.subtyping_graph.add_edge(source, class_node, **kwargs) + + def process_methods(self, methods: List[dict]): + for method_api in methods: + if method_api["access_mod"] == PROTECTED: + continue + receiver_name = self.get_receiver_name(method_api) + try: + method_node = self.build_method_node(method_api, receiver_name) + if method_node is None: + continue + except NotImplementedError: + self._current_func_type_var_map = {} + continue + receiver = self.get_api_incoming_node(method_api) + receiver_ = None + if method_api.get("receiver",False): + receiver_ = self.parse_type(self.get_receiver_name(method_api)) + is_constructor = method_api["is_constructor"] + is_static = method_api["is_static"] + output_type = None + ret_type = method_api["return_type"] + if not is_constructor: + output_type = self.parse_type(ret_type) + if output_type is None: + self.graph.remove_node(method_node) + # Unable to parse output type + continue + else: + output_type = self.class_nodes[self.class_name] + non_letter_pattern = r'[^a-zA-Z]' + # Finding all non-letter characters + binary_op = re.findall(non_letter_pattern, method_api["name"]) + binary_op = ''.join(binary_op) + if binary_op and is_static: + is_static = False #hacking binary operators TODO + if not (is_constructor or is_static or receiver is None): + self.graph.add_edge(receiver, method_node, label=IN) + + elif not (receiver_ is None or is_constructor): + self.graph.add_edge(receiver_, method_node, label=IN) + + if (is_static or is_constructor) and self.parent_cls: + # Handle the members of non-static inner classes + self.graph.add_edge(self.parent_cls, method_node, label=IN) + out_node, kwargs = self.get_api_outgoing_node(output_type) + self.graph.add_edge(method_node, out_node, label=OUT, **kwargs) + self._current_func_type_var_map = {} + self.build_functional_interface( + method_api, getattr(method_node, "parameters", []), + output_type) + + def process_fields(self, fields: List[dict]): + for field_api in fields: + if field_api.get("conditional", False): + print('skipping',field_api.get("name"),'because of conditional fields') + continue + if field_api.get("type_parameters", []): + # TODO support parameterized fields + print('skipping',field_api.get("name"),'because of type parameters') + continue + if field_api.get("other_metadata",None): + if field_api.get("other_metadata").get("available_when",None): + print('skipping',field_api.get("name"),'because of available when, cond fields') + continue + receiver_name = self.get_receiver_name(field_api) + receiver = self.get_api_incoming_node(field_api) + prefix = receiver_name + "." if receiver_name else "" + if field_api["access_mod"] == PROTECTED: + continue + field_type = self.parse_type(field_api["type"]) + if field_type is None: + # Field type is unsupported + print('skipping',field_api.get("name"),'because of field type is unsupported') + continue + + if field_api["is_static"]: + continue + + else: + field_node = Field(field_api["name"], receiver_name) + + self.graph.add_node(field_node) + if receiver and not field_api["is_static"]: + # XXX: Maybe we also need to consider static fields called + # by a receiver. + self.graph.add_node(receiver) + self.graph.add_edge(receiver, field_node, label=IN) + if field_api["is_static"] and self.parent_cls: + # Handle fields of non-static inner classes. + self.graph.add_edge(self.parent_cls, field_node, label=IN) + out_node, kwargs = self.get_api_outgoing_node(field_type) + self.graph.add_edge(field_node, out_node, label=OUT, **kwargs) + + def build_method_node(self, method_api: dict, + receiver_name: str) -> Method: + method_fqn = ( + receiver_name + "." + method_api["name"] + if receiver_name + else method_api["name"] + ) + is_constructor = method_api["is_constructor"] + is_static = method_api["is_static"] + type_parameters = self.build_method_type_parameters(method_api, + method_fqn) + if is_constructor and (type_parameters or method_api["throws"]) or method_api["name"]=='init?' : + print('skipping',method_api.get("name"),'because of constructor type parameters or throws or init?') + # TODO support constructor type parameters and nullable constuctors + return None + throws = method_api["throws"] + + if any(t is None for t in type_parameters): + # Unable to parse type parameters + print('skipping',method_api.get("name"),'because couldnt parse type parameters') + return None + other_metadata = method_api.get("other_metadata", {}) + if throws: + other_metadata["throws"] = True + + if other_metadata.get("type_equality",None): + print('skipping',method_api.get("name"),'because of type equality') + return None #TODO equal types check + if other_metadata.get("unsupported",None): + print('skipping',method_api.get("name"),'because of unsupported') + return None #TODO unsupported e.g. exact type matching or conformation of a field/type parameter or unavailable type + + parameters = [] + for p in method_api["parameters"]: + + name,t = self.parse_named_arguments(p) + is_varibale_arg = self.get_type_parser().is_variable_argument(p) + if name: + parameter = NamedParameter(t,is_varibale_arg,name) + else: + parameter = Parameter(t,is_varibale_arg) + parameters.append(parameter) + if any(p.t is None for p in parameters): + # Unable to parse parameter types + return None + + if is_constructor: + method_node = Constructor(receiver_name, parameters, + other_metadata) + + + elif is_static: + method_node = Method(method_fqn, receiver_name, + parameters, type_parameters, other_metadata) + else: + method_node = Method(method_api["name"], receiver_name, parameters, + type_parameters, other_metadata) + self.graph.add_node(method_node) + return method_node + def build_topological_sort(self, docs: dict) -> List[str]: + dep_graph = nx.DiGraph() + for api_doc in docs.values(): + name = api_doc["name"] + self.api_language = api_doc.get("language", self.api_language) + super_types = set() + for st in api_doc.get("implements", []): + if st.get("conditional",None): + continue + super_types.add(self.parse_type(st, build_class_node=True)) + for st in api_doc.get("inherits", []): + super_types.add(self.parse_type(st, build_class_node=True)) + dep_graph.add_node(name) + parent = api_doc.get("parent") + if parent: + dep_graph.add_node(parent) + dep_graph.add_edge(parent, name) + for st in super_types: + if st == self.bt_factory.get_any_type(): + continue + dep_graph.add_node(st.name) + dep_graph.add_edge(st.name, name) + return list(nx.topological_sort(dep_graph)) class JavaAPIGraphBuilder(APIGraphBuilder): diff --git a/src/generators/api/nodes.py b/src/generators/api/nodes.py index 1f1520c6..4ec681c4 100644 --- a/src/generators/api/nodes.py +++ b/src/generators/api/nodes.py @@ -75,7 +75,7 @@ class Method(NamedTuple): cls: str parameters: List[Parameter] type_parameters: List[tp.TypeParameter] - metadata: dict + metadata: dict #swift: cannot reference mutating methods def __str__(self): type_parameters_str = "" @@ -120,9 +120,25 @@ def api_name(self): return self.get_name() +class NamedParameter(NamedTuple): + t: tp.Type + variable: bool + name: str + + def __str__(self): + return "{t!s}{suffix!s}".format( + t=str(self.t), + suffix="*" if self.variable else "" + ) + + __repr__ = __str__ + + def __hash__(self): + return hash((self.t, self.variable)) + class Constructor(NamedTuple): name: str - parameters: List[Parameter] + parameters: List[NamedParameter] metadata: dict def __str__(self): diff --git a/src/generators/api/type_parsers.py b/src/generators/api/type_parsers.py index 8cc2d68e..d3736d8b 100644 --- a/src/generators/api/type_parsers.py +++ b/src/generators/api/type_parsers.py @@ -5,7 +5,7 @@ from src import utils -from src.ir import (BUILTIN_FACTORIES, types as tp, kotlin_types as kt, +from src.ir import (BUILTIN_FACTORIES, types as tp, kotlin_types as kt, swift_types as swift, scala_types as sc) from src.ir.builtins import BuiltinFactory @@ -57,6 +57,392 @@ def parse_type(self, str_t: str) -> tp.Type: def is_variable_argument(self, str_t: str) -> bool: pass +class SwiftTypeParser(TypeParser): + FUNC_SEP_REGEX = re.compile(r" -> (?!(?:[^(]*\([^)]*\))*[^()]*\))") + COMMA_SEP_REGEX = re.compile(r"(?:[^, <(]|\([^)]*\)|<[^>]*>)+") + #FUNC_REGEX = re.compile(r"^\(.*\) -> .*") + FUNC_REGEX = re.compile(r"^\(.*\)(?: throws| rethrows)? -> .*") #would produce a false positive for a tuple with a closure + protocols = set() + def __init__(self, target_language: str, + class_type_name_map: Dict[str, tp.TypeParameter] = None, + func_type_name_map: Dict[str, tp.TypeParameter] = None, + classes_type_parameters: dict = None, + type_spec: Dict[str, tp.Type] = None, + mapped_types: Dict[str, tuple] = None): + super().__init__(target_language, class_type_name_map, + func_type_name_map, classes_type_parameters, + type_spec, mapped_types) + def is_func_type(self, str_t: str) -> bool: + return bool(re.match(self.FUNC_REGEX, str_t)) + def is_instance_type(self, str_t: str) -> bool: + segs = utils.top_level_split(str_t, delim=".") + + if len(segs) == 1: + return False + parent = ".".join(segs[:-1]) + if parent.endswith(">"): + return True + return parent in self.type_spec + def split_ignoring_brackets(self,s,c): + parts = [] + curr = [] + bracket_level = 0 + diamond_level = 0 + for char in s: + if char == '(': + bracket_level += 1 + elif char == ')': + bracket_level -= 1 + elif char == '<': + diamond_level += 1 + elif char == '>': + diamond_level -= 1 + if char == c and bracket_level == 0 and diamond_level == 0: #TODO check if this is correct + parts.append(''.join(curr).strip()) + curr = [] + else: + curr.append(char) + + parts.append(''.join(curr).strip()) + return parts + + def _init_instance_type_classifier(self, enclosing_type: tp.Type, + base: str): + is_raw_type = isinstance(enclosing_type, self.bt_factory.get_raw_cls()) + name = enclosing_type.name + "." + base + if is_raw_type: + name = enclosing_type.get_name() + "." + base + # Now check the type spec to determine whether we have run into an + # a static class. In this case, the enclosing type is not raw. + if not isinstance(self.type_spec.get(name), tp.InstanceTypeConstructor): + is_raw_type = False + if not enclosing_type.is_parameterized() and not is_raw_type: + return self.type_spec.get(name, tp.SimpleClassifier(name)) + + type_parameters = enclosing_type.t_constructor.type_parameters + # If the enclosing type is raw, then we convert it into a + # parameterized type by instantiating with wildcard types. + # For example, Foo.Bar becomes Foo.Bar + type_args = ( + [tp.WildCardType() for _ in range(len(type_parameters))] + if is_raw_type + else enclosing_type.type_args + ) + return tp.InstanceTypeConstructor( + name, enclosing_type.t_constructor, base).new(type_args) + + def _init_instance_type_parameterized(self, enclosing_type: tp.Type, + base: str, type_args_str: str): + is_raw_type = isinstance(enclosing_type, self.bt_factory.get_raw_cls()) + name = enclosing_type.name + "." + base + if is_raw_type: + name = enclosing_type.get_name() + "." + base + # Now check the type spec to determine whether we have run into an + # a static class. In this case, the enclosing type is not raw. + if not isinstance(self.type_spec.get(name), tp.InstanceTypeConstructor): + is_raw_type = False + + type_args = utils.top_level_split(type_args_str) + new_type_args = [] + for type_arg in type_args: + new_type_args.append(self.parse_type(type_arg)) + type_var_map = self.classes_type_parameters.get(name) or {} + values = list(type_var_map.values()) + type_vars = [ + ( + values[i] + if i < len(values) + else tp.TypeParameter(name + ".T" + str(i + 1)) + ) + for i in range(len(new_type_args)) + ] + if not enclosing_type.is_parameterized() and not is_raw_type: + parsed_t = self.type_spec.get(name, tp.TypeConstructor(name, + type_vars)) + return parsed_t.new(new_type_args) + # If the enclosing type is raw, then we convert it into a + # parameterized type by instantiating with wildcard types. + type_parameters = enclosing_type.t_constructor.type_parameters + type_args = ( + [tp.WildCardType() for _ in range(len(type_parameters))] + if is_raw_type + else enclosing_type.type_args + ) + return tp.InstanceTypeConstructor( + name, enclosing_type.t_constructor, base, type_vars).new( + type_args + new_type_args) + + def parse_instance_type(self, str_t: str) -> tp.ParameterizedType: + # XXX revisit + segs = utils.top_level_split(str_t, delim=".") + if len(segs) == 1: + return False + parent, base = ".".join(segs[:-1]), segs[-1] + enclosing_type = self.parse_reg_type(parent) + segs = base.split("<", 1) + if len(segs) == 1: + return self._init_instance_type_classifier(enclosing_type, base) + base, type_args_str = segs[0], segs[1][:-1] + return self._init_instance_type_parameterized(enclosing_type, base, + type_args_str) + + def parse_tuple_type(self, str_t: str) -> tp.ParameterizedType: + + str_t = str_t[1:-1] + segs = str_t.split(', ') + + + param_types = [ + self.parse_type(param_str.strip().split(": ", 1)[-1]) + for param_str in segs + ] + + return self.bt_factory.get_tuple_type( + len(param_types)).new(param_types) + + def parse_function_type(self, str_t: str) -> tp.ParameterizedType: + + + segs = self.FUNC_SEP_REGEX.split(str_t, 1) + + assert len(segs) == 2 + #drop 'throws' if it's there, also drop the name of the argument + if segs[0][-7:] == ' throws': + segs[0] = segs[0][:-7] + + #segs[0] = segs[0].split(': ')[-1] TODO no splitting on ': ' for now + segs[0] = segs[0][1:-1] + param_strs = self.split_ignoring_brackets(segs[0],',') + + + param_types = [ + self.parse_type(param_str) + for param_str in param_strs + ] + ret_type = self.parse_type(segs[1].lstrip()) + + return self.bt_factory.get_function_type( + len(param_types)).new(param_types + [ret_type]) + + def parse_wildcard(self, str_t) -> tp.WildCardType: + pass + + def parse_type_parameter(self, str_t: str, protocols, + keep: bool = False) -> tp.TypeParameter: + if len(protocols) > 0: + self.protocols = copy(protocols) + segs = str_t.split(" extends ", 1) + old_class_type_map = copy(self.class_type_name_map) + if keep: + # We handle the following case: + # class Foo { + # > void test() + # } + # In the above case, the type variable T in C refers to + # the newly introduced function type parameter. + self.class_type_name_map = {k: v + for k, v in old_class_type_map.items() + if segs[0] != k} + + type_var_map = copy(self.class_type_name_map) + type_var_map.update(self.func_type_name_map) + if keep: + # It might be the case where the names of function's and class's + # type parameters conflict. In this case, we should not replace + # the name of a function's type parameter with the name + # of the corresponding class type parameter. + type_var_map = {} + + if len(segs) == 1: + return type_var_map.get(str_t, tp.TypeParameter(str_t)) + if " & " in segs[1]: + # TODO We currently don't support intersection types + return None + bound = self.parse_type(segs[1]) + if bound and type_var_map.get(segs[0],False): + parsed_t = tp.TypeParameter(type_var_map.get(segs[0]), bound=bound) #TODO bound + else: + parsed_t = type_var_map.get(segs[0], + tp.TypeParameter(segs[0], bound=bound)) + self.class_type_name_map = old_class_type_map + return parsed_t + + def parse_reg_type(self, str_t: str) -> tp.Type: + + if str_t == '()': + str_t = 'Swift.Void' + if str_t.startswith("inout "): + return swift.ReferenceType().new([self.parse_type(str_t[6:])]) + builtins = ["Swift.Character","Swift.Int","Swift.Long","Swift.Float","Swift.Double","Swift.Bool","Swift.String","Swift.Any","Swift.Array","Swift.Void"] + if str_t in builtins: + return self._parse_type(str_t) + + if str_t.startswith("Self."): + return self.parse_type(str_t.split("Self.")[1]) #XXX + + segs = str_t.split(".") + is_type_var = ( + len(segs) == 1 or + ( + " extends " in str_t and + "." not in str_t.split(" extends ")[0] + ) + ) + #check if parameter is a field of a type argument like Element.foo for Array + check = [True for key in self.classes_type_parameters for k, v in self.classes_type_parameters[key].items() if str_t.split('.')[0] in k] + if len(segs)!=1 and any(check): + return None + + + + if is_type_var: + return self.parse_type_parameter(str_t,self.protocols) + if self.is_instance_type(str_t): + return self.parse_instance_type(str_t) + segs = str_t.split("<", 1) + if len(segs) == 1: + parsed_t = tp.SimpleClassifier(str_t) + t = self.type_spec.get(str_t, parsed_t) + if isinstance(t, tp.TypeConstructor): + # The type corresponds to a type constructor, but apparently, + # it's used as a raw type. + return self.bt_factory.get_raw_type(t) + return t + base, type_args_str = segs[0], segs[1][:-1] + + type_args = utils.top_level_split(type_args_str) + new_type_args = [] + for type_arg in type_args: + new_type_args.append(self.parse_type(type_arg)) + type_var_map = self.classes_type_parameters.get(base) or {} + values = list(type_var_map.values()) + type_vars = [ + ( + values[i] + if i < len(values) + else tp.TypeParameter(base + ".T" + str(i + 1)) + ) + for i in range(len(new_type_args)) + ] + parsed_t = self.type_spec.get(base, tp.TypeConstructor(base, + type_vars)) + return parsed_t.new(new_type_args) + + def parse_named_arguments(self, str_t: str,protocols) -> (str, tp.Type): + arg_name = None + if len(protocols) > 0: + self.protocols = copy(protocols) + protocols = self.protocols + if ': ' in str_t: + splitted = self.split_ignoring_brackets(str_t,':') #TODO SPLIT + arg_name = splitted[0] if len(splitted) > 1 else None + str_t = splitted[-1] + return arg_name, self.parse_type(str_t) + def parse_type(self, str_t: str, protocols=set()) -> tp.Type: + + black_list = ['Float16','Float80'] + if any(t in str_t for t in black_list): + return None + + if str_t == '()' or str_t=='': + str_t = 'Swift.Void' + tf = self.bt_factory + + + if len(protocols) > 0: + self.protocols = copy(protocols) + #here str_t might be a Dict (for interfaces) or string, if it's a Dict, we need to 'unwrap' it to get the name string + protocols = self.protocols + + + if isinstance(str_t, str) and 'Self.'in str_t: + str_t = str_t.replace('Self.','') + if isinstance(str_t, str) and str_t in self.protocols: + print ('str_t in protocols = ', str_t) + str_t = 'any ' + str_t + if isinstance(str_t, dict): + #XXX revisit, appending 'any' to the start of swift protocols + + str_t = 'any ' + str_t['name'] + if isinstance(str_t, str) and '...' in str_t: #TODO varargs + return None + + + if self.is_func_type(str_t) and not str_t.endswith(")?"): #causes a problem with tuples + return self.parse_function_type(str_t) + if str_t[0] == '(' and str_t[-1] == ')': + return self.parse_tuple_type(str_t) + + + if str_t.startswith("[") and str_t.endswith("]"): + if ' : ' in str_t: + print ('str_t = ', str_t) + tp1 = str_t.split(' : ')[0][1:] + tp2 = str_t.split(' : ')[1][:-1] + tp1 = tp1 + t = 'Swift.Dictionary<'+tp1+','+tp2+'>' + return None + return self.parse_type(t) + str_t = str_t[1:-1] + return tf.get_array_type().new([self.parse_type(str_t)]) + + + + else: + return self._parse_type(str_t) + + @map_type + #TODO + def _parse_type(self, str_t: str) -> tp.Type: + tf = self.bt_factory + + if str_t.endswith("?"): + # This is a nullable type. + str_t = str_t[:-1] + if str_t.startswith("(("): + str_t = str_t[1:-1] + return swift.NullableType().new([self.parse_type(str_t)]) + if str_t in ["Swift.Character"]: + return tf.get_char_type() + elif str_t in ['Swift.Int','Int']: + return tf.get_integer_type() + elif str_t in ["Swift.Long"]: + return tf.get_long_type() + elif str_t in ["Swift.Float","Float"]: + return tf.get_float_type() + elif str_t in ["Swift.Double"]: + return tf.get_double_type() + elif str_t in ["Swift.Bool","Bool"]: + return tf.get_boolean_type() + elif str_t == "Swift.String": + return tf.get_string_type() + elif str_t == "Swift.Any": + return tf.get_any_type() + elif str_t in ["Swift.Array","Array"]: + return tf.get_array_type() + elif str_t in ["Swift.Void","Void","void"]: + return tf.get_void_type() + else: + return self.parse_reg_type(str_t) + + def is_variable_argument(self, str_t: str) -> bool: + return str_t.endswith("...") + + + + + + + + + + + + + + + + class JavaTypeParser(TypeParser): def __init__(self, target_language: str, diff --git a/src/generators/api/utils.py b/src/generators/api/utils.py index 18564acf..ae41a60b 100644 --- a/src/generators/api/utils.py +++ b/src/generators/api/utils.py @@ -7,7 +7,7 @@ from src.config import cfg from src.ir import types as tp, type_utils as tu from src.generators.api.nodes import Method - +from src.ir import swift_types as swift class UpperBoundConstraint(NamedTuple): bound: tp.Type @@ -196,7 +196,11 @@ def _instantiate_type_variable_with_constraints( return eqs[0] if len(new_bounds) == 1: - return new_bounds[0] + reg_types = api_graph.get_reg_types() + candidates = [t for t in reg_types if t.is_subtype(new_bounds[0]) and not t.name.startswith('any ')] + if candidates: + return tu.select_random_type(candidates, uniform=True) + return new_bounds[0] #TODO swift, returns bound return None diff --git a/src/ir/__init__.py b/src/ir/__init__.py index 4d9745a7..d6d6797a 100644 --- a/src/ir/__init__.py +++ b/src/ir/__init__.py @@ -2,11 +2,14 @@ from src.ir.groovy_types import GroovyBuiltinFactory from src.ir.java_types import JavaBuiltinFactory from src.ir.scala_types import ScalaBuiltinFactory +from src.ir.swift_types import SwiftBuiltinFactory + BUILTIN_FACTORIES = { "kotlin": KotlinBuiltinFactory(), "groovy": GroovyBuiltinFactory(), "java": JavaBuiltinFactory(), - "scala": ScalaBuiltinFactory() + "scala": ScalaBuiltinFactory(), + "swift":SwiftBuiltinFactory() } diff --git a/src/ir/ast.py b/src/ir/ast.py index fb1efeb9..cded0b7f 100644 --- a/src/ir/ast.py +++ b/src/ir/ast.py @@ -305,10 +305,10 @@ class CallArgument(Node): A call argument can also be named (i.e., param_name = expr). In this case the field 'name' is not None. """ - - def __init__(self, expr: Expr, name: str = None): + def __init__(self, expr: Expr, name: str = None, inout=False): self.expr = expr self.name = name + self.inout = inout # For Swift def children(self): return [self.expr] @@ -1150,6 +1150,10 @@ class EqualityExpr(BinaryOp): "scala": [ Operator('=='), Operator('=', is_not=True) + ], + "swift": [ + Operator('=='), + Operator('=', is_not=True) ] } @@ -1185,6 +1189,12 @@ class ComparisonExpr(BinaryOp): Operator('>='), Operator('<'), Operator('<=') + ], + "swift": [ + Operator('>'), + Operator('>='), + Operator('<'), + Operator('<=') ] } @@ -1221,6 +1231,12 @@ class ArithExpr(BinaryOp): Operator('/'), Operator('*') ], + "swift": [ + Operator('+'), + Operator('-'), + Operator('/'), + Operator('*') + ], } @@ -1244,10 +1260,11 @@ def update_children(self, children): class New(Expr): def __init__(self, class_type: types.Type, args: List[Expr], - receiver: Expr = None): + receiver: Expr = None, names: List[str] = []): self.class_type = class_type self.args = args self.receiver = receiver + self.names = names def has_variable(self): return any(e.has_variable() for e in self.args) @@ -1320,7 +1337,7 @@ class FunctionCall(Expr): def __init__(self, func: str, args: List[CallArgument], receiver: Expr = None, type_args: List[types.Type] = [], - is_ref_call: bool = False): + is_ref_call: bool = False, names: List[str] = [],throws=False): self.func = func self.args = args self.receiver = receiver @@ -1328,6 +1345,8 @@ def __init__(self, func: str, args: List[CallArgument], self.is_ref_call = is_ref_call self._can_infer_type_args = False self.type_parameters = [] + self.names = names + self.throws = throws def has_variable(self): args = [e.expr for e in self.args] @@ -1399,11 +1418,12 @@ class FunctionReference(Expr): NEW_REF = "__init__" def __init__(self, func: str, receiver: Expr, signature: types.Type, - function_type: types.ParameterizedType): + function_type: types.ParameterizedType, named_parameters=[]): self.func = func self.receiver = receiver self.signature = signature self.function_type = function_type + self.named_parameters = named_parameters #for Swift, parameters are named by default def has_variable(self): return self.receiver and self.receiver.has_variable() diff --git a/src/ir/swift_types.py b/src/ir/swift_types.py new file mode 100644 index 00000000..22d54cb2 --- /dev/null +++ b/src/ir/swift_types.py @@ -0,0 +1,495 @@ +# pylint: disable=abstract-method, useless-super-delegation,too-many-ancestors +from typing import List + +import src.ir.types as tp + +import src.ir.builtins as bt + + +class SwiftBuiltinFactory(bt.BuiltinFactory): + + generic_whitelist = set() + def get_language(self): + return "swift" + def get_generic_whitelist(self): + return self.generic_whitelist + def get_builtin(self): + return SwiftBuiltin + + def get_void_type(self): + return VoidType() + + def get_any_type(self): + return AnyType() + + def get_number_type(self): + return NumberType() + + def get_integer_type(self, primitive=False): + return IntegerType() + def get_byte_type(self, primitive=False): + return ByteType() + + def get_short_type(self, primitive=False): + return ShortType() + + def get_long_type(self, primitive=False): + return LongType() + + def get_float_type(self, primitive=False): + return FloatType() + + def get_double_type(self, primitive=False): + return DoubleType() + + def get_big_decimal_type(self): + return DoubleType() + + def get_big_integer_type(self): + # FIXME + return IntegerType() + + def get_boolean_type(self, primitive=False): + return BooleanType() + + def get_char_type(self, primitive=False): + return CharType() + + def get_string_type(self): + return StringType() + + def get_array_type(self): + return ArrayType() + + def get_function_type(self, nr_parameters=0): + return FunctionType(nr_parameters) + + def get_tuple_type(self, nr_parameters=0): + return TupleType(nr_parameters) + + + + def get_non_nothing_types(self): + types = super().get_non_nothing_types() + + return types + + def get_raw_type(self, t_constructor): + return RawType(t_constructor) + + def get_raw_cls(self): + return RawType + + +class SwiftBuiltin(tp.Builtin): + def __str__(self): + return str(self.name) + "(swift-builtin)" + + def is_primitive(self): + return False + + +class AnyType(SwiftBuiltin, ): + def __init__(self, name="Any"): + super().__init__(name) + + def get_builtin_type(self): + return bt.Any + + + + +class VoidType(AnyType): + def __init__(self, name="Void"): + super().__init__(name) + self.supertypes.append(AnyType()) + + def get_builtin_type(self): + return bt.Void + + +class NumberType(AnyType): + def __init__(self, name="Number"): + super().__init__(name) + self.supertypes.append(AnyType()) + + def get_builtin_type(self): + return bt.Number + +class ByteType(NumberType): + def __init__(self, name="Byte"): + super().__init__(name) + self.supertypes.append(NumberType()) + + def get_builtin_type(self): + return bt.Byte +class ShortType(NumberType): + def __init__(self, name="Short"): + super().__init__(name) + self.supertypes.append(NumberType()) + + def get_builtin_type(self): + return bt.Short +class LongType(NumberType): + def __init__(self, name="Long"): + super().__init__(name) + self.supertypes.append(NumberType()) + + def get_builtin_type(self): + return bt.Long + + +class IntegerType(NumberType): + """ + Represents the Swift Int type, supertypes taken from https://developer.apple.com/documentation/swift/int + """ + def __init__(self, name="Int"): + super().__init__(name) + self.supertypes.append(NumberType()) + supertypes = [tp.SimpleClassifier("any Swift.AdditiveArithmetic"), + tp.SimpleClassifier("any Swift.BinaryInteger"), + tp.SimpleClassifier("any Swift.CVarArg"), + tp.SimpleClassifier("any Swift.CodingKeyRepresentable"), + tp.SimpleClassifier("any Swift.Comparable"), + tp.SimpleClassifier("any Swift.CustomReflectable"), + tp.SimpleClassifier("any Swift.CustomStringConvertible"), + tp.SimpleClassifier("any Swift.Decodable"), + tp.SimpleClassifier("any Swift.Encodable"), + tp.SimpleClassifier("any Swift.Equatable"), + tp.SimpleClassifier("any Swift.ExpressibleByIntegerLiteral"), + tp.SimpleClassifier("any Swift.FixedWidthInteger"), + tp.SimpleClassifier("any Swift.Hashable"), + tp.SimpleClassifier("any Swift.LosslessStringConvertible"), + tp.SimpleClassifier("any Swift.MirrorPath"), + tp.SimpleClassifier("any Swift.Numeric"), + tp.SimpleClassifier("any Swift.SIMDScalar"), + tp.SimpleClassifier("any Swift.SignedInteger"), + tp.SimpleClassifier("any Swift.SignedNumeric"), + tp.SimpleClassifier("any Swift.Strideable")] + for supertype in supertypes: + self.supertypes.append(supertype) + + + + + def get_builtin_type(self): + return bt.Integer + + + + +class FloatType(NumberType): + """ + Represents the Swift Float type, supertypes taken from https://developer.apple.com/documentation/swift/float + """ + def __init__(self, name="Float"): + super().__init__(name) + self.supertypes.append(NumberType()) + supertypes = [tp.SimpleClassifier("any Swift.AdditiveArithmetic"), + tp.SimpleClassifier("any Accelerate.BNNSScalar"), + tp.SimpleClassifier("any Swift.BinaryFloatingPoint"), + tp.SimpleClassifier("any Swift.CVarArg"), + tp.SimpleClassifier("any Swift.Comparable"), + tp.SimpleClassifier("any Swift.CustomDebugStringConvertible"), + tp.SimpleClassifier("any Swift.CustomReflectable"), + tp.SimpleClassifier("any Swift.CustomStringConvertible"), + tp.SimpleClassifier("any Swift.Decodable"), + tp.SimpleClassifier("any Swift.Encodable"), + tp.SimpleClassifier("any Swift.Equatable"), + tp.SimpleClassifier("any Swift.ExpressibleByFloatLiteral"), + tp.SimpleClassifier("any Swift.ExpressibleByIntegerLiteral"), + tp.SimpleClassifier("any Swift.FloatingPoint"), + tp.SimpleClassifier("any Swift.Hashable"), + tp.SimpleClassifier("any Swift.LosslessStringConvertible"), + tp.SimpleClassifier("any Coreml.MLShapedArrayScalar"), + tp.SimpleClassifier("any Swift.Numeric"), + tp.SimpleClassifier("any Swift.SIMDScalar"), + tp.SimpleClassifier("any Swift.SignedNumeric"), + tp.SimpleClassifier("any Swift.Strideable"), + tp.SimpleClassifier("any Swift.TextOutputStreamable"), + tp.SimpleClassifier("any Accelerate.vDSP_DiscreteFourierTransformable"), + tp.SimpleClassifier("any Accelerate.vDSP_FloatingPointBiquadFilterable"), + tp.SimpleClassifier("any Accelerate.vDSP_FloatingPointConvertable"), + tp.SimpleClassifier("any Accelerate.vDSP_FloatingPointDiscreteFourierTransformable"), + tp.SimpleClassifier("any Accelerate.vDSP_FloatingPointGeneratable")] + for supertype in supertypes: + self.supertypes.append(supertype) + + def get_builtin_type(self): + return bt.Float + + +class DoubleType(NumberType): + """ + Represents the Swift Double type, supertypes taken from https://developer.apple.com/documentation/swift/double + """ + def __init__(self, name="Double"): + super().__init__(name) + self.supertypes.append(NumberType()) + supertypes = [tp.SimpleClassifier("any Swift.AdditiveArithmetic"), + tp.SimpleClassifier("any Swift.BinaryFloatingPoint"), + tp.SimpleClassifier("any Swift.CVarArg"), + tp.SimpleClassifier("any Swift.Comparable"), + tp.SimpleClassifier("any Swift.CustomDebugStringConvertible"), + tp.SimpleClassifier("any Swift.CustomReflectable"), + tp.SimpleClassifier("any Swift.CustomStringConvertible"), + tp.SimpleClassifier("any Swift.Decodable"), + tp.SimpleClassifier("any Swift.Encodable"), + tp.SimpleClassifier("any Swift.Equatable"), + tp.SimpleClassifier("any Swift.ExpressibleByFloatLiteral"), + tp.SimpleClassifier("any Swift.ExpressibleByIntegerLiteral"), + tp.SimpleClassifier("any Swift.FloatingPoint"), + tp.SimpleClassifier("any Swift.Hashable"), + tp.SimpleClassifier("any Swift.LosslessStringConvertible"), + tp.SimpleClassifier("any Coreml.MLShapedArrayScalar"), + tp.SimpleClassifier("any Swift.Numeric"), + tp.SimpleClassifier("any Swift.SIMDScalar"), + tp.SimpleClassifier("any Swift.SignedNumeric"), + tp.SimpleClassifier("any Swift.Strideable"), + tp.SimpleClassifier("any Swift.TextOutStreamable"), + tp.SimpleClassifier("any Accelerate.vDSP_DiscreteFourierTransformable"), + tp.SimpleClassifier("any Accelerate.vDSP_FloatingPointBiquadFilterable"), + tp.SimpleClassifier("any Accelerate.vDSP_FloatingPointConvertable"), + tp.SimpleClassifier("any Accelerate.vDSP_FloatingPointDiscreteFourierTransformable"), + tp.SimpleClassifier("any Accelerate.vDSP_FloatingPointGeneratable")] + for supertype in supertypes: + self.supertypes.append(supertype) + + + def get_builtin_type(self): + return bt.Double + + +class CharType(AnyType): + """ + Represents the Swift Character type, supertypes taken from https://developer.apple.com/documentation/swift/character + """ + def __init__(self, name="Character"): + super().__init__(name) + self.supertypes.append(AnyType()) + supertypes = [tp.SimpleClassifier("any Swift.Comparable"), + tp.SimpleClassifier("any Swift.CustomDebugStringConvertible"), + tp.SimpleClassifier("any Swift.CustomReflectable"), + tp.SimpleClassifier("any Swift.CustomStringConvertible"), + tp.SimpleClassifier("any Swift.Equatable"), + tp.SimpleClassifier("any Swift.ExpressibleByExtendedGraphemeClusterLiteral"), + tp.SimpleClassifier("any Swift.ExpressibleByUnicodeScalarLiteral"), + tp.SimpleClassifier("any Swift.Hashable"), + tp.SimpleClassifier("any Swift.LosslessStringConvertible"), + tp.SimpleClassifier("any Swift.RegexComponent"), + tp.SimpleClassifier("any Swift.TextOutputStreamable")] + for supertype in supertypes: + self.supertypes.append(supertype) + + def get_builtin_type(self): + return bt.Char + + +class StringType(AnyType): + """ + Represents the Swift String type, supertypes taken from https://developer.apple.com/documentation/swift/string + """ + def __init__(self, name="String"): + super().__init__(name) + self.supertypes.append(AnyType()) + supertypes = [tp.SimpleClassifier("any Swift.BidirectionalCollection"), + tp.SimpleClassifier("any Swift.CVarArg"), + tp.SimpleClassifier("any Swift.CodingKeyRepresentable"), + tp.SimpleClassifier("any Swift.Collection"), + tp.SimpleClassifier("any Swift.Comparable"), + tp.SimpleClassifier("any Swift.CustomDebugStringConvertible"), + tp.SimpleClassifier("any Swift.CustomReflectable"), + tp.SimpleClassifier("any Swift.CustomStringConvertible"), + tp.SimpleClassifier("any Swift.Decodable"), + tp.SimpleClassifier("any Swift.Encodable"), + tp.SimpleClassifier("any Swift.Equatable"), + tp.SimpleClassifier("any Swift.ExpressibleByExtendedGraphemeClusterLiteral"), + tp.SimpleClassifier("any Swift.ExpressibleByStringInterpolation"), + tp.SimpleClassifier("any Swift.ExpressibleByStringLiteral"), + tp.SimpleClassifier("any Swift.ExpressibleByUnicodeScalarLiteral"), + tp.SimpleClassifier("any Swift.Hashable"), + tp.SimpleClassifier("any Swift.LosslessStringConvertible"), + tp.SimpleClassifier("any Swift.MirrorPath"), + tp.SimpleClassifier("any Swift.RangeReplaceableCollection"), + tp.SimpleClassifier("any Swift.RegexComponent"), + tp.SimpleClassifier("any Swift.StringProtocol"), + tp.SimpleClassifier("any Swift.TextOutputStream"), + tp.SimpleClassifier("any Swift.TextOutputStreamable")] + for supertype in supertypes: + self.supertypes.append(supertype) + def get_builtin_type(self): + return bt.String + + +class BooleanType(AnyType): + """ + Represents the Swift Bool type, supertypes taken from https://developer.apple.com/documentation/swift/bool + """ + def __init__(self, name="Bool"): + super().__init__(name) + self.supertypes.append(AnyType()) + supertypes = [tp.SimpleClassifier("any Accelerate.BNNSScalar"), + tp.SimpleClassifier("any Swift.CVarArg"), + tp.SimpleClassifier("any Swift.CustomReflectable"), + tp.SimpleClassifier("any Swift.CustomStringConvertible"), + tp.SimpleClassifier("any Swift.Decodable"), + tp.SimpleClassifier("any Swift.Encodable"), + tp.SimpleClassifier("any Swift.Equatable"), + tp.SimpleClassifier("any Swift.ExpressibleByBooleanLiteral"), + tp.SimpleClassifier("any Swift.Hashable"), + tp.SimpleClassifier("any Swift.LosslessStringConvertible")] + for supertype in supertypes: + self.supertypes.append(supertype) + def get_builtin_type(self): + return bt.Boolean + + +class RawType(tp.SimpleClassifier): + def __init__(self, t_constructor: tp.TypeConstructor): + self._name = t_constructor.name + self.name = f"Raw{self._name}" + self.t_constructor = t_constructor + self.supertypes = [] + for supertype in t_constructor.supertypes: + if not supertype.is_parameterized(): + self.supertypes.append(supertype) + else: + # Consider B : A + # We convert the supertype A to A. + sub = {type_param: tp.WildCardType() + for type_param in supertype.t_constructor.type_parameters} + self.supertypes.append(tp.substitute_type(supertype, sub)) + self.supertypes.append(AnyType()) + + def get_name(self): + return self._name + + +class ArrayType(tp.TypeConstructor, AnyType): + def __init__(self, name="Array"): + # in swift arrays are covariant + super().__init__(name, [tp.TypeParameter("T", variance=tp.Covariant)]) #TODO check varivance + self.supertypes.append(AnyType()) + + + + +class ReferenceType(tp.TypeConstructor): + """ + a type representing inout parameters; inout Int -> Reference + """ + def __init__(self, name="Reference"): + super().__init__(name, [tp.TypeParameter("T", variance=tp.Invariant)]) #TODO check varivance + +class NullableType(tp.TypeConstructor): + """ + a type representing nullable types; Int? -> Nullable + """ + def __init__(self, name="Nullable"): + super().__init__(name, [tp.TypeParameter("T", variance=tp.Covariant)]) #TODO check varivance + + +class TupleType(tp.TypeConstructor): + """ + Represents a tuple type with a fixed number of elements. + """ + is_native = True + + def __init__(self, nr_type_parameters: int): + name = "Tuple" + str(nr_type_parameters) + type_parameters = [ + tp.TypeParameter("A" + str(i), tp.Invariant) + for i in range(1, nr_type_parameters + 1) + ] + self.nr_type_parameters = nr_type_parameters + super().__init__(name, type_parameters) + + +class FunctionType(tp.TypeConstructor, AnyType): + """ + Represents closures + """ + is_native = True + + def __init__(self, nr_type_parameters: int): + name = "Function" + str(nr_type_parameters) + #name = '' + type_parameters = [ + tp.TypeParameter("A" + str(i), tp.Contravariant) + for i in range(1, nr_type_parameters + 1) + ] + [tp.TypeParameter("R", tp.Covariant)] + self.nr_type_parameters = nr_type_parameters + super().__init__(name, type_parameters) + #self.supertypes.append(AnyType()) TODO + + @classmethod + def match_function(cls, receiver_type: tp.Type, ret_type: tp.Type, + param_types: List[tp.Type], + target_type: tp.Type, + bt_factory: bt.BuiltinFactory, + func_metadata: dict = {}): + import src.ir.type_utils as tu + + api_type = FunctionType( + len(param_types)).new(param_types + [ret_type]) + sub = tu.unify_types(target_type, api_type, bt_factory, same_type=True) + if any(v == bt_factory.get_void_type() + for v in sub.values()): + # We don't want to match something that is needed to be + # instantiated with void, e.g., + # Consumer != Function + return False, None + if sub or target_type == api_type: + return True, sub + return False, None + + @classmethod + def get_param_types(cls, etype: tp.ParameterizedType): + return etype.type_args[:-1] + + @classmethod + def get_ret_type(cls, etype: tp.ParameterizedType): + return etype.type_args[-1] + + +class FunctionTypeWithReceiver(FunctionType): + is_native = True + + def __init__(self, nr_type_parameters: int, is_suspend: bool = False): + super().__init__(nr_type_parameters + 1, is_suspend) + + @classmethod + def match_function(cls, receiver_type: tp.Type, ret_type: tp.Type, + param_types: List[tp.Type], + target_type: tp.Type, + bt_factory: bt.BuiltinFactory, + func_metadata: dict = {}): + is_suspend = target_type.t_constructor.is_suspend + if func_metadata.get("is_suspend", False) != is_suspend: + return False, None + if receiver_type is None: + # A receiver is not found. Therefore, there is not match. + return False, None + import src.ir.type_utils as tu + api_type = FunctionTypeWithReceiver( + len(param_types)).new([receiver_type] + param_types + [ret_type]) + sub = tu.unify_types(target_type, api_type, bt_factory, same_type=True) + if any(v == bt_factory.get_void_type() + for v in sub.values()): + # We don't want to match something that is needed to be + # instantiated with void, e.g., + # Consumer != Function + return False, None + if sub or target_type == api_type: + return True, sub + return False, None + + @classmethod + def get_param_types(cls, etype: tp.ParameterizedType): + return etype.type_args[1:-1] + + @classmethod + def get_ret_type(cls, etype: tp.ParameterizedType): + return etype.type_args[-1] + +Float = FloatType() diff --git a/src/ir/type_utils.py b/src/ir/type_utils.py index 6114e297..22139d21 100644 --- a/src/ir/type_utils.py +++ b/src/ir/type_utils.py @@ -2,6 +2,7 @@ from typing import TypeVar, List, Tuple, Dict, Callable, Set, Iterable import networkx as nx +from src.ir import swift_types as swift from src.config import cfg import src.ir.types as tp @@ -667,6 +668,10 @@ def _find_candidate_types_for_bound( a_types.append(t) else: a_types = [bound] + language = rec_bound_handler.__self__.bt_factory.get_language() + if language == 'swift': + candidates = [t for t in types if t.is_subtype(bound) and not t.name.startswith('any ')] + a_types = candidates for i, t in enumerate(a_types): if t.is_parameterized(): a_types[i] = t.to_variance_free() @@ -793,6 +798,11 @@ def _compute_type_variable_assignments( t_bound = type_var_map[t_param.bound] except KeyError: t_bound = t_param.bound + language = rec_bound_handler.__self__.bt_factory.get_language() + if language == 'swift': + bound = t_bound + candidates = [t for t in types if t.is_subtype(bound) and not t.is_type_constructor()] + a_types = candidates if t_bound.is_wildcard() and t_bound.is_contravariant(): # Here we have the following case: diff --git a/src/ir/types.py b/src/ir/types.py index d1fb9fa3..c3cefc7b 100644 --- a/src/ir/types.py +++ b/src/ir/types.py @@ -533,8 +533,11 @@ def is_subtype(self, other: Type): return matched_supertype is not None def new(self, type_args: List[Type]): - type_map = {tp: type_args[i] + try: + type_map = {tp: type_args[i] for i, tp in enumerate(self.type_parameters)} + except: + return None old_supertypes = self.supertypes type_con = perform_type_substitution(self, type_map, lambda t: False) etype = ParameterizedType(type_con, type_args) diff --git a/src/modules/processor.py b/src/modules/processor.py index 872a230b..d0b314f5 100644 --- a/src/modules/processor.py +++ b/src/modules/processor.py @@ -56,8 +56,9 @@ def _get_generator(self): if self.args.generator == "api": docs = {} for api_path in os.listdir(self.args.api_doc_path): - with open(os.path.join(self.args.api_doc_path, api_path)) as f: - docs[api_path.replace(".json", "")] = json.load(f) + if api_path.endswith('.json'): #ignore non-json files + with open(os.path.join(self.args.api_doc_path, api_path)) as f: + docs[api_path.replace(".json", "")] = json.load(f) kwargs["api_docs"] = docs return self.PROGRAM_GENERATORS.get(self.args.generator)(**kwargs) diff --git a/src/resources/swift_keywords b/src/resources/swift_keywords new file mode 100644 index 00000000..92dd3419 --- /dev/null +++ b/src/resources/swift_keywords @@ -0,0 +1,94 @@ +associatedtype +class +deinit +enum +extension +fileprivate +func +import +init +inout +internal +let +open +operator +private +precedencegroup +protocol +public +rethrows +static +struct +subscript +typealias +var +break +case +catch +continue +default +defer +do +else +fallthrough +for +guard +if +in +repeat +return +throw +switch +where +while +Any +as +await +catch +false +is +nil +rethrows +self +Self +super +throw +throws +true +try +column +dsohandle +error +fileID +filePath +file +function +line +warning +associativity +convenience +didSet +dynamic +final +get +indirect +infix +lazy +left +mutating +none +nonmutating +optional +override +postfix +precedence +prefix +Protocol +required +right +set +some +Type +unowned +weak +willSet \ No newline at end of file diff --git a/src/translators/__init__.py b/src/translators/__init__.py index 33e55ab8..732d4e55 100644 --- a/src/translators/__init__.py +++ b/src/translators/__init__.py @@ -2,11 +2,13 @@ from src.translators.groovy import GroovyTranslator from src.translators.scala import ScalaTranslator from src.translators.java import JavaTranslator +from src.translators.swift import SwiftTranslator TRANSLATORS = { 'kotlin': KotlinTranslator, 'groovy': GroovyTranslator, 'java': JavaTranslator, - 'scala': ScalaTranslator + 'scala': ScalaTranslator, + 'swift': SwiftTranslator } diff --git a/src/translators/swift.py b/src/translators/swift.py new file mode 100644 index 00000000..f0714857 --- /dev/null +++ b/src/translators/swift.py @@ -0,0 +1,834 @@ +from src.ir import ast, types as tp, swift_types as swift, type_utils as tu +from src.translators.base import BaseTranslator +import re + +def append_to(visit): + def inner(self, node): + self._nodes_stack.append(node) + res = visit(self, node) + self._nodes_stack.pop() + return inner + +class SwiftTranslator(BaseTranslator): + filename = "program.swift" + def __init__(self, package=None, options={}): + super().__init__(package, options) + self._children_res = [] + self.ident = 0 + self.is_unit = False + self.is_lambda = False + self._cast_integers = False + self.context = None + self._nodes_stack = [None] + + + + def _reset_state(self): + self._children_res = [] + self.ident = 0 + self.is_unit = False + self.is_lambda = False + self._cast_integers = False + self._nodes_stack = [None] + self.context = None + def pop_children_res(self, children): + len_c = len(children) + if not len_c: + return [] + res = self._children_res[-len_c:] + self._children_res = self._children_res[:-len_c] + return res + @staticmethod + def get_filename(): + return SwiftTranslator.filename + @append_to + def visit_lambda(self, node): + + + old_ident = self.ident + is_expression = not isinstance(node.body, ast.Block) + self.ident = 0 if is_expression else self.ident + 2 + children = node.children() + + prev_is_unit = self.is_unit + prev_is_lambda = self.is_lambda + self.is_unit = node.get_type() == swift.VoidType() + use_lambda = isinstance(self._nodes_stack[-2], ast.VariableDeclaration) + + + self.is_lambda = use_lambda + + + + prev_c = self._cast_integers + if is_expression: + self._cast_integers = True + + for c in children: + c.accept(self) + children_res = self.pop_children_res(children) + self.ident = old_ident + + param_res = [children_res[i] for i, _ in enumerate(node.params)] + body_res = children_res[-1] if node.body else '' + type_name = self.get_type_name(node.ret_type) + + + type_name = type_name.replace('inout ','') + ret_type = " -> " + type_name + if node.can_infer_signature: + param_res = [p.name for p in node.params] + #* in swift the lambda sintax is the following: + #* (type,type) -> ret_type = {(a,b) in body} + param_dict = dict() + for s in param_res: + s = s.split(': ') + param_dict[s[0]] = s[1] + + #if is_expression: # TODO LAMBDAS + is_void = False + if not use_lambda: + + # use the lambda syntax: { params -> stmt } + res = "{{({params}) in {body}}}".format( + + + params=", ".join(param_dict.keys()), + body=body_res[1:-1] if body_res.startswith('{') else body_res + ) + # from python 3.7 dicts are ordered + + else: + types = param_dict.values() + _types = [] + for t in types: + _t = str(t) + #if _t == 'Void': + #_t = '' + #is_void = True + if _t.startswith('Reference<'): + _t = _t[10:-1] + _t = 'inout ' + _t + while _t.count('inout ')>1: + _t = _t.replace('inout ','',1) + _types.append(_t) + + if is_void: + res = "{ident}({types}){ret_type} = {{ return {body} }}".format( + ident=" " * self.ident, + types=", ".join(_types), + ret_type=ret_type, + params = ", ".join(param_dict.keys()), + body=body_res[1:-1] if body_res.startswith('{') else body_res + ) + else: + + res = "{ident}({types}){ret_type} = {{ ({params}) in {body} }}".format( + ident=" " * self.ident, + types=", ".join(_types), + ret_type=ret_type, + params = ", ".join(param_dict.keys()), + body=body_res[1:-1] if body_res.startswith('{') else body_res + ) + + self.is_unit = prev_is_unit + self.is_lambda = prev_is_lambda + self._cast_integers = prev_c + self._children_res.append(res) + + + def visit_equality_expr(self, node): + prev = self._cast_integers + # When we encounter equality epxressions, + # we need to explicitly cast integer literals. + # Kotlin does not permit operations like the following + # val d: Short = 1 + # d == 2 + # + # As a workaround, we can do + # d == 2.toShort() + self._cast_integers = True + self.visit_binary_op(node) + self._cast_integers = prev + @append_to + def visit_func_ref(self, node): + old_ident = self.ident + + self.ident = 0 + children = node.children() + for c in children: + c.accept(self) + + self.ident = old_ident + + children_res = self.pop_children_res(children) + segs = node.func.rsplit(".", 1) + func_name = segs[-1] + receiver = ( + ( + "" if node.func == ast.FunctionReference.NEW_REF + else children_res[0] + ) + if children_res + else segs[0] + ) + """ + map_types = { + kt.Long: ".toLong()", + kt.Short: ".toShort()", + kt.Byte: ".toByte()", + kt.Float: ".toFloat()", + kt.Double: ".toDouble()", + } + """ + if isinstance(node.receiver, ast.New): + func_name = node.receiver.class_type.name.rsplit(".", 1)[-1] + """ + if isinstance(node.receiver, (ast.IntegerConstant, ast.RealConstant)): + if float(node.receiver.literal) < 0: + # (-34)::div + receiver = f"({receiver})" + t = ( + node.receiver.integer_type + if isinstance(node.receiver, ast.IntegerConstant) + else node.receiver.real_type + ) + suffix = map_types.get(t, "") + receiver += suffix + """ + if not children_res: + receiver = receiver.split('<')[0] + '()' + + receiver += "." + named_parameters = node.named_parameters if node.named_parameters else [] + named_par_str = [] + if len(named_parameters) > 0: + for np in named_parameters: + if np == '': + named_par_str.append('_') + else: + named_par_str.append(np) + if len(named_par_str) > 0: + named_par_str = ': '.join(named_par_str) + ':' + + + if receiver.startswith('BOTTOM'): + receiver = receiver.split('BOTTOM() as ')[1] + res = "{ident}{receiver}{name}({named_par_str})".format( + ident=" " * self.ident, + receiver=receiver, + name=func_name, + named_par_str=named_par_str + ) + self._children_res.append(res) + @append_to + def visit_conditional(self, node): #XXX + old_ident = self.ident + self.ident += 2 + children = node.children() + for c in children: + c.accept(self) + children_res = self.pop_children_res(children) + """ + res = "{}(if ({})\n{}\n{}else\n{})".format( + " " * old_ident, children_res[0][self.ident:], children_res[1], + " " * old_ident, children_res[2]) + """ + res = "{} ? {} : {}".format( + children_res[0][self.ident:], children_res[1], children_res[2]) + self.ident = old_ident + self._children_res.append(res) + @append_to + def visit_bottom_constant(self, node): + # Start with the base representation of nil in Swift + + # If the node has a type and it's not a 'Nothing' equivalent + + ident = " " * self.ident + swift_nil = "BOTTOM(){}".format( + + " as " + self.get_type_name(node.t) ) + if node.t: + t_name = self.get_type_name(node.t) + if t_name.startswith('inout '): + t_name = t_name[6:] + segs = t_name.split(' -> ', 1) + if len(segs) > 1: + if segs[0] == '(Void)': + t_name = t_name.replace('(Void)', '()') + swift_nil = "BOTTOM(){}".format( + " as " + t_name ) + + + if str(self.get_type_name(node.t)).startswith('Function'): + swift_nil = f"{self.get_type_name(node.t)}" + # Add indentation + indented_nil = f"{ident}{swift_nil}" + + # Return the adapted Swift nil representation + self._children_res.append(indented_nil) + + @append_to + def visit_var_decl(self, node): + old_ident = self.ident + prefix = " " * (self.ident+1) + self.ident = 0 + children = node.children() + + prev = self._cast_integers + if node.var_type is None: + self._cast_integers = True + for c in children: + c.accept(self) + children_res = self.pop_children_res(children) + + #var_type = "let " if node.is_final else "var " + var_type = "var " + res = prefix + var_type + node.name + + type_name = '' + if node.var_type is not None: + type_name = self.get_type_name(node.var_type) + #TODO Any + """ + if type_name == '': + type_name = 'Any' + """ + if isinstance(children[0],ast.Lambda): + res = res + ': ' + else: + if type_name: + if type_name.startswith('Reference<'): + type_name = type_name[10:-1] + if type_name.startswith('inout '): + type_name = type_name[6:] + res = res + ": " + type_name + ' = ' + if type_name == '': + res = res + ' = ' + + res += children_res[0] + self.ident = old_ident + self._cast_integers = prev + self._children_res.append(res) + + + + @append_to + def visit_func_decl(self, node): + prev_is_unit = self.is_unit + self.is_unit = node.get_type() == swift.VoidType() + old_ident = self.ident + self.ident += 2 + children = node.children() + prefix = " " * old_ident + for c in children: + c.accept(self) + children_res = self.pop_children_res(children) + #print ('node.params', node.params) + param_res = [children_res[i] for i, _ in enumerate(node.params)] + len_params = len(node.params) + len_type_params = len(node.type_parameters) + #print ('type_params', node.type_parameters) + type_parameters_res = ", ".join([str(_tp).replace(' any ',' ') for _tp in + children_res[len_params:len_type_params + len_params]]) + body_res = children_res[-1] if node.body else '' + + type_params = ( + "<" + type_parameters_res + ">" if type_parameters_res else "") + #type_params = '' + res = prefix + "func " + node.name + type_params + "(" + ", ".join( + param_res) + ")" + + if node.ret_type: + res += " -> " + self.get_type_name(node.ret_type) + res += " " + body_res + + self.ident = old_ident + self._children_res.append(res) + def type_arg2str(self, t_arg): + """if t_arg.name.startswith('any'): + t_arg.name = 'any ' + t_arg.name + """ + if not isinstance(t_arg, tp.WildCardType): + return self.get_type_name(t_arg) + return self.get_type_name(t_arg.bound) + if t_arg.is_invariant(): + return "*" + elif t_arg.is_covariant(): + return "out " + self.get_type_name(t_arg.bound) + else: + return "in " + self.get_type_name(t_arg.bound) + + def visit_program(self, node): + self.context = node.context + children = node.children() + for c in children: + c.accept(self) + + + package_str = '' + bottom_const = 'func BOTTOM() -> T { fatalError("x"); }' + imports = ['CoreML','CoreFoundation','Accelerate','MusicKit','Foundation','CreateML','Charts','AppIntents','SwiftUI','RealityKit','SwiftData','ExtensionKit'] + imports = '\n'.join(['import ' + i for i in imports]) + + + self.program = imports + '\n' + bottom_const + '\n' + '\n\n'.join( + self.pop_children_res(children)) + @append_to + def visit_type_param(self, node): + self._children_res.append("{}{}{}{}".format( + node.variance_to_string(), + ' ' if node.variance != tp.Invariant else '', + node.name, + ': ' + ( + self.get_type_name(node.bound) + if node.bound is not None + else swift.AnyType().name + ) + )) + @append_to + def visit_param_decl(self, node): + old_ident = self.ident + self.ident = 0 + children = node.children() + for c in node.children(): + c.accept(self) + self.ident = old_ident + """ + *need support for varargs and closures + """ + res = node.name + ": " + self.get_type_name(node.param_type) + + if len(children): + children_res = self.pop_children_res(children) + res += " = " + children_res[0] + self._children_res.append(res) + @append_to + def visit_call_argument(self, node): + old_ident = self.ident + self.ident = 0 + children = node.children() + for c in node.children(): + c.accept(self) + self.ident = old_ident + children_res = self.pop_children_res(children) + res = children_res[0] + is_inout = node.inout + if is_inout: + res = '&' + res + + if node.name: + res = node.name + ": " + res + self._children_res.append(res) + @append_to + def visit_field_access(self, node): + old_ident = self.ident + self.ident = 0 + children = node.children() + for c in children: + c.accept(self) + children_res = self.pop_children_res(children) + self.ident = old_ident + if children: + receiver_expr = ( + '({}).'.format(children_res[0]) + if isinstance(node.expr, ast.BottomConstant) + else "{}.".format(children_res[0]) + ) + else: + receiver_expr = "" + field = node.field + if receiver_expr: + field = f"{field}" + res = "{}{}{}".format(" " * self.ident, receiver_expr, field) + self._children_res.append(res) + + @append_to + def visit_field_decl(self, node): + prefix = '' + prefix += 'let ' if node.is_final else 'var ' + res = prefix + node.name + ": " + self.get_type_name(node.field_type) + self._children_res.append(res) + + + def visit_integer_constant(self, node): + + literal = str(node.literal) + literal = ( + "(" + literal + ")" + if literal[0] == '-' + else literal + ) + self._children_res.append(literal) + @append_to + def visit_real_constant(self, node): + real_types = { + #there is no 'f' suffix in swift + swift.Float: "" + } + suffix = real_types.get(node.real_type, "") + self._children_res.append( + " " * self.ident + str(node.literal) + suffix) + + @append_to + def visit_char_constant(self, node): + """Characters in Swift require double quotes like Strings + """ + self._children_res.append('{}"{}"'.format( + " " * self.ident, node.literal)) + + @append_to + def visit_string_constant(self, node): + self._children_res.append('{}"{}"'.format( + " " * self.ident, node.literal)) + + @append_to + def visit_boolean_constant(self, node): + self._children_res.append(" " * self.ident + str(node.literal)) + @append_to + def visit_variable(self, node): + self._children_res.append(" " * self.ident + node.name) + @append_to + def visit_block(self, node): + children = node.children() + is_unit = self.is_unit + is_lambda = self.is_lambda + self.is_unit = False + self.is_lambda = False + for c in children: + c.accept(self) + children_res = self.pop_children_res(children) + res = "{" if not is_lambda else "" + res += "\n" + "\n".join(children_res[:-1]) + if children_res[:-1]: + res += "\n" + ret_keyword = " " * self.ident + "return " if node.is_func_block and not is_unit else ""#and not is_lambda + if children_res: + res += " " * self.ident + ret_keyword + \ + children_res[-1] + "\n" + \ + " " * self.ident + else: + res += " " * self.ident + ret_keyword + "\n" + \ + " " * self.ident + res += "}" if not is_lambda else "" + self.is_unit = is_unit + self.is_lambda = is_lambda + self._children_res.append(res) + + @append_to + def visit_func_call(self, node): + """ + need to handle: + *varargs + + """ + + + old_ident = self.ident + self.ident = 0 + children = node.children() + for c in children: + c.accept(self) + self.ident = old_ident + children_res = self.pop_children_res(children) + type_args = ( + "<" + ",".join( + [self.get_type_name(t) for t in node.type_args]) + ">" + if not node.can_infer_type_args and node.type_args + else "" + ) + segs = node.func.rsplit(".", 1) + if node.receiver: + receiver_expr = ( + '({})'.format(children_res[0]) + if isinstance(node.receiver, ast.BottomConstant) + else children_res[0] + ) + func = node.func + args = children_res[1:] + else: + receiver_expr, func = ( + ("", node.func) + if len(segs) == 1 + else (segs[0], segs[1]) + ) + args = children_res + if receiver_expr: + receiver_expr += "." + + named_parameters = node.names + func = segs[-1] #TODO check if this is correct SWIFT + + + + res = "{ident}{rec}{func}({args})".format( + ident=" " * self.ident, + rec=receiver_expr, + func=func, + args=", ".join(args) + ) + if str(func).endswith('...'): + func = '...' + elif str(func).endswith('..<'): + func = '..<' + else: + func = str(func).split('.')[-1] + + + non_letter_pattern = r'[^a-zA-Z]' + # Finding all non-letter characters + binary_op = re.findall(non_letter_pattern, func) + binary_op = ''.join(binary_op) + if binary_op == func: + binary_op = " " + binary_op + " " + if args[0].startswith('&'): + args = [args[0][1:] if i==0 else args[i] for i in range(len(args))] + #ar = [str(a).split(': ')[-1] for a in args] #drop the name of the parameter, idk why it is here + #print(ar) + res = "({args})".format(args=binary_op.join(args)) + if func == 'subscript': + res = "{ident}{rec}[{args}]".format( + ident=" " * self.ident, + rec=receiver_expr[:-1], + args=", ".join(args) + ) + throws = True if node.throws else False + if throws: + res = "(try! " + res + ")" + + self._children_res.append(res) + @append_to + def visit_binary_op(self, node): + old_ident = self.ident + self.ident = 0 + children = node.children() + for c in children: + c.accept(self) + children_res = self.pop_children_res(children) + res = "{}({} {} {})".format( + " " * old_ident, children_res[0], node.operator, + children_res[1]) + self.ident = old_ident + self._children_res.append(res) + def visit_logical_expr(self, node): + self.visit_binary_op(node) + def visit_comparison_expr(self, node): + self.visit_binary_op(node) + + def visit_arith_expr(self, node): + self.visit_binary_op(node) + """ + @append_to + def visit_conditional(self, node): #XXX + old_ident = self.ident + self.ident += 2 + children = node.children() + for c in children: + c.accept(self) + children_res = self.pop_children_res(children) + res = "{}(if ({})\n{}\n{}else\n{})".format( + " " * old_ident, children_res[0][self.ident:], children_res[1], + " " * old_ident, children_res[2]) + self.ident = old_ident + self._children_res.append(res) + """ + @append_to + def visit_class_decl(self, node): + old_ident = self.ident + self.ident += 2 + children = node.children() + for c in children: + c.accept(self) + children_res = self.pop_children_res(children) + field_res = [children_res[i] + for i, _ in enumerate(node.fields)] + len_fields = len(field_res) + superclasses_res = [children_res[i + len_fields] + for i, _ in enumerate(node.superclasses)] + len_supercls = len(superclasses_res) + function_res = [children_res[i + len_fields + len_supercls] + for i, _ in enumerate(node.functions)] + len_functions = len(function_res) + type_parameters_res = ", ".join( + children_res[len_fields + len_supercls + len_functions:]) + + is_sam = tu.is_sam(self.context, cls_decl=node) + class_prefix = "interface" if is_sam else node.get_class_prefix() + body = "" + if function_res: + body = " {{\n{function_res}\n{old_ident}}}".format( + function_res="\n\n".join(function_res), + old_ident=" " * old_ident + ) + + res = "{ident}{f}{o}{p} {n}".format( + ident=" " * old_ident, + f="fun " if is_sam else "", + o="open " if (not node.is_final and + node.class_type != ast.ClassDeclaration.INTERFACE and + not is_sam) else "", + p=class_prefix, + n=node.name, + tps="<" + type_parameters_res + ">" if type_parameters_res else "", + fields="(" + ", ".join(field_res) + ")" if field_res else "", + s=": " + ", ".join(superclasses_res) if superclasses_res else "", + body=body + ) + + if type_parameters_res: + res = "{}<{}>".format(res, type_parameters_res) + if field_res: + res = "{}({})".format( + res, ", ".join(field_res)) + if superclasses_res: + res += ": " + ", ".join(superclasses_res) + if function_res: + res += " {\n" + "\n\n".join( + function_res) + "\n" + " " * old_ident + "}" + self.ident = old_ident + self._children_res.append(res) + @append_to + def visit_assign(self, node): + old_ident = self.ident + prev = self._cast_integers + self._cast_integers = True + self.ident = 0 + children = node.children() + for c in children: + c.accept(self) + self.ident = old_ident + children_res = self.pop_children_res(children) + if node.receiver: + receiver_expr = ( + '({})'.format(children_res[0]) + if isinstance(node.receiver, ast.BottomConstant) + else children_res[0] + ) + res = "{}{}.{} = {}".format(" " * old_ident, receiver_expr, + node.name, children_res[1]) + else: + res = "{}{} = {}".format(" " * old_ident, node.name, + children_res[0]) + self.ident = old_ident + self._cast_integers = prev + self._children_res.append(res) + @append_to + def visit_new(self, node): + old_ident = self.ident + self.ident = 0 + children = node.children() + for c in children: + c.accept(self) + children_res = self.pop_children_res(children) + self.ident = old_ident + # Remove type arguments from Parameterized Type + _args=children_res[:len(node.args)] + #args = ', '.join(args) + + named_parameters = node.names + if named_parameters and len(named_parameters) == len(node.args): + args = ', '.join([str(_args[i]) if named_parameters[i] is None else str(named_parameters[i]) + ': ' + str(_args[i]) for i in range(len(named_parameters))]) + else: + args = ', '.join(_args) + + #args = ', '.join(_args) + + + + + if getattr(node.class_type, 'can_infer_type_args', None) is True: + prefix = ( + node.class_type.name.rsplit(".", 1)[1] + if node.receiver + else node.class_type.name + ) + cls = prefix + self._children_res.append("{ident}{rec}{name}({args})".format( + ident=" " * self.ident, + rec=children_res[-1] + "." if node.receiver else "", + name=cls, + args=args)) + else: + cls = self.get_type_name(node.class_type) + segs = cls.split("<", 1) + prefix = ( + segs[0].rsplit(".", 1)[1] + if node.receiver and len(segs[0].rsplit(".", 1))>1 + else segs[0] + ) + cls = prefix if len(segs) == 1 else prefix + "<" + segs[1] + self._children_res.append("{ident}{rec}{name}({args})".format( + ident=" " * self.ident, + rec=children_res[-1] + "." if node.receiver else "", + name=cls, + args=args)) + def instance_type2str(self, t): + basename = t.t_constructor.basename + if not t.t_constructor.extra_type_params: + enclosing_str = self.get_type_name( + t.t_constructor.enclosing_type.new(t.type_args)) + return f"{enclosing_str}.{basename}" + + type_params = t.t_constructor.enclosing_type.type_parameters + enclosing_str = self.get_type_name( + t.t_constructor.enclosing_type.new(t.type_args[:len(type_params)])) + extra_type_args = ", ".join(self.type_arg2str(ta) + for ta in t.type_args[len(type_params):]) + return f"{enclosing_str}.{basename}<{extra_type_args}>" + def get_type_name(self, t): + #TODO check if function type and output the right syntax for swift + + """ + if (t.name == 'Reference'): + print('typeargs',t.type_args) + type_args = [self.get_type_name(ta) for ta in t.type_args] + print('type_args list', type_args) + return type_args[0] #TODO check if works + """ + + + if t.is_wildcard(): + t = t.get_bound_rec() + return self.get_type_name(t) + + if isinstance(t, swift.RawType): + converted_t = t.t_constructor.new( + [tp.WildCardType() + for _ in range(len(t.t_constructor.type_parameters))]) + return self.get_type_name(converted_t) + t_constructor = getattr(t, 't_constructor', None) + if isinstance(t_constructor,swift.ReferenceType): + str_t = self.get_type_name(t.type_args[0]) + return 'inout ' + str_t + if not t_constructor: + """if t.name.startswith('any'): + t.name = t.name[4:] + """ + + return t.get_name() + + + if t.is_instance_type(): + return self.instance_type2str(t) + + funtion_pattern = r'Function\d+' + match = re.match(funtion_pattern, t.name) + if match: + ret = self.get_type_name(t.type_args[-1]) + params = ", ".join(self.get_type_name(ta) + for ta in t.type_args[:-1]) + return f"({params}) -> {ret}" + if t.name.startswith('Tuple'): + ta_ = ", ".join(self.get_type_name(ta) + for ta in t.type_args) + return f"({ta_})" + + if isinstance(t_constructor, swift.NullableType): + str_t = self.get_type_name(t.type_args[0]) + if str_t.startswith('any '): + return "({})?".format(str_t) + else: + return "{}?".format(str_t) + return "{}<{}>".format(t.name, ", ".join([self.type_arg2str(ta) + for ta in t.type_args])) + \ No newline at end of file diff --git a/tests/json-swift-swift.bool/Swift.Bool.json b/tests/json-swift-swift.bool/Swift.Bool.json new file mode 100644 index 00000000..68c28f7b --- /dev/null +++ b/tests/json-swift-swift.bool/Swift.Bool.json @@ -0,0 +1,494 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.Bool", + "type_parameters": [], + "methods": [ + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Bool", + "Swift.Bool" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.Bool", + "Swift.Bool" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "toggle", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!", + "type_parameters": [], + "parameters": [ + "Swift.Bool" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&&", + "type_parameters": [], + "parameters": [ + "Swift.Bool", + "() throws -> Swift.Bool" + ], + "throws": true, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends Swift.RandomNumberGenerator" + ], + "parameters": [ + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "||", + "type_parameters": [], + "parameters": [ + "Swift.Bool", + "() throws -> Swift.Bool" + ], + "throws": true, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Bool" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "Swift.String" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "from: Swift.Decoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "from: CreateML.MLDataValue" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "booleanLiteral: Swift.Bool" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "customMirror", + "type": "Swift.Mirror", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "dataValue", + "type": "CreateML.MLDataValue", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "dataValueType", + "type": "CreateML.MLDataValue.ValueType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByBooleanLiteral", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "CreateML.MLDataValueConvertible", + "conditional": false + }, + { + "name": "MusicKit.MusicLibraryRequestFilterValueEquatable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/json-swift-swift.character/Swift.Character.json b/tests/json-swift-swift.character/Swift.Character.json new file mode 100644 index 00000000..4a413a42 --- /dev/null +++ b/tests/json-swift-swift.character/Swift.Character.json @@ -0,0 +1,572 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.Character", + "type_parameters": [], + "methods": [ + { + "name": "write", + "type_parameters": [ + "Target extends Swift.TextOutputStream" + ], + "parameters": [ + "to: inout Target" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Character", + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.Character", + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "uppercased", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "lowercased", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Character", + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.String" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Unicode.Scalar" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "extendedGraphemeClusterLiteral: Swift.Character" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "unicodeScalarLiteral: Self.ExtendedGraphemeClusterLiteralType" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + } + ], + "fields": [ + { + "name": "unicodeScalars", + "type": "Swift.Character.UnicodeScalarView", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isASCII", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "asciiValue", + "type": "Swift.UInt8?", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isLetter", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isPunctuation", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isNewline", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isWhitespace", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSymbol", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isMathSymbol", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isCurrencySymbol", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isCased", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isUppercase", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isLowercase", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isNumber", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isWholeNumber", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "wholeNumberValue", + "type": "Swift.Int?", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isHexDigit", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hexDigitValue", + "type": "Swift.Int?", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "debugDescription", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "customMirror", + "type": "Swift.Mirror", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "utf16", + "type": "Swift.Character.UTF16View", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "utf8", + "type": "Swift.Character.UTF8View", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomDebugStringConvertible", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByExtendedGraphemeClusterLiteral", + "conditional": false + }, + { + "name": "Swift.ExpressibleByUnicodeScalarLiteral", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.RegexComponent", + "conditional": false + }, + { + "name": "Swift.TextOutputStreamable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "UnicodeScalarView", + "conditional": false + }, + { + "name": "Output", + "conditional": false + }, + { + "name": "UTF16View", + "conditional": false + }, + { + "name": "UTF8View", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/json-swift-swift.int/Swift.Int.json b/tests/json-swift-swift.int/Swift.Int.json new file mode 100644 index 00000000..be4ae5a1 --- /dev/null +++ b/tests/json-swift-swift.int/Swift.Int.json @@ -0,0 +1,1518 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.Int", + "type_parameters": [], + "methods": [ + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "negate", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "quotientAndRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isMultiple", + "type_parameters": [ + "A extends FixedWidthInteg>" + ], + "parameters": [ + "of: Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "subtractingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainderReportingOverflow", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividingFullWidth", + "type_parameters": [], + "parameters": [ + "(high: Swift.Int, low: Swift.Int.Swift.UInt)" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "abs", + "type_parameters": [ + "T extends Swift.SignedNumeric" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "T", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "signum", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "T extends Swift.BinaryInteger", + "A extends FixedWidthInteg>" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": true, + "is_constructor": true, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "T extends Swift.BinaryInteger", + "A extends FixedWidthInteg>" + ], + "parameters": [ + "exactly: T" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": true, + "is_constructor": true, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Other extends Swift.BinaryInteger" + ], + "parameters": [ + "clamping: Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "T extends Swift.BinaryInteger" + ], + "parameters": [ + "truncatingIfNeeded: T" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "T extends Swift.BinaryFloatingPoint" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "T extends Swift.BinaryFloatingPoint" + ], + "parameters": [ + "exactly: T" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "Swift.String" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "S extends Swift.StringProtocol" + ], + "parameters": [ + "S", + "radix: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "littleEndian: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bigEndian: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "P extends _Pointer" + ], + "parameters": [ + "bitPattern: P?" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.ObjectIdentifier" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.OpaquePointer?" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "from: Swift.Decoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "from: CreateML.MLDataValue" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "A extends ExpressibleByBuiltinIntegerLiter>" + ], + "parameters": [ + "integerLiteral: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": true, + "is_constructor": true, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "magnitude", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.Int", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": true + } + }, + { + "name": "min", + "type": "Swift.Int", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": true + } + }, + { + "name": "max", + "type": "Swift.Int", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": true + } + }, + { + "name": "isSigned", + "type": "Swift.Bool", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "byteSwapped", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "littleEndian", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bigEndian", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nonzeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leadingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "trailingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "words", + "type": "Swift.Int.Words", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "customMirror", + "type": "Swift.Mirror", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "dataValue", + "type": "CreateML.MLDataValue", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "identifierValue", + "type": "CreateML.MLDataValue", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "dataValueType", + "type": "CreateML.MLDataValue.ValueType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Swift.BinaryInteger", + "conditional": false + }, + { + "name": "RealityKit.BindableData", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.CodingKeyRepresentable", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "AppIntents.EntityIdentifierConvertible", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FixedWidthInteger", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "CreateML.MLDataValueConvertible", + "conditional": false + }, + { + "name": "CreateML.MLIdentifier", + "conditional": false + }, + { + "name": "Swift.MirrorPath", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Charts.Plottable", + "conditional": false + }, + { + "name": "Charts.PrimitivePlottableProtocol", + "conditional": false + }, + { + "name": "AppIntents.RangeComparableProperty", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.SignedInteger", + "conditional": false + }, + { + "name": "Swift.SignedNumeric", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + }, + { + "name": "SIMDMaskScalar", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-additivearithmeticProtocol/Swift.Double.json b/tests/swift-examples/a-json-swift-additivearithmeticProtocol/Swift.Double.json new file mode 100644 index 00000000..5fadb969 --- /dev/null +++ b/tests/swift-examples/a-json-swift-additivearithmeticProtocol/Swift.Double.json @@ -0,0 +1,2445 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.Double", + "type_parameters": [], + "methods": [ + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "addingProduct", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addProduct", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "squareRoot", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formSquareRoot", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "truncatingRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formTruncatingRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "negate", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "rounded", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "rounded", + "type_parameters": [], + "parameters": [ + "Swift.FloatingPointRoundingRule" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "round", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "round", + "type_parameters": [], + "parameters": [ + "Swift.FloatingPointRoundingRule" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isEqual", + "type_parameters": [], + "parameters": [ + "to: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isLess", + "type_parameters": [], + "parameters": [ + "than: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isLessThanOrEqualTo", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isTotallyOrdered", + "type_parameters": [], + "parameters": [ + "belowOrEqualTo: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "minimum", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "minimumMagnitude", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "maximum", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "maximumMagnitude", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "write", + "type_parameters": [ + "Target extends any Swift.TextOutputStream" + ], + "parameters": [ + "to: inout Target" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "S extends any Swift.StringProtocol" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "Swift.Substring" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Source extends any Swift.BinaryFloatingPoint" + ], + "parameters": [ + "Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "sign: Swift.FloatingPointSign", + "exponent: Swift.Int", + "significand: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "signOf: Swift.Double", + "magnitudeOf: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "Source" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "Source extends any Swift.BinaryFloatingPoint" + ], + "parameters": [ + "exactly: Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "exactly: Source" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "init?", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "exactly: Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "sign: Swift.FloatingPointSign", + "exponentBitPattern: Swift.UInt", + "significandBitPattern: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "nan: Swift.UInt64", + "signaling: Swift.Bool" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "from: any Swift.Decoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "from: CreateML.MLDataValue" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "floatLiteral: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "integerLiteral: Swift.Int64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "A extends any ExpressibleByBuiltinIntegerLiter>" + ], + "parameters": [ + "integerLiteral: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": true, + "is_constructor": true, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "magnitude", + "type": "Swift.Double", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "sign", + "type": "Swift.FloatingPointSign", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "ulp", + "type": "Swift.Double", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significand", + "type": "Swift.Double", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "exponent", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nextUp", + "type": "Swift.Double", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nextDown", + "type": "Swift.Double", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "binade", + "type": "Swift.Double", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "pi", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "infinity", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "greatestFiniteMagnitude", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nan", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "signalingNaN", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "ulpOfOne", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leastNonzeroMagnitude", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leastNormalMagnitude", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.Double", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": true + } + }, + { + "name": "bitPattern", + "type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significandBitPattern", + "type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significandWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "exponentBitPattern", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significandBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "exponentBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "radix", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isZero", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isFinite", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isInfinite", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isNaN", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSignalingNaN", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isNormal", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSubnormal", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isCanonical", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "floatingPointClass", + "type": "Swift.FloatingPointClassification", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "debugDescription", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "dataValue", + "type": "CreateML.MLDataValue", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "dataValueType", + "type": "CreateML.MLDataValue.ValueType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "mlMultiArrayDataType", + "type": "CoreML.MLMultiArrayDataType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "multiArrayDataType", + "type": "MLMultiArrayDataType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "defaultResolverSpecification", + "type": "some ResolverSpecification", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "ulpOfOne", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Swift.BinaryFloatingPoint", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomDebugStringConvertible", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByFloatLiteral", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FloatingPoint", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "CoreML.MLShapedArrayScalar", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.SignedNumeric", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.TextOutputStreamable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_DiscreteFourierTransformable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointBiquadFilterable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointConvertable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointDiscreteFourierTransformable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointGeneratable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Exponent", + "conditional": false + }, + { + "name": "RawSignificand", + "conditional": false + }, + { + "name": "RawExponent", + "conditional": false + }, + { + "name": "FloatLiteralType", + "conditional": false + }, + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + }, + { + "name": "SIMDMaskScalar", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-additivearithmeticProtocol/Swift.Duration.json b/tests/swift-examples/a-json-swift-additivearithmeticProtocol/Swift.Duration.json new file mode 100644 index 00000000..e5b108c7 --- /dev/null +++ b/tests/swift-examples/a-json-swift-additivearithmeticProtocol/Swift.Duration.json @@ -0,0 +1,924 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.Duration", + "type_parameters": [], + "methods": [ + { + "name": "seconds", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "seconds", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "milliseconds", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "milliseconds", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "microseconds", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "microseconds", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "nanoseconds", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.Duration", + "T" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.Duration", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.Duration", + "T" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Duration", + "T" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.Duration", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "/", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Duration", + "T" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.Duration", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "secondsComponent: Swift.Int64", + "attosecondsComponent: Swift.Int64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Duration", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.DurationProtocol", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-additivearithmeticProtocol/Swift.Float.json b/tests/swift-examples/a-json-swift-additivearithmeticProtocol/Swift.Float.json new file mode 100644 index 00000000..ae377c15 --- /dev/null +++ b/tests/swift-examples/a-json-swift-additivearithmeticProtocol/Swift.Float.json @@ -0,0 +1,2393 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.Float", + "type_parameters": [], + "methods": [ + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "addingProduct", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addProduct", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "squareRoot", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formSquareRoot", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "truncatingRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formTruncatingRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "negate", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "rounded", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "rounded", + "type_parameters": [], + "parameters": [ + "Swift.FloatingPointRoundingRule" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "round", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "round", + "type_parameters": [], + "parameters": [ + "Swift.FloatingPointRoundingRule" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isEqual", + "type_parameters": [], + "parameters": [ + "to: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isLess", + "type_parameters": [], + "parameters": [ + "than: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isLessThanOrEqualTo", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isTotallyOrdered", + "type_parameters": [], + "parameters": [ + "belowOrEqualTo: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "maximum", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "maximumMagnitude", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "minimum", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "minimumMagnitude", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "write", + "type_parameters": [ + "Target extends any Swift.TextOutputStream" + ], + "parameters": [ + "to: inout Target" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "entityIdentifier", + "type_parameters": [], + "parameters": [ + "for: Swift.String" + ], + "throws": false, + "return_type": "Swift.Float?", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "S extends any Swift.StringProtocol" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Source extends any Swift.BinaryFloatingPoint" + ], + "parameters": [ + "Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "Source" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "signOf: Swift.Float", + "magnitudeOf: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "sign: Swift.FloatingPointSign", + "exponent: Swift.Int", + "significand: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "Source extends any Swift.BinaryFloatingPoint" + ], + "parameters": [ + "exactly: Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "exactly: Source" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "sign: Swift.FloatingPointSign", + "exponentBitPattern: Swift.UInt", + "significandBitPattern: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "nan: Swift.UInt32", + "signaling: Swift.Bool" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "from: any Swift.Decoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "integerLiteral: Swift.Int64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "floatLiteral: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "A extends any ExpressibleByBuiltinIntegerLiter>" + ], + "parameters": [ + "integerLiteral: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": true, + "is_constructor": true, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "Swift.Substring" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "magnitude", + "type": "Swift.Float", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "sign", + "type": "Swift.FloatingPointSign", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "ulp", + "type": "Swift.Float", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significand", + "type": "Swift.Float", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "exponent", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nextUp", + "type": "Swift.Float", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nextDown", + "type": "Swift.Float", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "binade", + "type": "Swift.Float", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "pi", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "infinity", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "greatestFiniteMagnitude", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nan", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "signalingNaN", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "ulpOfOne", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leastNormalMagnitude", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leastNonzeroMagnitude", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.Float", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": true + } + }, + { + "name": "bitPattern", + "type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significandBitPattern", + "type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significandWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "exponentBitPattern", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significandBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "exponentBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "radix", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isZero", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isFinite", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isInfinite", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isNaN", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSignalingNaN", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isNormal", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSubnormal", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isCanonical", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "floatingPointClass", + "type": "Swift.FloatingPointClassification", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "debugDescription", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "hashValue", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "mlMultiArrayDataType", + "type": "CoreML.MLMultiArrayDataType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "multiArrayDataType", + "type": "MLMultiArrayDataType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "ulpOfOne", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "entityIdentifierString", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + + + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Accelerate.BNNSScalar", + "conditional": false + }, + { + "name": "Swift.BinaryFloatingPoint", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomDebugStringConvertible", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByFloatLiteral", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FloatingPoint", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "CoreML.MLShapedArrayScalar", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.SignedNumeric", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.TextOutputStreamable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_DiscreteFourierTransformable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointBiquadFilterable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointConvertable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointDiscreteFourierTransformable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointGeneratable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Exponent", + "conditional": false + }, + { + "name": "RawSignificand", + "conditional": false + }, + { + "name": "SIMDMaskScalar", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-additivearithmeticProtocol/Swift.Int.json b/tests/swift-examples/a-json-swift-additivearithmeticProtocol/Swift.Int.json new file mode 100644 index 00000000..35e5b930 --- /dev/null +++ b/tests/swift-examples/a-json-swift-additivearithmeticProtocol/Swift.Int.json @@ -0,0 +1,2880 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.Int", + "type_parameters": [], + "methods": [ + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "negate", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "quotientAndRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isMultiple", + "type_parameters": [ + "A extends any Swift.FixedWidthInteg>" + ], + "parameters": [ + "of: Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "subtractingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainderReportingOverflow", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividingFullWidth", + "type_parameters": [], + "parameters": [ + "(high: Swift.Int, low: Swift.Int.Swift.UInt)" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "abs", + "type_parameters": [ + "T extends any Swift.SignedNumeric" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "T", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "signum", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.Int", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.Int", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "~", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "RHS" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "RHS" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.Int", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.Int", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "entityIdentifier", + "type_parameters": [], + "parameters": [ + "for: Swift.String" + ], + "throws": false, + "return_type": "Swift.Int?", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "T extends any Swift.BinaryInteger", + "A extends any Swift.FixedWidthInteg>" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": true, + "is_constructor": true, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "T extends any Swift.BinaryInteger", + "A extends any Swift.FixedWidthInteg>" + ], + "parameters": [ + "exactly: T" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": true, + "is_constructor": true, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "clamping: Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "truncatingIfNeeded: T" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "T extends any Swift.BinaryFloatingPoint" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "T extends any Swift.BinaryFloatingPoint" + ], + "parameters": [ + "exactly: T" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "Swift.String" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "S extends any Swift.StringProtocol" + ], + "parameters": [ + "S", + "radix: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "littleEndian: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bigEndian: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "P extends any _Pointer" + ], + "parameters": [ + "bitPattern: P?" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.ObjectIdentifier" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.OpaquePointer?" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "from: any Swift.Decoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "from: CreateML.MLDataValue" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "A extends any ExpressibleByBuiltinIntegerLiter>" + ], + "parameters": [ + "integerLiteral: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": true, + "is_constructor": true, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "magnitude", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.Int", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": true + } + }, + { + "name": "min", + "type": "Swift.Int", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": true + } + }, + { + "name": "max", + "type": "Swift.Int", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": true + } + }, + { + "name": "isSigned", + "type": "Swift.Bool", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "byteSwapped", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "littleEndian", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bigEndian", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nonzeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leadingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "trailingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "words", + "type": "Swift.Int.Words", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "dataValue", + "type": "CreateML.MLDataValue", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "identifierValue", + "type": "CreateML.MLDataValue", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "dataValueType", + "type": "CreateML.MLDataValue.ValueType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "entityIdentifierString", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Swift.BinaryInteger", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.CodingKeyRepresentable", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FixedWidthInteger", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.MirrorPath", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.SignedInteger", + "conditional": false + }, + { + "name": "Swift.SignedNumeric", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + }, + { + "name": "SIMDMaskScalar", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-additivearithmeticProtocol/Swift.UInt.json b/tests/swift-examples/a-json-swift-additivearithmeticProtocol/Swift.UInt.json new file mode 100644 index 00000000..aa514d70 --- /dev/null +++ b/tests/swift-examples/a-json-swift-additivearithmeticProtocol/Swift.UInt.json @@ -0,0 +1,2528 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.UInt", + "type_parameters": [], + "methods": [ + { + "name": "&=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividingFullWidth", + "type_parameters": [], + "parameters": [ + "(high: Swift.UInt, low: Swift.UInt.Swift.UInt)" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainderReportingOverflow", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "signum", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "subtractingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isMultiple", + "type_parameters": [], + "parameters": [ + "of: Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "quotientAndRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "~", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "P extends any _Pointer" + ], + "parameters": [ + "bitPattern: P?" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.OpaquePointer?" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.ObjectIdentifier" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "byteSwapped", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leadingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nonzeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "trailingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "words", + "type": "Swift.UInt.Words", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "magnitude", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSigned", + "type": "Bool", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "max", + "type": "Swift.UInt", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "min", + "type": "Swift.UInt", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "hashValue", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.UInt", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bigEndian", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "littleEndian", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Swift.BinaryInteger", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FixedWidthInteger", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.UnsignedInteger", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-additivearithmeticProtocol/Swift.UInt16.json b/tests/swift-examples/a-json-swift-additivearithmeticProtocol/Swift.UInt16.json new file mode 100644 index 00000000..b7755c87 --- /dev/null +++ b/tests/swift-examples/a-json-swift-additivearithmeticProtocol/Swift.UInt16.json @@ -0,0 +1,2484 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.UInt16", + "type_parameters": [], + "methods": [ + { + "name": "&=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividingFullWidth", + "type_parameters": [], + "parameters": [ + "(high: Swift.UInt16, low: Swift.UInt16.Swift.UInt16)" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainderReportingOverflow", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "signum", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "subtractingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "~", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isMultiple", + "type_parameters": [], + "parameters": [ + "of: Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "quotientAndRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.Int16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "byteSwapped", + "type": "Swift.UInt16", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leadingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nonzeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "trailingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "words", + "type": "Swift.UInt16.Words", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "magnitude", + "type": "Swift.UInt16", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSigned", + "type": "Bool", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "max", + "type": "Swift.UInt16", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "min", + "type": "Swift.UInt16", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "zero", + "type": "Swift.UInt16", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bigEndian", + "type": "Swift.UInt16", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "littleEndian", + "type": "Swift.UInt16", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bnnsDataType", + "type": "BNNSDataType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Accelerate.BNNSScalar", + "conditional": false + }, + { + "name": "Swift.BinaryInteger", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FixedWidthInteger", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.UnsignedInteger", + "conditional": false + }, + { + "name": "Accelerate.vDSP_IntegerConvertable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-additivearithmeticProtocol/Swift.UInt32.json b/tests/swift-examples/a-json-swift-additivearithmeticProtocol/Swift.UInt32.json new file mode 100644 index 00000000..5d0fa6c3 --- /dev/null +++ b/tests/swift-examples/a-json-swift-additivearithmeticProtocol/Swift.UInt32.json @@ -0,0 +1,2494 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.UInt32", + "type_parameters": [], + "methods": [ + { + "name": "&=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividingFullWidth", + "type_parameters": [], + "parameters": [ + "(high: Swift.UInt32, low: Swift.UInt32.Swift.UInt32)" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainderReportingOverflow", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "signum", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "subtractingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "~", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isMultiple", + "type_parameters": [], + "parameters": [ + "of: Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "quotientAndRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Unicode.Scalar" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.Int32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "byteSwapped", + "type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leadingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nonzeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "trailingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "words", + "type": "Swift.UInt32.Words", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "magnitude", + "type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSigned", + "type": "Bool", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "max", + "type": "Swift.UInt32", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "min", + "type": "Swift.UInt32", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.UInt32", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bigEndian", + "type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "littleEndian", + "type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Accelerate.BNNSScalar", + "conditional": false + }, + { + "name": "Swift.BinaryInteger", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FixedWidthInteger", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.UnsignedInteger", + "conditional": false + }, + { + "name": "Accelerate.vDSP_IntegerConvertable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-additivearithmeticProtocol/Swift.UInt64.json b/tests/swift-examples/a-json-swift-additivearithmeticProtocol/Swift.UInt64.json new file mode 100644 index 00000000..931eba2a --- /dev/null +++ b/tests/swift-examples/a-json-swift-additivearithmeticProtocol/Swift.UInt64.json @@ -0,0 +1,2510 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.UInt64", + "type_parameters": [], + "methods": [ + { + "name": "&=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividingFullWidth", + "type_parameters": [], + "parameters": [ + "(high: Swift.UInt64, low: Swift.UInt64.Swift.UInt64)" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainderReportingOverflow", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "signum", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "subtractingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isMultiple", + "type_parameters": [], + "parameters": [ + "of: Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "quotientAndRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "~", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Unicode.Scalar" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.Int64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "byteSwapped", + "type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leadingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nonzeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "trailingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "words", + "type": "Swift.UInt64.Words", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "hashValue", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.UInt64", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "magnitude", + "type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSigned", + "type": "Bool", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "max", + "type": "Swift.UInt64", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "min", + "type": "Swift.UInt64", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bigEndian", + "type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "littleEndian", + "type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Accelerate.BNNSScalar", + "conditional": false + }, + { + "name": "Swift.BinaryInteger", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FixedWidthInteger", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.UnsignedInteger", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-additivearithmeticProtocol/Swift.UInt8.json b/tests/swift-examples/a-json-swift-additivearithmeticProtocol/Swift.UInt8.json new file mode 100644 index 00000000..94b7e2e6 --- /dev/null +++ b/tests/swift-examples/a-json-swift-additivearithmeticProtocol/Swift.UInt8.json @@ -0,0 +1,2504 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.UInt8", + "type_parameters": [], + "methods": [ + { + "name": "&=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividingFullWidth", + "type_parameters": [], + "parameters": [ + "(high: Swift.UInt8, low: Swift.UInt8.Swift.UInt8)" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainderReportingOverflow", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "signum", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "subtractingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "~", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "isMultiple", + "type_parameters": [], + "parameters": [ + "of: Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "quotientAndRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "ascii: Swift.Unicode.Scalar" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.Int8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "byteSwapped", + "type": "Swift.UInt8", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leadingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nonzeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "trailingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "words", + "type": "Swift.UInt8.Words", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bnnsDataType", + "type": "BNNSDataType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bigEndian", + "type": "Swift.UInt8", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "littleEndian", + "type": "Swift.UInt8", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.UInt8", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "magnitude", + "type": "Swift.UInt8", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSigned", + "type": "Bool", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "max", + "type": "Swift.UInt8", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "min", + "type": "Swift.UInt8", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Accelerate.BNNSScalar", + "conditional": false + }, + { + "name": "Swift.BinaryInteger", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FixedWidthInteger", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.UnsignedInteger", + "conditional": false + }, + { + "name": "Accelerate.vDSP_IntegerConvertable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-comparableProtocol/Swift.Character.json b/tests/swift-examples/a-json-swift-comparableProtocol/Swift.Character.json new file mode 100644 index 00000000..106d06c7 --- /dev/null +++ b/tests/swift-examples/a-json-swift-comparableProtocol/Swift.Character.json @@ -0,0 +1,717 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.Character", + "type_parameters": [], + "methods": [ + { + "name": "write", + "type_parameters": [ + "Target extends any Swift.TextOutputStream" + ], + "parameters": [ + "to: inout Target" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Character", + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.Character", + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "uppercased", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "lowercased", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Character", + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Character", + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Character", + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Character", + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Character", + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Character", + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.String" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Unicode.Scalar" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "extendedGraphemeClusterLiteral: Swift.Character" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "unicodeScalarLiteral: Self.ExtendedGraphemeClusterLiteralType" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + } + ], + "fields": [ + { + "name": "unicodeScalars", + "type": "Swift.Character.UnicodeScalarView", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isASCII", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "asciiValue", + "type": "Swift.UInt8?", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isLetter", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isPunctuation", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isNewline", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isWhitespace", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSymbol", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isMathSymbol", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isCurrencySymbol", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isCased", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isUppercase", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isLowercase", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isNumber", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isWholeNumber", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "wholeNumberValue", + "type": "Swift.Int?", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isHexDigit", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hexDigitValue", + "type": "Swift.Int?", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "debugDescription", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "customMirror", + "type": "Swift.Mirror", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "utf16", + "type": "Swift.Character.UTF16View", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "utf8", + "type": "Swift.Character.UTF8View", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "regex", + "type": "Regex", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomDebugStringConvertible", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByExtendedGraphemeClusterLiteral", + "conditional": false + }, + { + "name": "Swift.ExpressibleByUnicodeScalarLiteral", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.RegexComponent", + "conditional": false + }, + { + "name": "Swift.TextOutputStreamable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "UnicodeScalarView", + "conditional": false + }, + { + "name": "Output", + "conditional": false + }, + { + "name": "UTF16View", + "conditional": false + }, + { + "name": "UTF8View", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-comparableProtocol/Swift.Double.json b/tests/swift-examples/a-json-swift-comparableProtocol/Swift.Double.json new file mode 100644 index 00000000..abb35894 --- /dev/null +++ b/tests/swift-examples/a-json-swift-comparableProtocol/Swift.Double.json @@ -0,0 +1,2445 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.Double", + "type_parameters": [], + "methods": [ + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "addingProduct", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addProduct", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "squareRoot", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formSquareRoot", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "truncatingRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formTruncatingRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "negate", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "rounded", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "rounded", + "type_parameters": [], + "parameters": [ + "Swift.FloatingPointRoundingRule" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "round", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "round", + "type_parameters": [], + "parameters": [ + "Swift.FloatingPointRoundingRule" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isEqual", + "type_parameters": [], + "parameters": [ + "to: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isLess", + "type_parameters": [], + "parameters": [ + "than: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isLessThanOrEqualTo", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isTotallyOrdered", + "type_parameters": [], + "parameters": [ + "belowOrEqualTo: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "minimum", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "minimumMagnitude", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "maximum", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "maximumMagnitude", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "write", + "type_parameters": [ + "Target extends any Swift.TextOutputStream" + ], + "parameters": [ + "to: inout Target" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "S extends any Swift.StringProtocol" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "Swift.Substring" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Source extends any Swift.BinaryFloatingPoint" + ], + "parameters": [ + "Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "sign: Swift.FloatingPointSign", + "exponent: Swift.Int", + "significand: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "signOf: Swift.Double", + "magnitudeOf: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "Source" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "Source extends any Swift.BinaryFloatingPoint" + ], + "parameters": [ + "exactly: Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "exactly: Source" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "init?", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "exactly: Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "sign: Swift.FloatingPointSign", + "exponentBitPattern: Swift.UInt", + "significandBitPattern: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "nan: Swift.UInt64", + "signaling: Swift.Bool" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "from: any Swift.Decoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "from: CreateML.MLDataValue" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "floatLiteral: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "integerLiteral: Swift.Int64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "A extends any ExpressibleByBuiltinIntegerLiter>" + ], + "parameters": [ + "integerLiteral: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": true, + "is_constructor": true, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "magnitude", + "type": "Swift.Double", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "sign", + "type": "Swift.FloatingPointSign", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "ulp", + "type": "Swift.Double", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significand", + "type": "Swift.Double", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "exponent", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nextUp", + "type": "Swift.Double", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nextDown", + "type": "Swift.Double", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "binade", + "type": "Swift.Double", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "pi", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "infinity", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "greatestFiniteMagnitude", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nan", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "signalingNaN", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "ulpOfOne", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leastNonzeroMagnitude", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leastNormalMagnitude", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.Double", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": true + } + }, + { + "name": "bitPattern", + "type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significandBitPattern", + "type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significandWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "exponentBitPattern", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significandBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "exponentBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "radix", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isZero", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isFinite", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isInfinite", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isNaN", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSignalingNaN", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isNormal", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSubnormal", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isCanonical", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "floatingPointClass", + "type": "Swift.FloatingPointClassification", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "debugDescription", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "dataValue", + "type": "CreateML.MLDataValue", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "dataValueType", + "type": "CreateML.MLDataValue.ValueType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "mlMultiArrayDataType", + "type": "CoreML.MLMultiArrayDataType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "multiArrayDataType", + "type": "MLMultiArrayDataType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "defaultResolverSpecification", + "type": "some ResolverSpecification", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "ulpOfOne", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Swift.BinaryFloatingPoint", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomDebugStringConvertible", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByFloatLiteral", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FloatingPoint", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "CoreML.MLShapedArrayScalar", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.SignedNumeric", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.TextOutputStreamable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_DiscreteFourierTransformable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointBiquadFilterable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointConvertable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointDiscreteFourierTransformable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointGeneratable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Exponent", + "conditional": false + }, + { + "name": "RawSignificand", + "conditional": false + }, + { + "name": "RawExponent", + "conditional": false + }, + { + "name": "FloatLiteralType", + "conditional": false + }, + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + }, + { + "name": "SIMDMaskScalar", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-comparableProtocol/Swift.Duration.json b/tests/swift-examples/a-json-swift-comparableProtocol/Swift.Duration.json new file mode 100644 index 00000000..e5b108c7 --- /dev/null +++ b/tests/swift-examples/a-json-swift-comparableProtocol/Swift.Duration.json @@ -0,0 +1,924 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.Duration", + "type_parameters": [], + "methods": [ + { + "name": "seconds", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "seconds", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "milliseconds", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "milliseconds", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "microseconds", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "microseconds", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "nanoseconds", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.Duration", + "T" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.Duration", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.Duration", + "T" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Duration", + "T" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.Duration", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "/", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Duration", + "T" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.Duration", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "secondsComponent: Swift.Int64", + "attosecondsComponent: Swift.Int64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Duration", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.DurationProtocol", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-comparableProtocol/Swift.Float.json b/tests/swift-examples/a-json-swift-comparableProtocol/Swift.Float.json new file mode 100644 index 00000000..ae377c15 --- /dev/null +++ b/tests/swift-examples/a-json-swift-comparableProtocol/Swift.Float.json @@ -0,0 +1,2393 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.Float", + "type_parameters": [], + "methods": [ + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "addingProduct", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addProduct", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "squareRoot", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formSquareRoot", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "truncatingRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formTruncatingRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "negate", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "rounded", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "rounded", + "type_parameters": [], + "parameters": [ + "Swift.FloatingPointRoundingRule" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "round", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "round", + "type_parameters": [], + "parameters": [ + "Swift.FloatingPointRoundingRule" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isEqual", + "type_parameters": [], + "parameters": [ + "to: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isLess", + "type_parameters": [], + "parameters": [ + "than: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isLessThanOrEqualTo", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isTotallyOrdered", + "type_parameters": [], + "parameters": [ + "belowOrEqualTo: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "maximum", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "maximumMagnitude", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "minimum", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "minimumMagnitude", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "write", + "type_parameters": [ + "Target extends any Swift.TextOutputStream" + ], + "parameters": [ + "to: inout Target" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "entityIdentifier", + "type_parameters": [], + "parameters": [ + "for: Swift.String" + ], + "throws": false, + "return_type": "Swift.Float?", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "S extends any Swift.StringProtocol" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Source extends any Swift.BinaryFloatingPoint" + ], + "parameters": [ + "Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "Source" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "signOf: Swift.Float", + "magnitudeOf: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "sign: Swift.FloatingPointSign", + "exponent: Swift.Int", + "significand: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "Source extends any Swift.BinaryFloatingPoint" + ], + "parameters": [ + "exactly: Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "exactly: Source" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "sign: Swift.FloatingPointSign", + "exponentBitPattern: Swift.UInt", + "significandBitPattern: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "nan: Swift.UInt32", + "signaling: Swift.Bool" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "from: any Swift.Decoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "integerLiteral: Swift.Int64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "floatLiteral: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "A extends any ExpressibleByBuiltinIntegerLiter>" + ], + "parameters": [ + "integerLiteral: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": true, + "is_constructor": true, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "Swift.Substring" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "magnitude", + "type": "Swift.Float", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "sign", + "type": "Swift.FloatingPointSign", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "ulp", + "type": "Swift.Float", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significand", + "type": "Swift.Float", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "exponent", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nextUp", + "type": "Swift.Float", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nextDown", + "type": "Swift.Float", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "binade", + "type": "Swift.Float", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "pi", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "infinity", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "greatestFiniteMagnitude", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nan", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "signalingNaN", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "ulpOfOne", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leastNormalMagnitude", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leastNonzeroMagnitude", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.Float", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": true + } + }, + { + "name": "bitPattern", + "type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significandBitPattern", + "type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significandWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "exponentBitPattern", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significandBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "exponentBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "radix", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isZero", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isFinite", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isInfinite", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isNaN", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSignalingNaN", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isNormal", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSubnormal", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isCanonical", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "floatingPointClass", + "type": "Swift.FloatingPointClassification", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "debugDescription", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "hashValue", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "mlMultiArrayDataType", + "type": "CoreML.MLMultiArrayDataType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "multiArrayDataType", + "type": "MLMultiArrayDataType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "ulpOfOne", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "entityIdentifierString", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + + + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Accelerate.BNNSScalar", + "conditional": false + }, + { + "name": "Swift.BinaryFloatingPoint", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomDebugStringConvertible", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByFloatLiteral", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FloatingPoint", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "CoreML.MLShapedArrayScalar", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.SignedNumeric", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.TextOutputStreamable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_DiscreteFourierTransformable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointBiquadFilterable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointConvertable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointDiscreteFourierTransformable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointGeneratable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Exponent", + "conditional": false + }, + { + "name": "RawSignificand", + "conditional": false + }, + { + "name": "SIMDMaskScalar", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-comparableProtocol/Swift.Int.json b/tests/swift-examples/a-json-swift-comparableProtocol/Swift.Int.json new file mode 100644 index 00000000..35e5b930 --- /dev/null +++ b/tests/swift-examples/a-json-swift-comparableProtocol/Swift.Int.json @@ -0,0 +1,2880 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.Int", + "type_parameters": [], + "methods": [ + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "negate", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "quotientAndRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isMultiple", + "type_parameters": [ + "A extends any Swift.FixedWidthInteg>" + ], + "parameters": [ + "of: Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "subtractingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainderReportingOverflow", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividingFullWidth", + "type_parameters": [], + "parameters": [ + "(high: Swift.Int, low: Swift.Int.Swift.UInt)" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "abs", + "type_parameters": [ + "T extends any Swift.SignedNumeric" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "T", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "signum", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.Int", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.Int", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "~", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "RHS" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "RHS" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.Int", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.Int", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "entityIdentifier", + "type_parameters": [], + "parameters": [ + "for: Swift.String" + ], + "throws": false, + "return_type": "Swift.Int?", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "T extends any Swift.BinaryInteger", + "A extends any Swift.FixedWidthInteg>" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": true, + "is_constructor": true, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "T extends any Swift.BinaryInteger", + "A extends any Swift.FixedWidthInteg>" + ], + "parameters": [ + "exactly: T" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": true, + "is_constructor": true, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "clamping: Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "truncatingIfNeeded: T" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "T extends any Swift.BinaryFloatingPoint" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "T extends any Swift.BinaryFloatingPoint" + ], + "parameters": [ + "exactly: T" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "Swift.String" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "S extends any Swift.StringProtocol" + ], + "parameters": [ + "S", + "radix: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "littleEndian: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bigEndian: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "P extends any _Pointer" + ], + "parameters": [ + "bitPattern: P?" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.ObjectIdentifier" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.OpaquePointer?" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "from: any Swift.Decoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "from: CreateML.MLDataValue" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "A extends any ExpressibleByBuiltinIntegerLiter>" + ], + "parameters": [ + "integerLiteral: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": true, + "is_constructor": true, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "magnitude", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.Int", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": true + } + }, + { + "name": "min", + "type": "Swift.Int", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": true + } + }, + { + "name": "max", + "type": "Swift.Int", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": true + } + }, + { + "name": "isSigned", + "type": "Swift.Bool", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "byteSwapped", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "littleEndian", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bigEndian", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nonzeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leadingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "trailingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "words", + "type": "Swift.Int.Words", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "dataValue", + "type": "CreateML.MLDataValue", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "identifierValue", + "type": "CreateML.MLDataValue", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "dataValueType", + "type": "CreateML.MLDataValue.ValueType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "entityIdentifierString", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Swift.BinaryInteger", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.CodingKeyRepresentable", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FixedWidthInteger", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.MirrorPath", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.SignedInteger", + "conditional": false + }, + { + "name": "Swift.SignedNumeric", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + }, + { + "name": "SIMDMaskScalar", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-comparableProtocol/Swift.UInt.json b/tests/swift-examples/a-json-swift-comparableProtocol/Swift.UInt.json new file mode 100644 index 00000000..aa514d70 --- /dev/null +++ b/tests/swift-examples/a-json-swift-comparableProtocol/Swift.UInt.json @@ -0,0 +1,2528 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.UInt", + "type_parameters": [], + "methods": [ + { + "name": "&=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividingFullWidth", + "type_parameters": [], + "parameters": [ + "(high: Swift.UInt, low: Swift.UInt.Swift.UInt)" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainderReportingOverflow", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "signum", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "subtractingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isMultiple", + "type_parameters": [], + "parameters": [ + "of: Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "quotientAndRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "~", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "P extends any _Pointer" + ], + "parameters": [ + "bitPattern: P?" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.OpaquePointer?" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.ObjectIdentifier" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "byteSwapped", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leadingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nonzeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "trailingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "words", + "type": "Swift.UInt.Words", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "magnitude", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSigned", + "type": "Bool", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "max", + "type": "Swift.UInt", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "min", + "type": "Swift.UInt", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "hashValue", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.UInt", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bigEndian", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "littleEndian", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Swift.BinaryInteger", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FixedWidthInteger", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.UnsignedInteger", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-comparableProtocol/Swift.UInt16.json b/tests/swift-examples/a-json-swift-comparableProtocol/Swift.UInt16.json new file mode 100644 index 00000000..b7755c87 --- /dev/null +++ b/tests/swift-examples/a-json-swift-comparableProtocol/Swift.UInt16.json @@ -0,0 +1,2484 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.UInt16", + "type_parameters": [], + "methods": [ + { + "name": "&=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividingFullWidth", + "type_parameters": [], + "parameters": [ + "(high: Swift.UInt16, low: Swift.UInt16.Swift.UInt16)" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainderReportingOverflow", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "signum", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "subtractingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "~", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isMultiple", + "type_parameters": [], + "parameters": [ + "of: Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "quotientAndRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.Int16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "byteSwapped", + "type": "Swift.UInt16", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leadingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nonzeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "trailingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "words", + "type": "Swift.UInt16.Words", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "magnitude", + "type": "Swift.UInt16", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSigned", + "type": "Bool", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "max", + "type": "Swift.UInt16", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "min", + "type": "Swift.UInt16", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "zero", + "type": "Swift.UInt16", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bigEndian", + "type": "Swift.UInt16", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "littleEndian", + "type": "Swift.UInt16", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bnnsDataType", + "type": "BNNSDataType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Accelerate.BNNSScalar", + "conditional": false + }, + { + "name": "Swift.BinaryInteger", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FixedWidthInteger", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.UnsignedInteger", + "conditional": false + }, + { + "name": "Accelerate.vDSP_IntegerConvertable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-comparableProtocol/Swift.UInt32.json b/tests/swift-examples/a-json-swift-comparableProtocol/Swift.UInt32.json new file mode 100644 index 00000000..37c541ca --- /dev/null +++ b/tests/swift-examples/a-json-swift-comparableProtocol/Swift.UInt32.json @@ -0,0 +1,2494 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.UInt32", + "type_parameters": [], + "methods": [ + { + "name": "&=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividingFullWidth", + "type_parameters": [], + "parameters": [ + "(high: Swift.UInt32, low: Swift.UInt32.Swift.UInt32)" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainderReportingOverflow", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "signum", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "subtractingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "~", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isMultiple", + "type_parameters": [], + "parameters": [ + "of: Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "quotientAndRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Unicode.Scalar" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.Int32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "byteSwapped", + "type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leadingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nonzeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "trailingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "words", + "type": "Swift.UInt32.Words", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "magnitude", + "type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSigned", + "type": "Bool", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "max", + "type": "Swift.UInt32", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "min", + "type": "Swift.UInt32", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.UInt32", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bigEndian", + "type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "littleEndian", + "type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Accelerate.BNNSScalar", + "conditional": false + }, + { + "name": "Swift.BinaryInteger", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FixedWidthInteger", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.UnsignedInteger", + "conditional": false + }, + { + "name": "Accelerate.vDSP_IntegerConvertable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-comparableProtocol/Swift.UInt64.json b/tests/swift-examples/a-json-swift-comparableProtocol/Swift.UInt64.json new file mode 100644 index 00000000..931eba2a --- /dev/null +++ b/tests/swift-examples/a-json-swift-comparableProtocol/Swift.UInt64.json @@ -0,0 +1,2510 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.UInt64", + "type_parameters": [], + "methods": [ + { + "name": "&=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividingFullWidth", + "type_parameters": [], + "parameters": [ + "(high: Swift.UInt64, low: Swift.UInt64.Swift.UInt64)" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainderReportingOverflow", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "signum", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "subtractingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isMultiple", + "type_parameters": [], + "parameters": [ + "of: Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "quotientAndRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "~", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Unicode.Scalar" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.Int64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "byteSwapped", + "type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leadingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nonzeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "trailingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "words", + "type": "Swift.UInt64.Words", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "hashValue", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.UInt64", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "magnitude", + "type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSigned", + "type": "Bool", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "max", + "type": "Swift.UInt64", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "min", + "type": "Swift.UInt64", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bigEndian", + "type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "littleEndian", + "type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Accelerate.BNNSScalar", + "conditional": false + }, + { + "name": "Swift.BinaryInteger", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FixedWidthInteger", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.UnsignedInteger", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-comparableProtocol/Swift.UInt8.json b/tests/swift-examples/a-json-swift-comparableProtocol/Swift.UInt8.json new file mode 100644 index 00000000..94b7e2e6 --- /dev/null +++ b/tests/swift-examples/a-json-swift-comparableProtocol/Swift.UInt8.json @@ -0,0 +1,2504 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.UInt8", + "type_parameters": [], + "methods": [ + { + "name": "&=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividingFullWidth", + "type_parameters": [], + "parameters": [ + "(high: Swift.UInt8, low: Swift.UInt8.Swift.UInt8)" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainderReportingOverflow", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "signum", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "subtractingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "~", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "isMultiple", + "type_parameters": [], + "parameters": [ + "of: Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "quotientAndRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "ascii: Swift.Unicode.Scalar" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.Int8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "byteSwapped", + "type": "Swift.UInt8", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leadingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nonzeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "trailingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "words", + "type": "Swift.UInt8.Words", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bnnsDataType", + "type": "BNNSDataType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bigEndian", + "type": "Swift.UInt8", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "littleEndian", + "type": "Swift.UInt8", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.UInt8", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "magnitude", + "type": "Swift.UInt8", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSigned", + "type": "Bool", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "max", + "type": "Swift.UInt8", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "min", + "type": "Swift.UInt8", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Accelerate.BNNSScalar", + "conditional": false + }, + { + "name": "Swift.BinaryInteger", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FixedWidthInteger", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.UnsignedInteger", + "conditional": false + }, + { + "name": "Accelerate.vDSP_IntegerConvertable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-equatableProtocol/Swift.Bool.json b/tests/swift-examples/a-json-swift-equatableProtocol/Swift.Bool.json new file mode 100644 index 00000000..10130086 --- /dev/null +++ b/tests/swift-examples/a-json-swift-equatableProtocol/Swift.Bool.json @@ -0,0 +1,510 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.Bool", + "type_parameters": [], + "methods": [ + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Bool", + "Swift.Bool" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.Bool", + "Swift.Bool" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "toggle", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!", + "type_parameters": [], + "parameters": [ + "Swift.Bool" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&&", + "type_parameters": [], + "parameters": [ + "Swift.Bool", + "() throws -> Swift.Bool" + ], + "throws": true, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "||", + "type_parameters": [], + "parameters": [ + "Swift.Bool", + "() throws -> Swift.Bool" + ], + "throws": true, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Bool" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "Swift.String" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "from: any Swift.Decoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "from: CreateML.MLDataValue" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "booleanLiteral: Swift.Bool" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "customMirror", + "type": "Swift.Mirror", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "dataValue", + "type": "CreateML.MLDataValue", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "dataValueType", + "type": "CreateML.MLDataValue.ValueType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bnnsDataType", + "type": "BNNSDataType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "defaultResolverSpecification", + "type": "some ResolverSpecification", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Accelerate.BNNSScalar", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByBooleanLiteral", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-equatableProtocol/Swift.Character.json b/tests/swift-examples/a-json-swift-equatableProtocol/Swift.Character.json new file mode 100644 index 00000000..3ce63748 --- /dev/null +++ b/tests/swift-examples/a-json-swift-equatableProtocol/Swift.Character.json @@ -0,0 +1,714 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.Character", + "type_parameters": [], + "methods": [ + { + "name": "write", + "type_parameters": [ + "Target extends any Swift.TextOutputStream" + ], + "parameters": [ + "to: inout Target" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Character", + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.Character", + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "uppercased", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "lowercased", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Character", + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Character", + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Character", + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Character", + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Character", + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Character", + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.String" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Unicode.Scalar" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "extendedGraphemeClusterLiteral: Swift.Character" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "unicodeScalarLiteral: Self.ExtendedGraphemeClusterLiteralType" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + } + ], + "fields": [ + { + "name": "unicodeScalars", + "type": "Swift.Character.UnicodeScalarView", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isASCII", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "asciiValue", + "type": "Swift.UInt8?", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isLetter", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isPunctuation", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isNewline", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isWhitespace", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSymbol", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isMathSymbol", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isCurrencySymbol", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isCased", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isUppercase", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isLowercase", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isNumber", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isWholeNumber", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "wholeNumberValue", + "type": "Swift.Int?", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isHexDigit", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hexDigitValue", + "type": "Swift.Int?", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "debugDescription", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "customMirror", + "type": "Swift.Mirror", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "utf16", + "type": "Swift.Character.UTF16View", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "utf8", + "type": "Swift.Character.UTF8View", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "regex", + "type": "Regex", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomDebugStringConvertible", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByExtendedGraphemeClusterLiteral", + "conditional": false + }, + { + "name": "Swift.ExpressibleByUnicodeScalarLiteral", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + + { + "name": "Swift.TextOutputStreamable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "UnicodeScalarView", + "conditional": false + }, + { + "name": "Output", + "conditional": false + }, + { + "name": "UTF16View", + "conditional": false + }, + { + "name": "UTF8View", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-equatableProtocol/Swift.Double.json b/tests/swift-examples/a-json-swift-equatableProtocol/Swift.Double.json new file mode 100644 index 00000000..abb35894 --- /dev/null +++ b/tests/swift-examples/a-json-swift-equatableProtocol/Swift.Double.json @@ -0,0 +1,2445 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.Double", + "type_parameters": [], + "methods": [ + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "addingProduct", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addProduct", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "squareRoot", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formSquareRoot", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "truncatingRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formTruncatingRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "negate", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "rounded", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "rounded", + "type_parameters": [], + "parameters": [ + "Swift.FloatingPointRoundingRule" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "round", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "round", + "type_parameters": [], + "parameters": [ + "Swift.FloatingPointRoundingRule" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isEqual", + "type_parameters": [], + "parameters": [ + "to: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isLess", + "type_parameters": [], + "parameters": [ + "than: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isLessThanOrEqualTo", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isTotallyOrdered", + "type_parameters": [], + "parameters": [ + "belowOrEqualTo: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "minimum", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "minimumMagnitude", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "maximum", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "maximumMagnitude", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "write", + "type_parameters": [ + "Target extends any Swift.TextOutputStream" + ], + "parameters": [ + "to: inout Target" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "S extends any Swift.StringProtocol" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "Swift.Substring" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Source extends any Swift.BinaryFloatingPoint" + ], + "parameters": [ + "Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "sign: Swift.FloatingPointSign", + "exponent: Swift.Int", + "significand: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "signOf: Swift.Double", + "magnitudeOf: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "Source" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "Source extends any Swift.BinaryFloatingPoint" + ], + "parameters": [ + "exactly: Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "exactly: Source" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "init?", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "exactly: Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "sign: Swift.FloatingPointSign", + "exponentBitPattern: Swift.UInt", + "significandBitPattern: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "nan: Swift.UInt64", + "signaling: Swift.Bool" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "from: any Swift.Decoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "from: CreateML.MLDataValue" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "floatLiteral: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "integerLiteral: Swift.Int64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "A extends any ExpressibleByBuiltinIntegerLiter>" + ], + "parameters": [ + "integerLiteral: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": true, + "is_constructor": true, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "magnitude", + "type": "Swift.Double", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "sign", + "type": "Swift.FloatingPointSign", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "ulp", + "type": "Swift.Double", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significand", + "type": "Swift.Double", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "exponent", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nextUp", + "type": "Swift.Double", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nextDown", + "type": "Swift.Double", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "binade", + "type": "Swift.Double", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "pi", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "infinity", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "greatestFiniteMagnitude", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nan", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "signalingNaN", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "ulpOfOne", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leastNonzeroMagnitude", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leastNormalMagnitude", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.Double", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": true + } + }, + { + "name": "bitPattern", + "type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significandBitPattern", + "type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significandWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "exponentBitPattern", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significandBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "exponentBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "radix", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isZero", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isFinite", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isInfinite", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isNaN", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSignalingNaN", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isNormal", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSubnormal", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isCanonical", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "floatingPointClass", + "type": "Swift.FloatingPointClassification", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "debugDescription", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "dataValue", + "type": "CreateML.MLDataValue", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "dataValueType", + "type": "CreateML.MLDataValue.ValueType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "mlMultiArrayDataType", + "type": "CoreML.MLMultiArrayDataType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "multiArrayDataType", + "type": "MLMultiArrayDataType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "defaultResolverSpecification", + "type": "some ResolverSpecification", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "ulpOfOne", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Swift.BinaryFloatingPoint", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomDebugStringConvertible", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByFloatLiteral", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FloatingPoint", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "CoreML.MLShapedArrayScalar", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.SignedNumeric", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.TextOutputStreamable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_DiscreteFourierTransformable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointBiquadFilterable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointConvertable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointDiscreteFourierTransformable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointGeneratable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Exponent", + "conditional": false + }, + { + "name": "RawSignificand", + "conditional": false + }, + { + "name": "RawExponent", + "conditional": false + }, + { + "name": "FloatLiteralType", + "conditional": false + }, + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + }, + { + "name": "SIMDMaskScalar", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-equatableProtocol/Swift.Duration.json b/tests/swift-examples/a-json-swift-equatableProtocol/Swift.Duration.json new file mode 100644 index 00000000..e5b108c7 --- /dev/null +++ b/tests/swift-examples/a-json-swift-equatableProtocol/Swift.Duration.json @@ -0,0 +1,924 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.Duration", + "type_parameters": [], + "methods": [ + { + "name": "seconds", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "seconds", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "milliseconds", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "milliseconds", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "microseconds", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "microseconds", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "nanoseconds", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.Duration", + "T" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.Duration", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.Duration", + "T" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Duration", + "T" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.Duration", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "/", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Duration", + "T" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.Duration", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "secondsComponent: Swift.Int64", + "attosecondsComponent: Swift.Int64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Duration", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.DurationProtocol", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-equatableProtocol/Swift.Float.json b/tests/swift-examples/a-json-swift-equatableProtocol/Swift.Float.json new file mode 100644 index 00000000..ae377c15 --- /dev/null +++ b/tests/swift-examples/a-json-swift-equatableProtocol/Swift.Float.json @@ -0,0 +1,2393 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.Float", + "type_parameters": [], + "methods": [ + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "addingProduct", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addProduct", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "squareRoot", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formSquareRoot", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "truncatingRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formTruncatingRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "negate", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "rounded", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "rounded", + "type_parameters": [], + "parameters": [ + "Swift.FloatingPointRoundingRule" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "round", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "round", + "type_parameters": [], + "parameters": [ + "Swift.FloatingPointRoundingRule" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isEqual", + "type_parameters": [], + "parameters": [ + "to: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isLess", + "type_parameters": [], + "parameters": [ + "than: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isLessThanOrEqualTo", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isTotallyOrdered", + "type_parameters": [], + "parameters": [ + "belowOrEqualTo: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "maximum", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "maximumMagnitude", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "minimum", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "minimumMagnitude", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "write", + "type_parameters": [ + "Target extends any Swift.TextOutputStream" + ], + "parameters": [ + "to: inout Target" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "entityIdentifier", + "type_parameters": [], + "parameters": [ + "for: Swift.String" + ], + "throws": false, + "return_type": "Swift.Float?", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "S extends any Swift.StringProtocol" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Source extends any Swift.BinaryFloatingPoint" + ], + "parameters": [ + "Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "Source" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "signOf: Swift.Float", + "magnitudeOf: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "sign: Swift.FloatingPointSign", + "exponent: Swift.Int", + "significand: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "Source extends any Swift.BinaryFloatingPoint" + ], + "parameters": [ + "exactly: Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "exactly: Source" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "sign: Swift.FloatingPointSign", + "exponentBitPattern: Swift.UInt", + "significandBitPattern: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "nan: Swift.UInt32", + "signaling: Swift.Bool" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "from: any Swift.Decoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "integerLiteral: Swift.Int64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "floatLiteral: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "A extends any ExpressibleByBuiltinIntegerLiter>" + ], + "parameters": [ + "integerLiteral: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": true, + "is_constructor": true, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "Swift.Substring" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "magnitude", + "type": "Swift.Float", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "sign", + "type": "Swift.FloatingPointSign", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "ulp", + "type": "Swift.Float", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significand", + "type": "Swift.Float", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "exponent", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nextUp", + "type": "Swift.Float", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nextDown", + "type": "Swift.Float", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "binade", + "type": "Swift.Float", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "pi", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "infinity", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "greatestFiniteMagnitude", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nan", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "signalingNaN", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "ulpOfOne", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leastNormalMagnitude", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leastNonzeroMagnitude", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.Float", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": true + } + }, + { + "name": "bitPattern", + "type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significandBitPattern", + "type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significandWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "exponentBitPattern", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significandBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "exponentBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "radix", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isZero", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isFinite", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isInfinite", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isNaN", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSignalingNaN", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isNormal", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSubnormal", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isCanonical", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "floatingPointClass", + "type": "Swift.FloatingPointClassification", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "debugDescription", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "hashValue", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "mlMultiArrayDataType", + "type": "CoreML.MLMultiArrayDataType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "multiArrayDataType", + "type": "MLMultiArrayDataType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "ulpOfOne", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "entityIdentifierString", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + + + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Accelerate.BNNSScalar", + "conditional": false + }, + { + "name": "Swift.BinaryFloatingPoint", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomDebugStringConvertible", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByFloatLiteral", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FloatingPoint", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "CoreML.MLShapedArrayScalar", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.SignedNumeric", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.TextOutputStreamable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_DiscreteFourierTransformable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointBiquadFilterable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointConvertable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointDiscreteFourierTransformable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointGeneratable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Exponent", + "conditional": false + }, + { + "name": "RawSignificand", + "conditional": false + }, + { + "name": "SIMDMaskScalar", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-equatableProtocol/Swift.Int.json b/tests/swift-examples/a-json-swift-equatableProtocol/Swift.Int.json new file mode 100644 index 00000000..59f28537 --- /dev/null +++ b/tests/swift-examples/a-json-swift-equatableProtocol/Swift.Int.json @@ -0,0 +1,2880 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.Int", + "type_parameters": [], + "methods": [ + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "negate", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "quotientAndRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isMultiple", + "type_parameters": [ + "A extends any Swift.FixedWidthInteger" + ], + "parameters": [ + "of: Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "subtractingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainderReportingOverflow", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividingFullWidth", + "type_parameters": [], + "parameters": [ + "(high: Swift.Int, low: Swift.Int.Swift.UInt)" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "abs", + "type_parameters": [ + "T extends any Swift.SignedNumeric" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "T", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "signum", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.Int", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.Int", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "~", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "RHS" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "RHS" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.Int", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.Int", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "entityIdentifier", + "type_parameters": [], + "parameters": [ + "for: Swift.String" + ], + "throws": false, + "return_type": "Swift.Int?", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "T extends any Swift.BinaryInteger", + "A extends any Swift.FixedWidthInteger" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": true, + "is_constructor": true, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "T extends any Swift.BinaryInteger", + "A extends any Swift.FixedWidthInteger" + ], + "parameters": [ + "exactly: T" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": true, + "is_constructor": true, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "clamping: Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "truncatingIfNeeded: T" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "T extends any Swift.BinaryFloatingPoint" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "T extends any Swift.BinaryFloatingPoint" + ], + "parameters": [ + "exactly: T" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "Swift.String" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "S extends any Swift.StringProtocol" + ], + "parameters": [ + "S", + "radix: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "littleEndian: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bigEndian: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "P extends any _Pointer" + ], + "parameters": [ + "bitPattern: P?" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.ObjectIdentifier" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.OpaquePointer?" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "from: any Swift.Decoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "from: CreateML.MLDataValue" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "A extends any ExpressibleByBuiltinIntegerLiter>" + ], + "parameters": [ + "integerLiteral: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": true, + "is_constructor": true, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "magnitude", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.Int", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": true + } + }, + { + "name": "min", + "type": "Swift.Int", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": true + } + }, + { + "name": "max", + "type": "Swift.Int", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": true + } + }, + { + "name": "isSigned", + "type": "Swift.Bool", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "byteSwapped", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "littleEndian", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bigEndian", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nonzeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leadingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "trailingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "words", + "type": "Swift.Int.Words", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "dataValue", + "type": "CreateML.MLDataValue", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "identifierValue", + "type": "CreateML.MLDataValue", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "dataValueType", + "type": "CreateML.MLDataValue.ValueType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "entityIdentifierString", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Swift.BinaryInteger", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.CodingKeyRepresentable", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FixedWidthInteger", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.MirrorPath", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.SignedInteger", + "conditional": false + }, + { + "name": "Swift.SignedNumeric", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + }, + { + "name": "SIMDMaskScalar", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-equatableProtocol/Swift.UInt.json b/tests/swift-examples/a-json-swift-equatableProtocol/Swift.UInt.json new file mode 100644 index 00000000..aa514d70 --- /dev/null +++ b/tests/swift-examples/a-json-swift-equatableProtocol/Swift.UInt.json @@ -0,0 +1,2528 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.UInt", + "type_parameters": [], + "methods": [ + { + "name": "&=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividingFullWidth", + "type_parameters": [], + "parameters": [ + "(high: Swift.UInt, low: Swift.UInt.Swift.UInt)" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainderReportingOverflow", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "signum", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "subtractingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isMultiple", + "type_parameters": [], + "parameters": [ + "of: Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "quotientAndRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "~", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "P extends any _Pointer" + ], + "parameters": [ + "bitPattern: P?" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.OpaquePointer?" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.ObjectIdentifier" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "byteSwapped", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leadingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nonzeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "trailingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "words", + "type": "Swift.UInt.Words", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "magnitude", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSigned", + "type": "Bool", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "max", + "type": "Swift.UInt", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "min", + "type": "Swift.UInt", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "hashValue", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.UInt", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bigEndian", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "littleEndian", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Swift.BinaryInteger", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FixedWidthInteger", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.UnsignedInteger", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-equatableProtocol/Swift.UInt16.json b/tests/swift-examples/a-json-swift-equatableProtocol/Swift.UInt16.json new file mode 100644 index 00000000..b7755c87 --- /dev/null +++ b/tests/swift-examples/a-json-swift-equatableProtocol/Swift.UInt16.json @@ -0,0 +1,2484 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.UInt16", + "type_parameters": [], + "methods": [ + { + "name": "&=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividingFullWidth", + "type_parameters": [], + "parameters": [ + "(high: Swift.UInt16, low: Swift.UInt16.Swift.UInt16)" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainderReportingOverflow", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "signum", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "subtractingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "~", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isMultiple", + "type_parameters": [], + "parameters": [ + "of: Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "quotientAndRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.Int16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "byteSwapped", + "type": "Swift.UInt16", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leadingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nonzeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "trailingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "words", + "type": "Swift.UInt16.Words", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "magnitude", + "type": "Swift.UInt16", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSigned", + "type": "Bool", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "max", + "type": "Swift.UInt16", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "min", + "type": "Swift.UInt16", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "zero", + "type": "Swift.UInt16", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bigEndian", + "type": "Swift.UInt16", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "littleEndian", + "type": "Swift.UInt16", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bnnsDataType", + "type": "BNNSDataType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Accelerate.BNNSScalar", + "conditional": false + }, + { + "name": "Swift.BinaryInteger", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FixedWidthInteger", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.UnsignedInteger", + "conditional": false + }, + { + "name": "Accelerate.vDSP_IntegerConvertable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-equatableProtocol/Swift.UInt32.json b/tests/swift-examples/a-json-swift-equatableProtocol/Swift.UInt32.json new file mode 100644 index 00000000..37c541ca --- /dev/null +++ b/tests/swift-examples/a-json-swift-equatableProtocol/Swift.UInt32.json @@ -0,0 +1,2494 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.UInt32", + "type_parameters": [], + "methods": [ + { + "name": "&=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividingFullWidth", + "type_parameters": [], + "parameters": [ + "(high: Swift.UInt32, low: Swift.UInt32.Swift.UInt32)" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainderReportingOverflow", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "signum", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "subtractingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "~", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isMultiple", + "type_parameters": [], + "parameters": [ + "of: Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "quotientAndRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Unicode.Scalar" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.Int32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "byteSwapped", + "type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leadingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nonzeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "trailingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "words", + "type": "Swift.UInt32.Words", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "magnitude", + "type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSigned", + "type": "Bool", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "max", + "type": "Swift.UInt32", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "min", + "type": "Swift.UInt32", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.UInt32", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bigEndian", + "type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "littleEndian", + "type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Accelerate.BNNSScalar", + "conditional": false + }, + { + "name": "Swift.BinaryInteger", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FixedWidthInteger", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.UnsignedInteger", + "conditional": false + }, + { + "name": "Accelerate.vDSP_IntegerConvertable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-equatableProtocol/Swift.UInt64.json b/tests/swift-examples/a-json-swift-equatableProtocol/Swift.UInt64.json new file mode 100644 index 00000000..931eba2a --- /dev/null +++ b/tests/swift-examples/a-json-swift-equatableProtocol/Swift.UInt64.json @@ -0,0 +1,2510 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.UInt64", + "type_parameters": [], + "methods": [ + { + "name": "&=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividingFullWidth", + "type_parameters": [], + "parameters": [ + "(high: Swift.UInt64, low: Swift.UInt64.Swift.UInt64)" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainderReportingOverflow", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "signum", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "subtractingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isMultiple", + "type_parameters": [], + "parameters": [ + "of: Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "quotientAndRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "~", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Unicode.Scalar" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.Int64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "byteSwapped", + "type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leadingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nonzeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "trailingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "words", + "type": "Swift.UInt64.Words", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "hashValue", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.UInt64", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "magnitude", + "type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSigned", + "type": "Bool", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "max", + "type": "Swift.UInt64", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "min", + "type": "Swift.UInt64", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bigEndian", + "type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "littleEndian", + "type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Accelerate.BNNSScalar", + "conditional": false + }, + { + "name": "Swift.BinaryInteger", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FixedWidthInteger", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.UnsignedInteger", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-equatableProtocol/Swift.UInt8.json b/tests/swift-examples/a-json-swift-equatableProtocol/Swift.UInt8.json new file mode 100644 index 00000000..94b7e2e6 --- /dev/null +++ b/tests/swift-examples/a-json-swift-equatableProtocol/Swift.UInt8.json @@ -0,0 +1,2504 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.UInt8", + "type_parameters": [], + "methods": [ + { + "name": "&=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividingFullWidth", + "type_parameters": [], + "parameters": [ + "(high: Swift.UInt8, low: Swift.UInt8.Swift.UInt8)" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainderReportingOverflow", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "signum", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "subtractingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "~", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "isMultiple", + "type_parameters": [], + "parameters": [ + "of: Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "quotientAndRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "ascii: Swift.Unicode.Scalar" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.Int8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "byteSwapped", + "type": "Swift.UInt8", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leadingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nonzeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "trailingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "words", + "type": "Swift.UInt8.Words", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bnnsDataType", + "type": "BNNSDataType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bigEndian", + "type": "Swift.UInt8", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "littleEndian", + "type": "Swift.UInt8", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.UInt8", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "magnitude", + "type": "Swift.UInt8", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSigned", + "type": "Bool", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "max", + "type": "Swift.UInt8", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "min", + "type": "Swift.UInt8", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Accelerate.BNNSScalar", + "conditional": false + }, + { + "name": "Swift.BinaryInteger", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FixedWidthInteger", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.UnsignedInteger", + "conditional": false + }, + { + "name": "Accelerate.vDSP_IntegerConvertable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-hashableProtocol/Swift.Bool.json b/tests/swift-examples/a-json-swift-hashableProtocol/Swift.Bool.json new file mode 100644 index 00000000..10130086 --- /dev/null +++ b/tests/swift-examples/a-json-swift-hashableProtocol/Swift.Bool.json @@ -0,0 +1,510 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.Bool", + "type_parameters": [], + "methods": [ + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Bool", + "Swift.Bool" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.Bool", + "Swift.Bool" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "toggle", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!", + "type_parameters": [], + "parameters": [ + "Swift.Bool" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&&", + "type_parameters": [], + "parameters": [ + "Swift.Bool", + "() throws -> Swift.Bool" + ], + "throws": true, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "||", + "type_parameters": [], + "parameters": [ + "Swift.Bool", + "() throws -> Swift.Bool" + ], + "throws": true, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Bool" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "Swift.String" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "from: any Swift.Decoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "from: CreateML.MLDataValue" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "booleanLiteral: Swift.Bool" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "customMirror", + "type": "Swift.Mirror", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "dataValue", + "type": "CreateML.MLDataValue", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "dataValueType", + "type": "CreateML.MLDataValue.ValueType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bnnsDataType", + "type": "BNNSDataType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "defaultResolverSpecification", + "type": "some ResolverSpecification", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Accelerate.BNNSScalar", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByBooleanLiteral", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-hashableProtocol/Swift.Character.json b/tests/swift-examples/a-json-swift-hashableProtocol/Swift.Character.json new file mode 100644 index 00000000..3ce63748 --- /dev/null +++ b/tests/swift-examples/a-json-swift-hashableProtocol/Swift.Character.json @@ -0,0 +1,714 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.Character", + "type_parameters": [], + "methods": [ + { + "name": "write", + "type_parameters": [ + "Target extends any Swift.TextOutputStream" + ], + "parameters": [ + "to: inout Target" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Character", + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.Character", + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "uppercased", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "lowercased", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Character", + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Character", + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Character", + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Character", + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Character", + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Character", + "Swift.Character" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.String" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Unicode.Scalar" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "extendedGraphemeClusterLiteral: Swift.Character" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "unicodeScalarLiteral: Self.ExtendedGraphemeClusterLiteralType" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + } + ], + "fields": [ + { + "name": "unicodeScalars", + "type": "Swift.Character.UnicodeScalarView", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isASCII", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "asciiValue", + "type": "Swift.UInt8?", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isLetter", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isPunctuation", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isNewline", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isWhitespace", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSymbol", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isMathSymbol", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isCurrencySymbol", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isCased", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isUppercase", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isLowercase", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isNumber", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isWholeNumber", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "wholeNumberValue", + "type": "Swift.Int?", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isHexDigit", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hexDigitValue", + "type": "Swift.Int?", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "debugDescription", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "customMirror", + "type": "Swift.Mirror", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "utf16", + "type": "Swift.Character.UTF16View", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "utf8", + "type": "Swift.Character.UTF8View", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "regex", + "type": "Regex", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomDebugStringConvertible", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByExtendedGraphemeClusterLiteral", + "conditional": false + }, + { + "name": "Swift.ExpressibleByUnicodeScalarLiteral", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + + { + "name": "Swift.TextOutputStreamable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "UnicodeScalarView", + "conditional": false + }, + { + "name": "Output", + "conditional": false + }, + { + "name": "UTF16View", + "conditional": false + }, + { + "name": "UTF8View", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-hashableProtocol/Swift.Double.json b/tests/swift-examples/a-json-swift-hashableProtocol/Swift.Double.json new file mode 100644 index 00000000..abb35894 --- /dev/null +++ b/tests/swift-examples/a-json-swift-hashableProtocol/Swift.Double.json @@ -0,0 +1,2445 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.Double", + "type_parameters": [], + "methods": [ + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "addingProduct", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addProduct", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "squareRoot", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formSquareRoot", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "truncatingRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formTruncatingRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "negate", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "rounded", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "rounded", + "type_parameters": [], + "parameters": [ + "Swift.FloatingPointRoundingRule" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "round", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "round", + "type_parameters": [], + "parameters": [ + "Swift.FloatingPointRoundingRule" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isEqual", + "type_parameters": [], + "parameters": [ + "to: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isLess", + "type_parameters": [], + "parameters": [ + "than: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isLessThanOrEqualTo", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isTotallyOrdered", + "type_parameters": [], + "parameters": [ + "belowOrEqualTo: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "minimum", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "minimumMagnitude", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "maximum", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "maximumMagnitude", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "write", + "type_parameters": [ + "Target extends any Swift.TextOutputStream" + ], + "parameters": [ + "to: inout Target" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "S extends any Swift.StringProtocol" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "Swift.Substring" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Source extends any Swift.BinaryFloatingPoint" + ], + "parameters": [ + "Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "sign: Swift.FloatingPointSign", + "exponent: Swift.Int", + "significand: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "signOf: Swift.Double", + "magnitudeOf: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "Source" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "Source extends any Swift.BinaryFloatingPoint" + ], + "parameters": [ + "exactly: Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "exactly: Source" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "init?", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "exactly: Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "sign: Swift.FloatingPointSign", + "exponentBitPattern: Swift.UInt", + "significandBitPattern: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "nan: Swift.UInt64", + "signaling: Swift.Bool" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "from: any Swift.Decoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "from: CreateML.MLDataValue" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "floatLiteral: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "integerLiteral: Swift.Int64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "A extends any ExpressibleByBuiltinIntegerLiter>" + ], + "parameters": [ + "integerLiteral: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": true, + "is_constructor": true, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "magnitude", + "type": "Swift.Double", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "sign", + "type": "Swift.FloatingPointSign", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "ulp", + "type": "Swift.Double", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significand", + "type": "Swift.Double", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "exponent", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nextUp", + "type": "Swift.Double", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nextDown", + "type": "Swift.Double", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "binade", + "type": "Swift.Double", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "pi", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "infinity", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "greatestFiniteMagnitude", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nan", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "signalingNaN", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "ulpOfOne", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leastNonzeroMagnitude", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leastNormalMagnitude", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.Double", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": true + } + }, + { + "name": "bitPattern", + "type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significandBitPattern", + "type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significandWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "exponentBitPattern", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significandBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "exponentBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "radix", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isZero", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isFinite", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isInfinite", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isNaN", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSignalingNaN", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isNormal", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSubnormal", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isCanonical", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "floatingPointClass", + "type": "Swift.FloatingPointClassification", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "debugDescription", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "dataValue", + "type": "CreateML.MLDataValue", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "dataValueType", + "type": "CreateML.MLDataValue.ValueType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "mlMultiArrayDataType", + "type": "CoreML.MLMultiArrayDataType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "multiArrayDataType", + "type": "MLMultiArrayDataType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "defaultResolverSpecification", + "type": "some ResolverSpecification", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "ulpOfOne", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Swift.BinaryFloatingPoint", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomDebugStringConvertible", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByFloatLiteral", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FloatingPoint", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "CoreML.MLShapedArrayScalar", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.SignedNumeric", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.TextOutputStreamable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_DiscreteFourierTransformable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointBiquadFilterable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointConvertable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointDiscreteFourierTransformable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointGeneratable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Exponent", + "conditional": false + }, + { + "name": "RawSignificand", + "conditional": false + }, + { + "name": "RawExponent", + "conditional": false + }, + { + "name": "FloatLiteralType", + "conditional": false + }, + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + }, + { + "name": "SIMDMaskScalar", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-hashableProtocol/Swift.Duration.json b/tests/swift-examples/a-json-swift-hashableProtocol/Swift.Duration.json new file mode 100644 index 00000000..e5b108c7 --- /dev/null +++ b/tests/swift-examples/a-json-swift-hashableProtocol/Swift.Duration.json @@ -0,0 +1,924 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.Duration", + "type_parameters": [], + "methods": [ + { + "name": "seconds", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "seconds", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "milliseconds", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "milliseconds", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "microseconds", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "microseconds", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "nanoseconds", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.Duration", + "T" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.Duration", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.Duration", + "T" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Duration", + "T" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.Duration", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "/", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Duration", + "T" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.Duration", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "Swift.Duration", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Duration", + "Swift.Duration" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "secondsComponent: Swift.Int64", + "attosecondsComponent: Swift.Int64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Duration", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.DurationProtocol", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-hashableProtocol/Swift.Float.json b/tests/swift-examples/a-json-swift-hashableProtocol/Swift.Float.json new file mode 100644 index 00000000..ae377c15 --- /dev/null +++ b/tests/swift-examples/a-json-swift-hashableProtocol/Swift.Float.json @@ -0,0 +1,2393 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.Float", + "type_parameters": [], + "methods": [ + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "addingProduct", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addProduct", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "squareRoot", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formSquareRoot", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "truncatingRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formTruncatingRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "negate", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "rounded", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "rounded", + "type_parameters": [], + "parameters": [ + "Swift.FloatingPointRoundingRule" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "round", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "round", + "type_parameters": [], + "parameters": [ + "Swift.FloatingPointRoundingRule" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isEqual", + "type_parameters": [], + "parameters": [ + "to: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isLess", + "type_parameters": [], + "parameters": [ + "than: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isLessThanOrEqualTo", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isTotallyOrdered", + "type_parameters": [], + "parameters": [ + "belowOrEqualTo: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "maximum", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "maximumMagnitude", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "minimum", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "minimumMagnitude", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "write", + "type_parameters": [ + "Target extends any Swift.TextOutputStream" + ], + "parameters": [ + "to: inout Target" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "entityIdentifier", + "type_parameters": [], + "parameters": [ + "for: Swift.String" + ], + "throws": false, + "return_type": "Swift.Float?", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "S extends any Swift.StringProtocol" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Source extends any Swift.BinaryFloatingPoint" + ], + "parameters": [ + "Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "Source" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "signOf: Swift.Float", + "magnitudeOf: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "sign: Swift.FloatingPointSign", + "exponent: Swift.Int", + "significand: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "Source extends any Swift.BinaryFloatingPoint" + ], + "parameters": [ + "exactly: Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "exactly: Source" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "sign: Swift.FloatingPointSign", + "exponentBitPattern: Swift.UInt", + "significandBitPattern: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "nan: Swift.UInt32", + "signaling: Swift.Bool" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "from: any Swift.Decoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "integerLiteral: Swift.Int64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "floatLiteral: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "A extends any ExpressibleByBuiltinIntegerLiter>" + ], + "parameters": [ + "integerLiteral: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": true, + "is_constructor": true, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "Swift.Substring" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "magnitude", + "type": "Swift.Float", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "sign", + "type": "Swift.FloatingPointSign", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "ulp", + "type": "Swift.Float", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significand", + "type": "Swift.Float", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "exponent", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nextUp", + "type": "Swift.Float", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nextDown", + "type": "Swift.Float", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "binade", + "type": "Swift.Float", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "pi", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "infinity", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "greatestFiniteMagnitude", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nan", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "signalingNaN", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "ulpOfOne", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leastNormalMagnitude", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leastNonzeroMagnitude", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.Float", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": true + } + }, + { + "name": "bitPattern", + "type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significandBitPattern", + "type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significandWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "exponentBitPattern", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significandBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "exponentBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "radix", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isZero", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isFinite", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isInfinite", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isNaN", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSignalingNaN", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isNormal", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSubnormal", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isCanonical", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "floatingPointClass", + "type": "Swift.FloatingPointClassification", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "debugDescription", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "hashValue", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "mlMultiArrayDataType", + "type": "CoreML.MLMultiArrayDataType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "multiArrayDataType", + "type": "MLMultiArrayDataType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "ulpOfOne", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "entityIdentifierString", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + + + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Accelerate.BNNSScalar", + "conditional": false + }, + { + "name": "Swift.BinaryFloatingPoint", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomDebugStringConvertible", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByFloatLiteral", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FloatingPoint", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "CoreML.MLShapedArrayScalar", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.SignedNumeric", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.TextOutputStreamable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_DiscreteFourierTransformable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointBiquadFilterable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointConvertable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointDiscreteFourierTransformable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointGeneratable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Exponent", + "conditional": false + }, + { + "name": "RawSignificand", + "conditional": false + }, + { + "name": "SIMDMaskScalar", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-hashableProtocol/Swift.Int.json b/tests/swift-examples/a-json-swift-hashableProtocol/Swift.Int.json new file mode 100644 index 00000000..59f28537 --- /dev/null +++ b/tests/swift-examples/a-json-swift-hashableProtocol/Swift.Int.json @@ -0,0 +1,2880 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.Int", + "type_parameters": [], + "methods": [ + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "negate", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "quotientAndRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isMultiple", + "type_parameters": [ + "A extends any Swift.FixedWidthInteger" + ], + "parameters": [ + "of: Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "subtractingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainderReportingOverflow", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividingFullWidth", + "type_parameters": [], + "parameters": [ + "(high: Swift.Int, low: Swift.Int.Swift.UInt)" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "abs", + "type_parameters": [ + "T extends any Swift.SignedNumeric" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "T", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "signum", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.Int", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.Int", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "~", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "RHS" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "RHS" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.Int", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.Int", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "entityIdentifier", + "type_parameters": [], + "parameters": [ + "for: Swift.String" + ], + "throws": false, + "return_type": "Swift.Int?", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "T extends any Swift.BinaryInteger", + "A extends any Swift.FixedWidthInteger" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": true, + "is_constructor": true, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "T extends any Swift.BinaryInteger", + "A extends any Swift.FixedWidthInteger" + ], + "parameters": [ + "exactly: T" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": true, + "is_constructor": true, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "clamping: Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "truncatingIfNeeded: T" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "T extends any Swift.BinaryFloatingPoint" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "T extends any Swift.BinaryFloatingPoint" + ], + "parameters": [ + "exactly: T" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "Swift.String" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "S extends any Swift.StringProtocol" + ], + "parameters": [ + "S", + "radix: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "littleEndian: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bigEndian: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "P extends any _Pointer" + ], + "parameters": [ + "bitPattern: P?" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.ObjectIdentifier" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.OpaquePointer?" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "from: any Swift.Decoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "from: CreateML.MLDataValue" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "A extends any ExpressibleByBuiltinIntegerLiter>" + ], + "parameters": [ + "integerLiteral: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": true, + "is_constructor": true, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "magnitude", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.Int", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": true + } + }, + { + "name": "min", + "type": "Swift.Int", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": true + } + }, + { + "name": "max", + "type": "Swift.Int", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": true + } + }, + { + "name": "isSigned", + "type": "Swift.Bool", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "byteSwapped", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "littleEndian", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bigEndian", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nonzeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leadingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "trailingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "words", + "type": "Swift.Int.Words", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "dataValue", + "type": "CreateML.MLDataValue", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "identifierValue", + "type": "CreateML.MLDataValue", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "dataValueType", + "type": "CreateML.MLDataValue.ValueType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "entityIdentifierString", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Swift.BinaryInteger", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.CodingKeyRepresentable", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FixedWidthInteger", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.MirrorPath", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.SignedInteger", + "conditional": false + }, + { + "name": "Swift.SignedNumeric", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + }, + { + "name": "SIMDMaskScalar", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-hashableProtocol/Swift.UInt.json b/tests/swift-examples/a-json-swift-hashableProtocol/Swift.UInt.json new file mode 100644 index 00000000..aa514d70 --- /dev/null +++ b/tests/swift-examples/a-json-swift-hashableProtocol/Swift.UInt.json @@ -0,0 +1,2528 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.UInt", + "type_parameters": [], + "methods": [ + { + "name": "&=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividingFullWidth", + "type_parameters": [], + "parameters": [ + "(high: Swift.UInt, low: Swift.UInt.Swift.UInt)" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainderReportingOverflow", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "signum", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "subtractingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isMultiple", + "type_parameters": [], + "parameters": [ + "of: Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "quotientAndRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "~", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "P extends any _Pointer" + ], + "parameters": [ + "bitPattern: P?" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.OpaquePointer?" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.ObjectIdentifier" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "byteSwapped", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leadingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nonzeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "trailingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "words", + "type": "Swift.UInt.Words", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "magnitude", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSigned", + "type": "Bool", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "max", + "type": "Swift.UInt", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "min", + "type": "Swift.UInt", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "hashValue", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.UInt", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bigEndian", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "littleEndian", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Swift.BinaryInteger", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FixedWidthInteger", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.UnsignedInteger", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-hashableProtocol/Swift.UInt16.json b/tests/swift-examples/a-json-swift-hashableProtocol/Swift.UInt16.json new file mode 100644 index 00000000..b7755c87 --- /dev/null +++ b/tests/swift-examples/a-json-swift-hashableProtocol/Swift.UInt16.json @@ -0,0 +1,2484 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.UInt16", + "type_parameters": [], + "methods": [ + { + "name": "&=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividingFullWidth", + "type_parameters": [], + "parameters": [ + "(high: Swift.UInt16, low: Swift.UInt16.Swift.UInt16)" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainderReportingOverflow", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "signum", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "subtractingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "~", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isMultiple", + "type_parameters": [], + "parameters": [ + "of: Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "quotientAndRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.Int16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "byteSwapped", + "type": "Swift.UInt16", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leadingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nonzeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "trailingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "words", + "type": "Swift.UInt16.Words", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "magnitude", + "type": "Swift.UInt16", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSigned", + "type": "Bool", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "max", + "type": "Swift.UInt16", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "min", + "type": "Swift.UInt16", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "zero", + "type": "Swift.UInt16", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bigEndian", + "type": "Swift.UInt16", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "littleEndian", + "type": "Swift.UInt16", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bnnsDataType", + "type": "BNNSDataType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Accelerate.BNNSScalar", + "conditional": false + }, + { + "name": "Swift.BinaryInteger", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FixedWidthInteger", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.UnsignedInteger", + "conditional": false + }, + { + "name": "Accelerate.vDSP_IntegerConvertable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-hashableProtocol/Swift.UInt32.json b/tests/swift-examples/a-json-swift-hashableProtocol/Swift.UInt32.json new file mode 100644 index 00000000..37c541ca --- /dev/null +++ b/tests/swift-examples/a-json-swift-hashableProtocol/Swift.UInt32.json @@ -0,0 +1,2494 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.UInt32", + "type_parameters": [], + "methods": [ + { + "name": "&=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividingFullWidth", + "type_parameters": [], + "parameters": [ + "(high: Swift.UInt32, low: Swift.UInt32.Swift.UInt32)" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainderReportingOverflow", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "signum", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "subtractingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "~", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isMultiple", + "type_parameters": [], + "parameters": [ + "of: Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "quotientAndRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Unicode.Scalar" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.Int32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "byteSwapped", + "type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leadingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nonzeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "trailingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "words", + "type": "Swift.UInt32.Words", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "magnitude", + "type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSigned", + "type": "Bool", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "max", + "type": "Swift.UInt32", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "min", + "type": "Swift.UInt32", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.UInt32", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bigEndian", + "type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "littleEndian", + "type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Accelerate.BNNSScalar", + "conditional": false + }, + { + "name": "Swift.BinaryInteger", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FixedWidthInteger", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.UnsignedInteger", + "conditional": false + }, + { + "name": "Accelerate.vDSP_IntegerConvertable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-hashableProtocol/Swift.UInt64.json b/tests/swift-examples/a-json-swift-hashableProtocol/Swift.UInt64.json new file mode 100644 index 00000000..931eba2a --- /dev/null +++ b/tests/swift-examples/a-json-swift-hashableProtocol/Swift.UInt64.json @@ -0,0 +1,2510 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.UInt64", + "type_parameters": [], + "methods": [ + { + "name": "&=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividingFullWidth", + "type_parameters": [], + "parameters": [ + "(high: Swift.UInt64, low: Swift.UInt64.Swift.UInt64)" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainderReportingOverflow", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "signum", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "subtractingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isMultiple", + "type_parameters": [], + "parameters": [ + "of: Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "quotientAndRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "~", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Unicode.Scalar" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.Int64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "byteSwapped", + "type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leadingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nonzeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "trailingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "words", + "type": "Swift.UInt64.Words", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "hashValue", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.UInt64", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "magnitude", + "type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSigned", + "type": "Bool", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "max", + "type": "Swift.UInt64", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "min", + "type": "Swift.UInt64", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bigEndian", + "type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "littleEndian", + "type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Accelerate.BNNSScalar", + "conditional": false + }, + { + "name": "Swift.BinaryInteger", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FixedWidthInteger", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.UnsignedInteger", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-hashableProtocol/Swift.UInt8.json b/tests/swift-examples/a-json-swift-hashableProtocol/Swift.UInt8.json new file mode 100644 index 00000000..94b7e2e6 --- /dev/null +++ b/tests/swift-examples/a-json-swift-hashableProtocol/Swift.UInt8.json @@ -0,0 +1,2504 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.UInt8", + "type_parameters": [], + "methods": [ + { + "name": "&=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividingFullWidth", + "type_parameters": [], + "parameters": [ + "(high: Swift.UInt8, low: Swift.UInt8.Swift.UInt8)" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainderReportingOverflow", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "signum", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "subtractingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "~", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "isMultiple", + "type_parameters": [], + "parameters": [ + "of: Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "quotientAndRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "ascii: Swift.Unicode.Scalar" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.Int8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "byteSwapped", + "type": "Swift.UInt8", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leadingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nonzeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "trailingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "words", + "type": "Swift.UInt8.Words", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bnnsDataType", + "type": "BNNSDataType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bigEndian", + "type": "Swift.UInt8", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "littleEndian", + "type": "Swift.UInt8", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.UInt8", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "magnitude", + "type": "Swift.UInt8", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSigned", + "type": "Bool", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "max", + "type": "Swift.UInt8", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "min", + "type": "Swift.UInt8", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Accelerate.BNNSScalar", + "conditional": false + }, + { + "name": "Swift.BinaryInteger", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FixedWidthInteger", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.UnsignedInteger", + "conditional": false + }, + { + "name": "Accelerate.vDSP_IntegerConvertable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-numericProtocol/Swift.Double.json b/tests/swift-examples/a-json-swift-numericProtocol/Swift.Double.json new file mode 100644 index 00000000..abb35894 --- /dev/null +++ b/tests/swift-examples/a-json-swift-numericProtocol/Swift.Double.json @@ -0,0 +1,2445 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.Double", + "type_parameters": [], + "methods": [ + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "addingProduct", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addProduct", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "squareRoot", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formSquareRoot", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "truncatingRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formTruncatingRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "negate", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "rounded", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "rounded", + "type_parameters": [], + "parameters": [ + "Swift.FloatingPointRoundingRule" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "round", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "round", + "type_parameters": [], + "parameters": [ + "Swift.FloatingPointRoundingRule" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isEqual", + "type_parameters": [], + "parameters": [ + "to: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isLess", + "type_parameters": [], + "parameters": [ + "than: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isLessThanOrEqualTo", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isTotallyOrdered", + "type_parameters": [], + "parameters": [ + "belowOrEqualTo: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "minimum", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "minimumMagnitude", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "maximum", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "maximumMagnitude", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "write", + "type_parameters": [ + "Target extends any Swift.TextOutputStream" + ], + "parameters": [ + "to: inout Target" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "Swift.Double", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.Double", + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "S extends any Swift.StringProtocol" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "Swift.Substring" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Source extends any Swift.BinaryFloatingPoint" + ], + "parameters": [ + "Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "sign: Swift.FloatingPointSign", + "exponent: Swift.Int", + "significand: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "signOf: Swift.Double", + "magnitudeOf: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "Source" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "Source extends any Swift.BinaryFloatingPoint" + ], + "parameters": [ + "exactly: Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "exactly: Source" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "init?", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "exactly: Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "sign: Swift.FloatingPointSign", + "exponentBitPattern: Swift.UInt", + "significandBitPattern: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "nan: Swift.UInt64", + "signaling: Swift.Bool" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "from: any Swift.Decoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "from: CreateML.MLDataValue" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "floatLiteral: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "integerLiteral: Swift.Int64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "A extends any ExpressibleByBuiltinIntegerLiter>" + ], + "parameters": [ + "integerLiteral: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": true, + "is_constructor": true, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "magnitude", + "type": "Swift.Double", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "sign", + "type": "Swift.FloatingPointSign", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "ulp", + "type": "Swift.Double", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significand", + "type": "Swift.Double", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "exponent", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nextUp", + "type": "Swift.Double", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nextDown", + "type": "Swift.Double", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "binade", + "type": "Swift.Double", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "pi", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "infinity", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "greatestFiniteMagnitude", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nan", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "signalingNaN", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "ulpOfOne", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leastNonzeroMagnitude", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leastNormalMagnitude", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.Double", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": true + } + }, + { + "name": "bitPattern", + "type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significandBitPattern", + "type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significandWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "exponentBitPattern", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significandBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "exponentBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "radix", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isZero", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isFinite", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isInfinite", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isNaN", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSignalingNaN", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isNormal", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSubnormal", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isCanonical", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "floatingPointClass", + "type": "Swift.FloatingPointClassification", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "debugDescription", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "dataValue", + "type": "CreateML.MLDataValue", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "dataValueType", + "type": "CreateML.MLDataValue.ValueType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "mlMultiArrayDataType", + "type": "CoreML.MLMultiArrayDataType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "multiArrayDataType", + "type": "MLMultiArrayDataType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "defaultResolverSpecification", + "type": "some ResolverSpecification", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "ulpOfOne", + "type": "Swift.Double", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Swift.BinaryFloatingPoint", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomDebugStringConvertible", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByFloatLiteral", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FloatingPoint", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "CoreML.MLShapedArrayScalar", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.SignedNumeric", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.TextOutputStreamable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_DiscreteFourierTransformable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointBiquadFilterable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointConvertable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointDiscreteFourierTransformable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointGeneratable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Exponent", + "conditional": false + }, + { + "name": "RawSignificand", + "conditional": false + }, + { + "name": "RawExponent", + "conditional": false + }, + { + "name": "FloatLiteralType", + "conditional": false + }, + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + }, + { + "name": "SIMDMaskScalar", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-numericProtocol/Swift.Float.json b/tests/swift-examples/a-json-swift-numericProtocol/Swift.Float.json new file mode 100644 index 00000000..ae377c15 --- /dev/null +++ b/tests/swift-examples/a-json-swift-numericProtocol/Swift.Float.json @@ -0,0 +1,2393 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.Float", + "type_parameters": [], + "methods": [ + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "addingProduct", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addProduct", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "squareRoot", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formSquareRoot", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "truncatingRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formTruncatingRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "negate", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "rounded", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "rounded", + "type_parameters": [], + "parameters": [ + "Swift.FloatingPointRoundingRule" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "round", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "round", + "type_parameters": [], + "parameters": [ + "Swift.FloatingPointRoundingRule" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isEqual", + "type_parameters": [], + "parameters": [ + "to: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isLess", + "type_parameters": [], + "parameters": [ + "than: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isLessThanOrEqualTo", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isTotallyOrdered", + "type_parameters": [], + "parameters": [ + "belowOrEqualTo: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "maximum", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "maximumMagnitude", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "minimum", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "minimumMagnitude", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "write", + "type_parameters": [ + "Target extends any Swift.TextOutputStream" + ], + "parameters": [ + "to: inout Target" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Float", + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "Swift.Float", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "entityIdentifier", + "type_parameters": [], + "parameters": [ + "for: Swift.String" + ], + "throws": false, + "return_type": "Swift.Float?", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "S extends any Swift.StringProtocol" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Source extends any Swift.BinaryFloatingPoint" + ], + "parameters": [ + "Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "Source" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "signOf: Swift.Float", + "magnitudeOf: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "sign: Swift.FloatingPointSign", + "exponent: Swift.Int", + "significand: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "Source extends any Swift.BinaryFloatingPoint" + ], + "parameters": [ + "exactly: Source" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "Source extends any Swift.BinaryInteger" + ], + "parameters": [ + "exactly: Source" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "sign: Swift.FloatingPointSign", + "exponentBitPattern: Swift.UInt", + "significandBitPattern: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "nan: Swift.UInt32", + "signaling: Swift.Bool" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "from: any Swift.Decoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "integerLiteral: Swift.Int64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "floatLiteral: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "A extends any ExpressibleByBuiltinIntegerLiter>" + ], + "parameters": [ + "integerLiteral: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": true, + "is_constructor": true, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "Swift.Substring" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "magnitude", + "type": "Swift.Float", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "sign", + "type": "Swift.FloatingPointSign", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "ulp", + "type": "Swift.Float", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significand", + "type": "Swift.Float", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "exponent", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nextUp", + "type": "Swift.Float", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nextDown", + "type": "Swift.Float", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "binade", + "type": "Swift.Float", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "pi", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "infinity", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "greatestFiniteMagnitude", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nan", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "signalingNaN", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "ulpOfOne", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leastNormalMagnitude", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leastNonzeroMagnitude", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.Float", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": true + } + }, + { + "name": "bitPattern", + "type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significandBitPattern", + "type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significandWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "exponentBitPattern", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "significandBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "exponentBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "radix", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isZero", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isFinite", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isInfinite", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isNaN", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSignalingNaN", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isNormal", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSubnormal", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isCanonical", + "type": "Swift.Bool", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "floatingPointClass", + "type": "Swift.FloatingPointClassification", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "debugDescription", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "hashValue", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "mlMultiArrayDataType", + "type": "CoreML.MLMultiArrayDataType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "multiArrayDataType", + "type": "MLMultiArrayDataType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "ulpOfOne", + "type": "Swift.Float", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "entityIdentifierString", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + + + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Accelerate.BNNSScalar", + "conditional": false + }, + { + "name": "Swift.BinaryFloatingPoint", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomDebugStringConvertible", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByFloatLiteral", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FloatingPoint", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "CoreML.MLShapedArrayScalar", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.SignedNumeric", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.TextOutputStreamable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_DiscreteFourierTransformable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointBiquadFilterable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointConvertable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointDiscreteFourierTransformable", + "conditional": false + }, + { + "name": "Accelerate.vDSP_FloatingPointGeneratable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Exponent", + "conditional": false + }, + { + "name": "RawSignificand", + "conditional": false + }, + { + "name": "SIMDMaskScalar", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-numericProtocol/Swift.Int.json b/tests/swift-examples/a-json-swift-numericProtocol/Swift.Int.json new file mode 100644 index 00000000..35e5b930 --- /dev/null +++ b/tests/swift-examples/a-json-swift-numericProtocol/Swift.Int.json @@ -0,0 +1,2880 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.Int", + "type_parameters": [], + "methods": [ + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "negate", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": true, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "quotientAndRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isMultiple", + "type_parameters": [ + "A extends any Swift.FixedWidthInteg>" + ], + "parameters": [ + "of: Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": true, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "subtractingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainderReportingOverflow", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividingFullWidth", + "type_parameters": [], + "parameters": [ + "(high: Swift.Int, low: Swift.Int.Swift.UInt)" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "abs", + "type_parameters": [ + "T extends any Swift.SignedNumeric" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "T", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "signum", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.Int", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.Int", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "~", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "RHS" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.Int", + "RHS" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.Int", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.Int", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "entityIdentifier", + "type_parameters": [], + "parameters": [ + "for: Swift.String" + ], + "throws": false, + "return_type": "Swift.Int?", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.Int", + "Swift.Int" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "T extends any Swift.BinaryInteger", + "A extends any Swift.FixedWidthInteg>" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": true, + "is_constructor": true, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "T extends any Swift.BinaryInteger", + "A extends any Swift.FixedWidthInteg>" + ], + "parameters": [ + "exactly: T" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": true, + "is_constructor": true, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "clamping: Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "T extends any Swift.BinaryInteger" + ], + "parameters": [ + "truncatingIfNeeded: T" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "T extends any Swift.BinaryFloatingPoint" + ], + "parameters": [ + "T" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "T extends any Swift.BinaryFloatingPoint" + ], + "parameters": [ + "exactly: T" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "Swift.String" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [ + "S extends any Swift.StringProtocol" + ], + "parameters": [ + "S", + "radix: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "littleEndian: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bigEndian: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "P extends any _Pointer" + ], + "parameters": [ + "bitPattern: P?" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.ObjectIdentifier" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.OpaquePointer?" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "from: any Swift.Decoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "from: CreateML.MLDataValue" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "A extends any ExpressibleByBuiltinIntegerLiter>" + ], + "parameters": [ + "integerLiteral: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": true, + "is_static": true, + "is_constructor": true, + "access_mod": "public", + "receiver": "A", + "other_metadata": { + "is_mutating": false, + "available_when": true, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "magnitude", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.Int", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": true + } + }, + { + "name": "min", + "type": "Swift.Int", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": true + } + }, + { + "name": "max", + "type": "Swift.Int", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": true + } + }, + { + "name": "isSigned", + "type": "Swift.Bool", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "byteSwapped", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "littleEndian", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bigEndian", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nonzeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leadingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "trailingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "words", + "type": "Swift.Int.Words", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "dataValue", + "type": "CreateML.MLDataValue", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "identifierValue", + "type": "CreateML.MLDataValue", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "dataValueType", + "type": "CreateML.MLDataValue.ValueType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "entityIdentifierString", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Swift.BinaryInteger", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.CodingKeyRepresentable", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FixedWidthInteger", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.MirrorPath", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.SignedInteger", + "conditional": false + }, + { + "name": "Swift.SignedNumeric", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + }, + { + "name": "SIMDMaskScalar", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-numericProtocol/Swift.UInt.json b/tests/swift-examples/a-json-swift-numericProtocol/Swift.UInt.json new file mode 100644 index 00000000..aa514d70 --- /dev/null +++ b/tests/swift-examples/a-json-swift-numericProtocol/Swift.UInt.json @@ -0,0 +1,2528 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.UInt", + "type_parameters": [], + "methods": [ + { + "name": "&=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividingFullWidth", + "type_parameters": [], + "parameters": [ + "(high: Swift.UInt, low: Swift.UInt.Swift.UInt)" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainderReportingOverflow", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "signum", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "subtractingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isMultiple", + "type_parameters": [], + "parameters": [ + "of: Swift.UInt" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "quotientAndRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt", + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "~", + "type_parameters": [], + "parameters": [ + "Swift.UInt" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [ + "P extends any _Pointer" + ], + "parameters": [ + "bitPattern: P?" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.OpaquePointer?" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.Int" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.ObjectIdentifier" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "byteSwapped", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leadingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nonzeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "trailingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "words", + "type": "Swift.UInt.Words", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "magnitude", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSigned", + "type": "Bool", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "max", + "type": "Swift.UInt", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "min", + "type": "Swift.UInt", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "hashValue", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.UInt", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bigEndian", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "littleEndian", + "type": "Swift.UInt", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Swift.BinaryInteger", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FixedWidthInteger", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.UnsignedInteger", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-numericProtocol/Swift.UInt16.json b/tests/swift-examples/a-json-swift-numericProtocol/Swift.UInt16.json new file mode 100644 index 00000000..b7755c87 --- /dev/null +++ b/tests/swift-examples/a-json-swift-numericProtocol/Swift.UInt16.json @@ -0,0 +1,2484 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.UInt16", + "type_parameters": [], + "methods": [ + { + "name": "&=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividingFullWidth", + "type_parameters": [], + "parameters": [ + "(high: Swift.UInt16, low: Swift.UInt16.Swift.UInt16)" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainderReportingOverflow", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "signum", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "subtractingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "~", + "type_parameters": [], + "parameters": [ + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt16", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt16", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "Swift.UInt16", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isMultiple", + "type_parameters": [], + "parameters": [ + "of: Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "quotientAndRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt16", + "Swift.UInt16" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.Int16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "byteSwapped", + "type": "Swift.UInt16", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leadingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nonzeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "trailingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "words", + "type": "Swift.UInt16.Words", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "magnitude", + "type": "Swift.UInt16", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSigned", + "type": "Bool", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "max", + "type": "Swift.UInt16", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "min", + "type": "Swift.UInt16", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "zero", + "type": "Swift.UInt16", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bigEndian", + "type": "Swift.UInt16", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "littleEndian", + "type": "Swift.UInt16", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bnnsDataType", + "type": "BNNSDataType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Accelerate.BNNSScalar", + "conditional": false + }, + { + "name": "Swift.BinaryInteger", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FixedWidthInteger", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.UnsignedInteger", + "conditional": false + }, + { + "name": "Accelerate.vDSP_IntegerConvertable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-numericProtocol/Swift.UInt32.json b/tests/swift-examples/a-json-swift-numericProtocol/Swift.UInt32.json new file mode 100644 index 00000000..37c541ca --- /dev/null +++ b/tests/swift-examples/a-json-swift-numericProtocol/Swift.UInt32.json @@ -0,0 +1,2494 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.UInt32", + "type_parameters": [], + "methods": [ + { + "name": "&=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividingFullWidth", + "type_parameters": [], + "parameters": [ + "(high: Swift.UInt32, low: Swift.UInt32.Swift.UInt32)" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainderReportingOverflow", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "signum", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "subtractingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "~", + "type_parameters": [], + "parameters": [ + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt32", + "Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt32", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt32", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isMultiple", + "type_parameters": [], + "parameters": [ + "of: Swift.UInt32" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "quotientAndRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Unicode.Scalar" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.Int32" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "byteSwapped", + "type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leadingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nonzeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "trailingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "words", + "type": "Swift.UInt32.Words", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "magnitude", + "type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSigned", + "type": "Bool", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "max", + "type": "Swift.UInt32", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "min", + "type": "Swift.UInt32", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.UInt32", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bigEndian", + "type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "littleEndian", + "type": "Swift.UInt32", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Accelerate.BNNSScalar", + "conditional": false + }, + { + "name": "Swift.BinaryInteger", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FixedWidthInteger", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.UnsignedInteger", + "conditional": false + }, + { + "name": "Accelerate.vDSP_IntegerConvertable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-numericProtocol/Swift.UInt64.json b/tests/swift-examples/a-json-swift-numericProtocol/Swift.UInt64.json new file mode 100644 index 00000000..931eba2a --- /dev/null +++ b/tests/swift-examples/a-json-swift-numericProtocol/Swift.UInt64.json @@ -0,0 +1,2510 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.UInt64", + "type_parameters": [], + "methods": [ + { + "name": "&=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividingFullWidth", + "type_parameters": [], + "parameters": [ + "(high: Swift.UInt64, low: Swift.UInt64.Swift.UInt64)" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainderReportingOverflow", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "signum", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "subtractingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "isMultiple", + "type_parameters": [], + "parameters": [ + "of: Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "quotientAndRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt64", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "~", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt64", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt64", + "Swift.UInt64" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Unicode.Scalar" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.Int64" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "byteSwapped", + "type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leadingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nonzeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "trailingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "words", + "type": "Swift.UInt64.Words", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "hashValue", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.UInt64", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "magnitude", + "type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSigned", + "type": "Bool", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "max", + "type": "Swift.UInt64", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "min", + "type": "Swift.UInt64", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bigEndian", + "type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "littleEndian", + "type": "Swift.UInt64", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Accelerate.BNNSScalar", + "conditional": false + }, + { + "name": "Swift.BinaryInteger", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FixedWidthInteger", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.UnsignedInteger", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/swift-examples/a-json-swift-numericProtocol/Swift.UInt8.json b/tests/swift-examples/a-json-swift-numericProtocol/Swift.UInt8.json new file mode 100644 index 00000000..94b7e2e6 --- /dev/null +++ b/tests/swift-examples/a-json-swift-numericProtocol/Swift.UInt8.json @@ -0,0 +1,2504 @@ +{ + "frozen": true, + "data_type": "struct", + "name": "Swift.UInt8", + "type_parameters": [], + "methods": [ + { + "name": "&=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "addingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "dividingFullWidth", + "type_parameters": [], + "parameters": [ + "(high: Swift.UInt8, low: Swift.UInt8.Swift.UInt8)" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedFullWidth", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "multipliedReportingOverflow", + "type_parameters": [], + "parameters": [ + "by: Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "remainderReportingOverflow", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "signum", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "subtractingReportingOverflow", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "encode", + "type_parameters": [], + "parameters": [ + "to: any Swift.Encoder" + ], + "throws": true, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.PartialRangeFrom", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.PartialRangeThrough", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "...", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.ClosedRange", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.PartialRangeUpTo", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "..<", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Range", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": true + } + }, + { + "name": "<", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&*=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&>>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "~", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.Range" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [], + "parameters": [ + "in: Swift.ClosedRange" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.Range", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "random", + "type_parameters": [ + "T extends any Swift.RandomNumberGenerator" + ], + "parameters": [ + "in: Swift.ClosedRange", + "using: inout T" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "hash", + "type_parameters": [], + "parameters": [ + "into: inout Swift.Hasher" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "!=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "&", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "*", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "/", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "==", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "^", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "|", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "%", + "type_parameters": [], + "parameters": [ + "Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<", + "type_parameters": [ + "RHS extends any Swift.BinaryInteger" + ], + "parameters": [ + "Swift.UInt8", + "RHS" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "<<=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": ">>=", + "type_parameters": [ + "Other extends any Swift.BinaryInteger" + ], + "parameters": [ + "inout Swift.UInt8", + "Other" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "advanced", + "type_parameters": [], + "parameters": [ + "by: Swift.Int" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "distance", + "type_parameters": [], + "parameters": [ + "to: Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Int", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [], + "parameters": [], + "throws": false, + "return_type": "Swift.String", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "formatted", + "type_parameters": [ + "S extends any Foundation.FormatStyle" + ], + "parameters": [ + "S" + ], + "throws": false, + "return_type": "S.FormatOutput", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": true, + "unsupported": false + } + }, + { + "name": "isMultiple", + "type_parameters": [], + "parameters": [ + "of: Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.Bool", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "quotientAndRemainder", + "type_parameters": [], + "parameters": [ + "dividingBy: Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+", + "type_parameters": [], + "parameters": [ + "Swift.UInt8" + ], + "throws": false, + "return_type": "Swift.UInt8", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "+=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "-=", + "type_parameters": [], + "parameters": [ + "inout Swift.UInt8", + "Swift.UInt8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": true, + "is_constructor": false, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "CoreFoundation.CGFloat" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "ascii: Swift.Unicode.Scalar" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "bitPattern: Swift.Int8" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Double" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float16" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init?", + "type_parameters": [], + "parameters": [ + "exactly: Swift.Float80" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + }, + { + "name": "init", + "type_parameters": [], + "parameters": [ + "truncating: Foundation.NSNumber" + ], + "throws": false, + "return_type": "void", + "conditional": false, + "is_static": false, + "is_constructor": true, + "access_mod": "public", + "receiver": "", + "other_metadata": { + "is_mutating": false, + "available_when": false, + "type_equality": false, + "unsupported": false + } + } + ], + "fields": [ + { + "name": "byteSwapped", + "type": "Swift.UInt8", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "leadingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "nonzeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "trailingZeroBitCount", + "type": "Swift.Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "words", + "type": "Swift.UInt8.Words", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Swift.Int", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bnnsDataType", + "type": "BNNSDataType", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bigEndian", + "type": "Swift.UInt8", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "bitWidth", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "littleEndian", + "type": "Swift.UInt8", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "hashValue", + "type": "Int", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + + { + "name": "description", + "type": "Swift.String", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "zero", + "type": "Swift.UInt8", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "magnitude", + "type": "Swift.UInt8", + "conditional": false, + "is_static": false, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "isSigned", + "type": "Bool", + "conditional": false, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "max", + "type": "Swift.UInt8", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + }, + { + "name": "min", + "type": "Swift.UInt8", + "conditional": true, + "is_static": true, + "access_mod": "public", + "other_metadata": { + "available_when": false + } + } + ], + "implements": [ + { + "name": "Swift.AdditiveArithmetic", + "conditional": false + }, + { + "name": "Accelerate.BNNSScalar", + "conditional": false + }, + { + "name": "Swift.BinaryInteger", + "conditional": false + }, + { + "name": "Swift.CVarArg", + "conditional": false + }, + { + "name": "Swift.Comparable", + "conditional": false + }, + { + "name": "Swift.CustomReflectable", + "conditional": false + }, + { + "name": "Swift.CustomStringConvertible", + "conditional": false + }, + { + "name": "Swift.Decodable", + "conditional": false + }, + { + "name": "Swift.Encodable", + "conditional": false + }, + { + "name": "Swift.Equatable", + "conditional": false + }, + { + "name": "Swift.ExpressibleByIntegerLiteral", + "conditional": false + }, + { + "name": "Swift.FixedWidthInteger", + "conditional": false + }, + { + "name": "Swift.Hashable", + "conditional": false + }, + { + "name": "Swift.LosslessStringConvertible", + "conditional": false + }, + { + "name": "Swift.Numeric", + "conditional": false + }, + { + "name": "Swift.SIMDScalar", + "conditional": false + }, + { + "name": "Swift.Strideable", + "conditional": false + }, + { + "name": "Swift.UnsignedInteger", + "conditional": false + }, + { + "name": "Accelerate.vDSP_IntegerConvertable", + "conditional": false + }, + { + "name": "Swift.Sendable", + "conditional": true + } + ], + "typealiases": [ + { + "name": "IntegerLiteralType", + "conditional": false + }, + { + "name": "Magnitude", + "conditional": false + }, + { + "name": "Stride", + "conditional": false + } + ], + "inherits": [], + "language": "swift", + "all_protocols": [] +} \ No newline at end of file diff --git a/tests/test_parse_type.py b/tests/test_parse_type.py index ac60d80e..0efdcfc8 100644 --- a/tests/test_parse_type.py +++ b/tests/test_parse_type.py @@ -1,7 +1,7 @@ from src.ir import (types as tp, java_types as jt, kotlin_types as kt, scala_types as sc) from src.generators.api.type_parsers import (JavaTypeParser, KotlinTypeParser, - ScalaTypeParser) + ScalaTypeParser,SwiftTypeParser) def test_primitives(): @@ -628,3 +628,15 @@ def test_scala_tuple_types(): sc.String, sc.FunctionType(1).new([sc.Integer, sc.Integer]) ]) + +def test_swift_types(): + b = SwiftTypeParser("swift") + assert b.parse_type("Swift.Array") == tp.TypeConstructor("Swift.Array", + [tp.TypeParameter("Swift.Array.T1")]).new([tp.TypeParameter("Element")]) + + + + assert b.parse_type("Swift.SomeClass") == tp.TypeConstructor("Swift.SomeClass",[tp.TypeParameter("Swift.SomeClass.T1")]).new([tp.TypeParameter("C",bound=tp.SimpleClassifier("Swift.Collection"))]) + + + \ No newline at end of file