Skip to content

W-18895431 test: improve FieldModifierValidator test for virtual modifiers #85

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

mshanemc
Copy link
Contributor

@mshanemc mshanemc commented Jul 1, 2025

requires apex-dev-tools/apex-parser#72 and publish of that to a package we can consume (v4)

this PR adds a test for a virtual inner class that is being treated as a field (and therefore validation were producing false positives) using the current compiler @W-18895431@

- Replace empty test with meaningful validation for inner class fields
- Add clarifying comments about virtual modifier scope (classes vs fields)
- Document that virtual inner classes are handled by grammar/ClassModifierValidator
- Ensure field validation rules apply consistently to inner class fields

Related to virtual classes parsing fix in apex-parser grammar
@mshanemc mshanemc requested a review from a team as a code owner July 1, 2025 14:45
@mshanemc mshanemc requested a review from gimijose July 1, 2025 14:45
@peternhale peternhale closed this Jul 14, 2025
@peternhale peternhale deleted the sm/virtual-classes branch July 14, 2025 14:39
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.

2 participants