renamed "trystmt" to "try_stmt"

This commit is contained in:
Erik Krogh Kristensen
2020-09-04 11:53:12 +02:00
parent 4762c9eac8
commit f749d46fe8
3 changed files with 4 additions and 4 deletions

View File

@@ -65,7 +65,7 @@ class Stmt extends @stmt, ExprOrStmt, Documentable {
}
private class TControlStmt =
TLoopStmt or @if_stmt or @with_stmt or @switch_stmt or @trystmt or @catchclause;
TLoopStmt or @if_stmt or @with_stmt or @switch_stmt or @try_stmt or @catchclause;
private class TLoopStmt = TEnhancedForLoop or @whilestmt or @dowhilestmt or @forstmt;
@@ -677,7 +677,7 @@ class ThrowStmt extends @throw_stmt, JumpStmt {
* }
* ```
*/
class TryStmt extends @trystmt, ControlStmt {
class TryStmt extends @try_stmt, ControlStmt {
/** Gets the body of this `try` statement. */
BlockStmt getBody() { result = getChildStmt(0) }

View File

@@ -160,7 +160,7 @@ case @stmt.kind of
| 8 = @switch_stmt
| 9 = @return_stmt
| 10 = @throw_stmt
| 11 = @trystmt
| 11 = @try_stmt
| 12 = @whilestmt
| 13 = @dowhilestmt
| 14 = @forstmt

View File

@@ -98,7 +98,7 @@
<v>2305</v>
</e>
<e>
<k>@trystmt</k>
<k>@try_stmt</k>
<v>1316</v>
</e>
<e>