Add test for extracting a Java AST with an error expression

Also note that ErrorExpr can occur outside upgrade/downgrade scripts
This commit is contained in:
Chris Smowton
2023-08-16 11:14:04 +01:00
parent 8aeb9b9ae0
commit c0f8973749
5 changed files with 47 additions and 1 deletions

View File

@@ -276,7 +276,8 @@ class ExprParent extends @exprparent, Top { }
* An error expression.
*
* These may be generated by upgrade or downgrade scripts when databases
* cannot be fully converted.
* cannot be fully converted, or generated by the extractor when extracting
* source code containing errors.
*/
class ErrorExpr extends Expr, @errorexpr {
override string toString() { result = "<error expr>" }