| 6 | import org.dynjs.parser.ast.VariableDeclaration; |
| 7 | |
| 8 | public class BasicBlockDelegate implements BasicBlock { |
| 9 | |
| 10 | private BasicBlock delegate; |
| 11 | |
| 12 | public BasicBlockDelegate(BasicBlock initial) { |
| 13 | this.delegate = initial; |
| 14 | } |
| 15 | |
| 16 | public void setDelegate(BasicBlock delegate) { |
| 17 | this.delegate = delegate; |
| 18 | } |
| 19 | |
| 20 | public BasicBlock getDelegate() { |
| 21 | return this.delegate; |
| 22 | } |
| 23 | |
| 24 | @Override |
| 25 | public Completion call(ExecutionContext context) { |
| 26 | return this.delegate.call( context ); |
| 27 | } |
| 28 | |
| 29 | @Override |
| 30 | public List<VariableDeclaration> getVariableDeclarations() { |
| 31 | return this.delegate.getVariableDeclarations(); |
| 32 | } |
| 33 | |
| 34 | @Override |
| 35 | public List<FunctionDeclaration> getFunctionDeclarations() { |
| 36 | return this.delegate.getFunctionDeclarations(); |
| 37 | } |
| 38 | |
| 39 | @Override |
| 40 | public String getFileName() { |
| 41 | return this.delegate.getFileName(); |
| 42 | } |
| 43 | |
| 44 | @Override |
| 45 | public boolean isStrict() { |
| 46 | return this.delegate.isStrict(); |
| 47 | } |
| 48 | |
| 49 | } |
nothing calls this directly
no outgoing calls
no test coverage detected