mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Swift: extract ExtracFunctionIsolationExpr
This commit is contained in:
@@ -1425,3 +1425,18 @@ class DiscardStmt(Stmt):
|
||||
```
|
||||
"""
|
||||
sub_expr: Expr | child
|
||||
|
||||
|
||||
class ExtractFunctionIsolationExpr(Expr):
|
||||
"""
|
||||
An expression that extracts the function isolation of an expression with `@isolated(any)`
|
||||
function type.
|
||||
|
||||
For example:
|
||||
```
|
||||
func foo(x: @isolated(any) () -> ()) {
|
||||
let isolation = x.isolation
|
||||
}
|
||||
```
|
||||
"""
|
||||
function_expr: Expr | child
|
||||
|
||||
Reference in New Issue
Block a user