(Expr.Invoke expr)
| 46 | } |
| 47 | |
| 48 | @Override |
| 49 | public void visitInvoke(Expr.Invoke expr) { |
| 50 | Decl.Link<Decl.Callable> name = expr.getLink(); |
| 51 | Decl.Named<?> enclosing = expr.getAncestor(Decl.Named.class); |
| 52 | // |
| 53 | if(isUnsafe(name.getTarget()) && !isUnsafe(enclosing)) { |
| 54 | syntaxError(expr, UNSAFECALL_NOT_PERMITTED); |
| 55 | } |
| 56 | super.visitInvoke(expr); |
| 57 | } |
| 58 | |
| 59 | @Override |
| 60 | public void visitLambdaAccess(Expr.LambdaAccess expr) { |
nothing calls this directly
no test coverage detected