Project

General

Profile

Task #102103

Updated by Christian Kuhn about 1 year ago

Similar to #102102  

 The "condition" include object tree structure should be improved: A "body" include should be added as child of the condition that represents the executed body when the condition matches. The condition object itself should just contain the condition snipped. Also, the body include should then have the according body line objects set, those are currently not added at all and are only attached to the parent include, which makes everything harder than it should be, especially in IncludeTreeSyntaxScannerVisitor, and in BE module source rendering. 

 This change should probably be done before #102102 to simplify the needed IncludeTreeSyntaxScannerVisitor refactoring. 

 Sidenote: We may want to change [global] and [end] to single objects, too. I think we fiddled in this area once already, but still, it might be good to reconsider again. Having an own object for this would probably simplify the ast builder, may reduce some headaches with source rendering, and would simplify a possible detection of "double" [globals] as well, which could be implemented in IncludeTreeSyntaxScannerVisitor.

Back