renamed "exprstmt" to "expr_stmt"

This commit is contained in:
Erik Krogh Kristensen
2020-09-04 11:53:05 +02:00
parent 03c8eb87d2
commit a752ef79a2
3 changed files with 3 additions and 3 deletions

View File

@@ -165,7 +165,7 @@ class BlockStmt extends @block_stmt, Stmt {
* console.log("Restart."); * console.log("Restart.");
* ``` * ```
*/ */
class ExprStmt extends @exprstmt, Stmt { class ExprStmt extends @expr_stmt, Stmt {
/** Gets the expression of this expression statement. */ /** Gets the expression of this expression statement. */
Expr getExpr() { result = getChildExpr(0) } Expr getExpr() { result = getChildExpr(0) }

View File

@@ -151,7 +151,7 @@ jump_targets (unique int jump: @stmt ref,
case @stmt.kind of case @stmt.kind of
0 = @empty_stmt 0 = @empty_stmt
| 1 = @block_stmt | 1 = @block_stmt
| 2 = @exprstmt | 2 = @expr_stmt
| 3 = @ifstmt | 3 = @ifstmt
| 4 = @labeledstmt | 4 = @labeledstmt
| 5 = @breakstmt | 5 = @breakstmt

View File

@@ -62,7 +62,7 @@
<v>204994</v> <v>204994</v>
</e> </e>
<e> <e>
<k>@exprstmt</k> <k>@expr_stmt</k>
<v>610340</v> <v>610340</v>
</e> </e>
<e> <e>