Open AbhaMoitra opened 3 years ago
If I were going to guess, I would expect that the JavaModelExtractorJP isn't handling the expression
final double dt = (previousTime != Double.NaN) ? (double)(currentTime - previousTime) : 0;
which probably isn't one we encountered in our NASA Java Applet or WindTurbine examples.
@crapo, yes. For statements of type VariableDeclarationExpr, the RHS should be treated similar to RHS of statements of type AssignExpr. There is also no case for processing conditional expressions. I will push the change to handle the RHS of VariableDeclarationExpr for your review.
Pushed to CodeExtraction branch.
Also pushed handling of Conditional and Cast expressions.
When ingesting the attached file (rename it by stripping out suffix '.txt'), the resulting extraction has 2 references for the variable currentTime. There should be 3 references for it. This was verified by @agabaldon and he is looking into it.
StrippedSimplyPID.java.txt