We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There is a problem with nested functions.
Scenario
Example in attached file.
I added this code
if ((activeFunction != null) && (activeFunction.getUnit() != results.getActiveUnit())) activeFunction = null;
in method FunctionInterface createFunction(CodeAnalysisResults results, ClassInterface currentClass)
FunctionInterface createFunction(CodeAnalysisResults results, ClassInterface currentClass)
It solved this problem but it is not a good solution :(
. Desktop.zip
The text was updated successfully, but these errors were encountered:
Better solution:
private FunctionInterface getCachedFunction(CodeAnalysisResults results) { FunctionInterface activeFunction = results.getCachedFunction(functionName); if (activeFunction == null) return null; if (activeFunction.getUnit() != results.getActiveUnit()) return null; if ((results.getParseStatus() == LexerMetrics.IMPLEMENTATION) && (!activeFunction.isDeclaration())) return null; return activeFunction; } private FunctionInterface createFunction(CodeAnalysisResults results, ClassInterface currentClass) { FunctionInterface activeFunction = getCachedFunction(results); if (activeFunction == null)
Sorry, something went wrong.
@jbabijczuk thanks for the fix, I think it worked, but I found another annoying bug!
No branches or pull requests
There is a problem with nested functions.
Scenario
Results:
XX is not a valid line for pointer
Example in attached file.
I added this code
in method
FunctionInterface createFunction(CodeAnalysisResults results, ClassInterface currentClass)
It solved this problem but it is not a good solution :(
.
Desktop.zip
The text was updated successfully, but these errors were encountered: