-
Notifications
You must be signed in to change notification settings - Fork 414
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Factor out targets into a separate module (#5048)
A refactoring in preparation of #5025. * Create a new module [Targets] for representing rule targets. For now, it only represents file targets but the interface is designed to extend the module to support directory targets too. For example, various function arguments are called [~file] instead of more usual [~f] because directory targets will require a new argument [~dir]. * Rename [Dune_rules.Targets] to [Dune_rules.Targets_spec] to avoid confusion. The only slight change of behaviour is around pretty printing of targets in an error message in [rule.ml]: it used to simply turn paths into a string but the new [Targets.pp] uses [Dpath.describe_target] as in other places where we pretty print targets. Signed-off-by: Andrey Mokhov <[email protected]>
- Loading branch information
1 parent
a0e9a3a
commit d178570
Showing
43 changed files
with
281 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.