forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce a FromfileExpander struct (pantsbuild#20811)
As with pantsbuild#20807, this is another preliminary change to support fromfile paths being relative to the buildroot. This change introduces a FromfileExpander struct, and moves the expansion logic from free functions to struct methods. The free functions are then reimplemented as calls into these methods, to avoid perturbing calling code. A followup change will plumb instances of this struct wherever needed, and remove the free functions. Another followup change will introduce the buildroot context to this struct, to finally achieve the underlying functionality change. This change is just a refactoring, to make the subsequent changes easier to grok.
- Loading branch information
Showing
1 changed file
with
88 additions
and
61 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