Inpection errors on stupidly long if else if
Issue #800
resolved
I have an Apex class with a very long "if else if" structure. It is about 550 lines long (I didn't write it, I just get the pleasure of working on it).
Around line 385 the inspector starts to list compile errors. The class really does not have compile errors and deploys and runs correctly.
I believe the issue is likely identified by the second error message -
Maximum recursion level (1000) reached in 'argument_1'
This then fowls up the find usages, dependencies, and structure view.
Comments (3)
-
repo owner -
repo owner - changed status to resolved
Issue tracker grooming. If this is still an issue, please feel free to reopen, ideally with a concrete reproduction scenario.
-
repo owner - removed component
Removing component: Parser (automated comment)
- Log in to comment
Wow...that's a new one. That would likely be occurring in the recursive descent parser itself. That's generated code, but I'll see what I can do. Thanks for reporting!