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:
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
const char test::ViewComponentName[];
|
||||
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace test {
|
||||
|
||||
const char ViewComponentName[] = "View";
|
||||
|
||||
} // namespace test
|
||||
Reference in new issue
Block a user