-
Notifications
You must be signed in to change notification settings - Fork 2
Migrate EnumComponentReferences to use visitor pattern #45
Open
Description
Once both Delphi.Forms.Visitor (#41) and component reference detection
(#40) ship, migrate EnumComponentReferences in Delphi.Forms.References
to use the visitor for traversal.
Reference detection is a clean visitor fit: VisitProperty checks each
fvIdentifier value against the component name index and collects matches.
The component name index is built in a first pass (or in VisitObject).
Scope
- Implement a
TReferenceVisitorthat builds a component name index
inVisitObjectand detects references inVisitProperty - Replace ad-hoc recursion in
EnumComponentReferenceswith
WalkForm(Form, Visitor) - Public API unchanged
Acceptance criteria
- All reference detection tests pass with identical output
- No ad-hoc recursion remains in
Delphi.Forms.References - Public API unchanged (backward compatible)
Metadata
Metadata
Assignees
Type
Fields
Give feedbackNo fields configured for issues without a type.