Coverage for src / renaissance / syntax_tree / __init__.py: 100%

13 statements  

« prev     ^ index     » next       coverage.py v7.13.4, created at 2026-09-09 14:04 +0000

1# __init__.py 

2from ..utils.text_utils import TextUtils 

3from .ast_factory import ASTFactory 

4from .ast_finder import ASTFinder 

5from .ast_node import ASTNode, ASTReference, VisitorResult 

6from .ast_processor import ASTProcessor 

7from .ast_refactor_actions import ASTRefactorActions 

8from .ast_rewriter import ASTRewriter 

9from .ast_shower import ASTShower 

10from .batch_ast_processor import ( 

11 AST_FACTORY_AND_ATU, 

12 Action, 

13 BatchASTProcessor, 

14 IterableProvider, 

15) 

16from .match_finder import MatchFinder, PatternMatch 

17from .recipe_ast_processor import ( 

18 RecipeASTProcessor, 

19 after_step, 

20 final_action, 

21 recipe_step, 

22) 

23 

24# isort: split 

25# This import must come after the ones above: renaissance.integrations.clang (imported via 

26# cpp_utils) imports back from renaissance.syntax_tree (ASTFinder, ASTNode, 

27# ASTReference), so those names must already be bound in this module's namespace 

28# before cpp_utils is loaded, or the circular import fails. 

29from renaissance.integrations.clang.cpp_utils import CPPUtils 

30 

31__all__ = [ 

32 "AST_FACTORY_AND_ATU", 

33 "ASTFactory", 

34 "ASTFinder", 

35 "ASTNode", 

36 "ASTProcessor", 

37 "ASTRefactorActions", 

38 "ASTReference", 

39 "ASTRewriter", 

40 "ASTShower", 

41 "Action", 

42 "BatchASTProcessor", 

43 "CPPUtils", 

44 "IterableProvider", 

45 "MatchFinder", 

46 "PatternMatch", 

47 "RecipeASTProcessor", 

48 "TextUtils", 

49 "VisitorResult", 

50 "after_step", 

51 "final_action", 

52 "recipe_step", 

53]