| 1109 | return Visitor::visit(fn); |
| 1110 | } |
| 1111 | virtual void preVisitArgument ( Function * fn, const VariablePtr & var, bool lastArg ) override { |
| 1112 | Visitor::preVisitArgument(fn, var, lastArg); |
| 1113 | if ( checkUnusedArgument ) { |
| 1114 | if ( !var->marked_used && var->isAccessUnused() ) { |
| 1115 | program->error("unused function argument " + var->name, "", |
| 1116 | "use [unused_argument(" + var->name + ")] if intentional", |
| 1117 | var->at, CompilationError::invalid_function_argument); |
| 1118 | } |
| 1119 | } |
| 1120 | if ( var->type->getSizeOf64()>0x7fffffff ) { |
| 1121 | program->error("argument variable " + var->name + " is too big", "", "", |
| 1122 | var->at,CompilationError::exceeds_argument); |
| 1123 | } |
| 1124 | } |
| 1125 | virtual void preVisit ( ExprBlock * block ) override { |
| 1126 | Visitor::preVisit(block); |
| 1127 | if ( block->isClosure ) { |
nothing calls this directly
no test coverage detected