Skip to content

Fix parsing errors around attributes on visibility sections - #467

Merged
cirras merged 1 commit into
integrated-application-development:masterfrom
Bazooper-blip:fix/461-visibility-section-attributes
Sep 22, 2026
Merged

cirras merged 1 commit into
integrated-application-development:masterfrom
Bazooper-blip:fix/461-visibility-section-attributes

Conversation

@Bazooper-blip

Copy link
Copy Markdown
Contributor

This PR fixes parsing errors on attributes that precede visibility specifiers or var sections in class bodies.

These attribute lists are parsed as standalone items and their names are resolved, but they are not yet associated with the next declared member (per @fourls's findings in the issue). I've left that out of scope here.

I don't have access to a Delphi 13 compiler at the moment, so the test fixture is limited to the forms confirmed in the issue thread.

Fixes #461.

@Bazooper-blip
Bazooper-blip force-pushed the fix/461-visibility-section-attributes branch from fae84a2 to 857c482 Compare September 21, 2026 19:09
@cirras
cirras force-pushed the fix/461-visibility-section-attributes branch from 857c482 to 866b330 Compare September 22, 2026 00:03
@cirras
cirras self-requested a review September 22, 2026 00:23

@cirras cirras left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks!

@cirras
cirras merged commit b551f6e into integrated-application-development:master Sep 22, 2026
2 checks passed
@Bazooper-blip
Bazooper-blip deleted the fix/461-visibility-section-attributes branch September 24, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Attributes on visibility sections cause parsing failures

2 participants