Skip to content

Add analysis for unresolved class/object properties; missing modifier 'local' #82

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

Merged
merged 1 commit into from
Apr 15, 2025

Conversation

bioball
Copy link
Member

@bioball bioball commented Apr 10, 2025

This adds analysis for unresolved class/object properties.

Additionally, it adds analysis for more members that are missing the 'local' modifier.

As part of this change, the ModuleMemberAnalyzer is changed to simply MemberAnalyzer, because much of the logic can be shared between the two.

@bioball bioball force-pushed the unresolved-property-analysis branch from 282cc86 to a5f75ab Compare April 10, 2025 18:40
…ier 'local'

This adds analysis for unresolved class/object properties.

Additionally, it adds analysis for more members that are missing the 'local' modifier.

As part of this change, the `ModuleMemberAnalyzer` is changed to simply `MemberAnalyzer`,
because much of the logic can be shared between the two.
@bioball bioball force-pushed the unresolved-property-analysis branch from a5f75ab to e23a232 Compare April 10, 2025 19:00
val base = project.pklBaseModule
val context = module.containingFile.pklProject

val memberType: Type by lazy {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why make it lazy when you are forcing it a few lines below?

Copy link
Member Author

Choose a reason for hiding this comment

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

We only execute this if the node is PklObjectProperty or PklClassProperty

@bioball bioball merged commit dea88e3 into apple:main Apr 15, 2025
3 checks passed
@bioball bioball deleted the unresolved-property-analysis branch April 15, 2025 00:38
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