mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Handle member array types in the snapshot (#56206)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/56206 Changelog: [Internal] Correctly handles array types in member definitions in the API snapshot. Reviewed By: cipolleschi Differential Revision: D97923375 fbshipit-source-id: b8b9ca07e819bfaa7cbaf7ad6506fd32a9719a9d
This commit is contained in:
1 parent
c118fa0915
commit
33158cb18d
3 files changed
+17
No files matched your search
@@ -111,6 +111,8 @@ class VariableMember(Member):
|
||||
result += f"{qualified_type} (*{name})({formatted_args})"
|
||||
else:
|
||||
result += f"{format_parsed_type(self._parsed_type)} {name}"
|
||||
if self.argstring:
|
||||
result += self.argstring
|
||||
|
||||
if STORE_INITIALIZERS_IN_SNAPSHOT and self.value is not None:
|
||||
if self.is_brace_initializer:
|
||||
|
||||
Reference in new issue
Block a user