Commit Graph

6 Commits (cycles-detection-with-context)

Author SHA1 Message Date
Alexandre Hajjar d705e7e047 🚧 WIP - Building the cycles graph by taking into account parent rule
This contextualization will allow to have a (more complex) graph that
will contain the information of the parent rule of the current rule.
This will allow calling `getApplicableReplacedBy` and thus remove the
flattening logic, which was imperfect.

On the other hand, this needs to make recursive calls to
`ruleDepsOfRule` in case of a reference node, and thus make the graph
much fatter.

Approx TODO (see `ruleDependencies.ts`):

- [ ] refactor to propagate the `parentRuleNode` in the rule
      dependencies
- [ ] build recursive calls into `ruleDepsOfReference`
2020-10-01 12:15:43 +02:00
Alexandre Hajjar bdef762278 Cycles: test against multi-dependencies 2020-09-25 00:41:49 +02:00
Alexandre Hajjar cbc3e74ea7 Cycles: flatten-o-tron fixes and tests 2020-09-24 23:05:08 +02:00
Alexandre Hajjar b5acf267bf Cycles: remove remplace one-level loops 2020-09-24 00:27:43 +02:00
Alexandre Hajjar 394d8e9503 Cycles: refactor for readability 2020-09-22 21:49:14 +02:00
Alexandre Hajjar e847d3ad17 Cycles: unit tests 2020-09-22 21:03:08 +02:00