File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,12 @@ abstract private class CfgScopeImpl extends AstNode {
1515final class CfgScope = CfgScopeImpl ;
1616
1717final class AsyncBlockScope extends CfgScopeImpl , AsyncBlockExpr {
18+ /* Holds if `first` is executed first when entering `scope`. */
1819 override predicate scopeFirst ( AstNode first ) {
1920 first ( this .( ExprTrees:: AsyncBlockExprTree ) .getFirstChildNode ( ) , first )
2021 }
2122
23+ /* Holds if `scope` is exited when `last` finishes with completion `c`. */
2224 override predicate scopeLast ( AstNode last , Completion c ) {
2325 last ( this .( ExprTrees:: AsyncBlockExprTree ) .getLastChildElement ( ) , last , c )
2426 }
Original file line number Diff line number Diff line change 1+ /**
2+ * This module provides the public class `AsyncBlockExpr`.
3+ */
4+
15private import codeql.rust.elements.BlockExpr
26
37/**
4- * A async block expression. For example:
8+ * An async block expression. For example:
59 * ```rust
610 * async {
711 * let x = 42;
You can’t perform that action at this time.
0 commit comments