[YANGTOOLS-1112] Separate out ModelProcessingPhase.SOURCE_PRE_LINKAGE phase handling Created: 12/Jun/20  Updated: 28/Oct/20

Status: Confirmed
Project: yangtools
Component/s: parser
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Medium
Reporter: Robert Varga Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
split from YANGTOOLS-1093 yang-model-validator tool crashes wit... Resolved
Epic Link: Parser Performance

 Description   

BuildGlobalContext.completePhaseActions() contains special handling of ModelProcessingPhase.PRE_LINKAGE, which interacts with library sources.

Since this is the first phase to execute and it is special in that it modifies required sources, we should have separated out handling for it – i.e. refactor executePhases() to explicitly handle it before going through the normal phases.

This specialization is needed to eliminate loadPhaseStatements() loading statements into all libSources – even those which end up being unreferenced.


Generated at Wed Feb 07 20:55:13 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.