Helper function to analyze this expr and assert that the analysis was successful. TODO: This function could be used in many more places to clean up. Consider adding an IAnalyzable interface or similar to and move this helper into Analyzer such that non-Expr things can use the helper also.
(Analyzer analyzer)
| 586 | * such that non-Expr things can use the helper also. |
| 587 | */ |
| 588 | public void analyzeNoThrow(Analyzer analyzer) { |
| 589 | try { |
| 590 | analyze(analyzer); |
| 591 | } catch (AnalysisException e) { |
| 592 | throw new IllegalStateException(e); |
| 593 | } |
| 594 | } |
| 595 | |
| 596 | /** |
| 597 | * Helper function to properly count the number of statement expressions. |
no test coverage detected