-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganise variable processing (part 1)
Processing variables involves a lot of boilerplate code with minor variations. This decentralizes variable processing, decreasing code maintainability and readability. Let's embark on a two stage refactor to improve variable processing. In this first refactor, we create the variablePreprocessor abstraction, and completely migrate the use of userDefinedVariablesMap for site variables to variablePreprocessor, reducing boilerplate code relating to site variables. Additionally, we move all page variable processing related methods to variablePreprocessor from Parser, abstracting such methods into smaller units of functionality where possible, and enhancing in code documentation. In the second part, we will similarly refactor page variable processing methods to reduce more boilerplate, increasing code maintainability.
- Loading branch information
Showing
7 changed files
with
557 additions
and
337 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
Oops, something went wrong.