(Symbol sym, Symbol tag, Expr init, boolean isArg)
| 7311 | } |
| 7312 | |
| 7313 | private static LocalBinding registerLocal(Symbol sym, Symbol tag, Expr init, boolean isArg) { |
| 7314 | int num = getAndIncLocalNum(); |
| 7315 | LocalBinding b = new LocalBinding(num, sym, tag, init, isArg, clearPathRoot()); |
| 7316 | IPersistentMap localsMap = (IPersistentMap) LOCAL_ENV.deref(); |
| 7317 | LOCAL_ENV.set(RT.assoc(localsMap, b.sym, b)); |
| 7318 | ObjMethod method = (ObjMethod) METHOD.deref(); |
| 7319 | method.locals = (IPersistentMap) RT.assoc(method.locals, b, b); |
| 7320 | method.indexlocals = (IPersistentMap) RT.assoc(method.indexlocals, num, b); |
| 7321 | return b; |
| 7322 | } |
| 7323 | |
| 7324 | private static int getAndIncLocalNum(){ |
| 7325 | int num = ((Number) NEXT_LOCAL_NUM.deref()).intValue(); |
no test coverage detected