Allocates a new local variable of type type. It is an error to allocate a local after instructions have been emitted.
(TypeId<T> type)
| 229 | * allocate a local after instructions have been emitted. |
| 230 | */ |
| 231 | public <T> Local<T> newLocal(TypeId<T> type) { |
| 232 | if (localsInitialized) { |
| 233 | throw new IllegalStateException("Cannot allocate locals after adding instructions"); |
| 234 | } |
| 235 | Local<T> result = Local.get(this, type); |
| 236 | locals.add(result); |
| 237 | return result; |
| 238 | } |
| 239 | |
| 240 | /** |
| 241 | * Returns the local for the parameter at index {@code index} and of type |
no test coverage detected