Move input_filters inside the parser package (#56054)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56054

Changelog: [Internal]

Moves `input_filers` inside the `parser` package. Imports outside of the package were causing errors when running the snapshot generator in OSS.

Reviewed By: cipolleschi

Differential Revision: D96109755

fbshipit-source-id: c29d70c895057fd51a92c1a073b331d27c0b289b
This commit is contained in:
Jakub Piasecki
2026-03-11 23:58:46 -07:00
committed by meta-codesync[bot]
parent 4e1a8777ba
commit 150377caf0
10 changed files with 11 additions and 6 deletions
+1
View File
@@ -229,6 +229,7 @@ def main():
get_react_native_dir(),
"scripts",
"cxx-api",
"parser",
"input_filters",
"main.py",
)
+1 -1
View File
@@ -17,7 +17,7 @@ import re
from doxmlparser import compound
from ..input_filters.handle_objc_interface_generics import decode_objc_generics
from .input_filters.handle_objc_interface_generics import decode_objc_generics
from .member import (
ConceptMember,
EnumMember,
@@ -0,0 +1,4 @@
# 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.
+4 -4
View File
@@ -7,13 +7,13 @@ from __future__ import annotations
import unittest
from ..input_filters.handle_objc_interface_generics import (
from ..parser.input_filters.handle_objc_interface_generics import (
decode_objc_generics,
encode_objc_interface_generics,
)
from ..input_filters.strip_block_comments import strip_block_comments
from ..input_filters.strip_deprecated_msg import strip_deprecated_msg
from ..input_filters.strip_ns_unavailable import strip_ns_unavailable
from ..parser.input_filters.strip_block_comments import strip_block_comments
from ..parser.input_filters.strip_deprecated_msg import strip_deprecated_msg
from ..parser.input_filters.strip_ns_unavailable import strip_ns_unavailable
class TestDoxygenStripComments(unittest.TestCase):
+1 -1
View File
@@ -106,7 +106,7 @@ def _make_case_test(case_dir: Traversable, tests_root: Traversable):
# Find the filter script in the package resources
pkg_root = ir.files(__package__ if __package__ else "__main__")
filter_script = pkg_root.parent / "input_filters" / "main.py"
filter_script = pkg_root.parent / "parser" / "input_filters" / "main.py"
# Get real filesystem path for filter script if it exists
# IMPORTANT: Keep the context manager active while Doxygen runs,