Once Delphi.Forms.Visitor (#41) ships, migrate NormalizeForm in
Delphi.Forms.Normalize to use the visitor for traversal instead of
its ad-hoc recursive NormalizeObject procedure.
The visitor walks the tree; the normalization logic just checks each
object's properties and removes matching ones. This eliminates the
custom recursion through children and collection items.
Scope
Acceptance criteria
Once
Delphi.Forms.Visitor(#41) ships, migrateNormalizeForminDelphi.Forms.Normalizeto use the visitor for traversal instead ofits ad-hoc recursive
NormalizeObjectprocedure.The visitor walks the tree; the normalization logic just checks each
object's properties and removes matching ones. This eliminates the
custom recursion through children and collection items.
Scope
TNormalizeVisitorthat removes properties per rulesin
VisitObjectNormalizeObjectrecursion withWalkForm(Form, Visitor)NormalizeFormpublic API unchanged -- still takesTFormFileandTFormNormalizeRulesAcceptance criteria
Delphi.Forms.Normalize