Skip to content

Conversation

janedbal
Copy link
Contributor

@janedbal janedbal commented Dec 6, 2023

Currently, when a file is not among "analysed files" (which is any file not listed in partial analysis), every method body is stripped by CleaningParser. Due to that OtherMethodQueryBuilderParser cannot determine what is happening to the QueryBuilder there and results in mixed. This results in nasty:

  • partial analysis: mixed returned
  • full analysis: list<Entity> returned

Due to the nature of this feature (affecting only methods returning QueryBuilder) I think it is safe to remove the CleaningParser even with this improvement.

@janedbal janedbal requested a review from ondrejmirtes January 5, 2024 15:50
Copy link
Member

@ondrejmirtes ondrejmirtes left a comment

Choose a reason for hiding this comment

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

I've looked into this and thought about it. The problem is that a lot of files will now be cached twice in memory because here you're using a new instance of the cached parser.

Ideally you'd reuse the existing cache for already parsed files by the rich parser and just cache differently parsed files that are otherwise parsed by the simple parser.

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