@@ -7810,18 +7810,18 @@ def parse_type_string(self, text: str, import_dependencies: bool = True) -> Tupl
78107810 finally :
78117811 core .BNFreeQualifiedNameAndType (result )
78127812
7813- def parse_types_from_string (self , text : str , options : Optional [List [str ]] = None , include_dirs : Optional [List [str ]] = None , import_dependencies : bool = True ) -> '_types.TypeParserResult ' :
7813+ def parse_types_from_string (self , text : str , options : Optional [List [str ]] = None , include_dirs : Optional [List [str ]] = None , import_dependencies : bool = True ) -> '_types.BasicTypeParserResult ' :
78147814 """
7815- ``parse_types_from_string`` parses string containing C into a :py:class:`TypeParserResult ` objects. This API
7815+ ``parse_types_from_string`` parses string containing C into a :py:class:`BasicTypeParserResult ` objects. This API
78167816 unlike the :py:func:`~binaryninja.platform.Platform.parse_types_from_source` allows the reference of types already defined
78177817 in the BinaryView.
78187818
78197819 :param str text: C source code string of types, variables, and function types, to create
78207820 :param options: Optional list of string options to be passed into the type parser
78217821 :param include_dirs: Optional list of header search directories
78227822 :param import_dependencies: If Type Library types should be imported during parsing
7823- :return: :py:class:`~binaryninja.typeparser.TypeParserResult ` (a SyntaxError is thrown on parse error)
7824- :rtype: TypeParserResult
7823+ :return: :py:class:`~binaryninja.typeparser.BasicTypeParserResult ` (a SyntaxError is thrown on parse error)
7824+ :rtype: BasicTypeParserResult
78257825 :Example:
78267826
78277827 >>> bv.parse_types_from_string('int foo;\\ nint bar(int x);\\ nstruct bas{int x,y;};\\ n')
@@ -7876,7 +7876,7 @@ def parse_types_from_string(self, text: str, options: Optional[List[str]] = None
78767876 functions [name ] = _types .Type .create (
78777877 core .BNNewTypeReference (parse .functions [i ].type ), platform = self .platform
78787878 )
7879- return _types .TypeParserResult (type_dict , variables , functions )
7879+ return _types .BasicTypeParserResult (type_dict , variables , functions )
78807880 finally :
78817881 core .BNFreeTypeParserResult (parse )
78827882
0 commit comments