mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Don't include private compound objects in the snapshot (#56028)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/56028 Changelog: [Internal] Updates the snapshot generator to ignore compound objects with visibility set to `private`. Reviewed By: cortinico Differential Revision: D95913606 fbshipit-source-id: 3c5b2e0bf46e16627c3f6bdf6cd700a862f56698
This commit is contained in:
1 parent
a5daece0b3
commit
f1ac82ca93
5 files changed
+51
No files matched your search
@@ -48,6 +48,9 @@ def build_snapshot(xml_dir: str) -> Snapshot:
|
||||
doxygen_object = compound.parse(detail_file, silence=True)
|
||||
|
||||
for compound_object in doxygen_object.compounddef:
|
||||
if compound_object.prot == "private":
|
||||
continue
|
||||
|
||||
# Check if this is an Objective-C interface by looking at the compound id
|
||||
# Doxygen reports ObjC interfaces as kind="class" but with id starting with "interface"
|
||||
is_objc_interface = (
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
class test::Clss {
|
||||
public void hello();
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* 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 {
|
||||
|
||||
class Clss {
|
||||
enum class PrivateEnum {
|
||||
A,
|
||||
};
|
||||
|
||||
public:
|
||||
void hello();
|
||||
};
|
||||
|
||||
} // namespace test
|
||||
@@ -0,0 +1,3 @@
|
||||
class test::Clss {
|
||||
public void hello();
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* 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 {
|
||||
|
||||
class Clss {
|
||||
struct PrivateStruct {
|
||||
int a;
|
||||
};
|
||||
|
||||
public:
|
||||
void hello();
|
||||
};
|
||||
|
||||
} // namespace test
|
||||
Reference in new issue
Block a user