(Object o)
| 7776 | } |
| 7777 | |
| 7778 | private static int registerConstant(Object o){ |
| 7779 | if(!CONSTANTS.isBound()) |
| 7780 | return -1; |
| 7781 | PersistentVector v = (PersistentVector) CONSTANTS.deref(); |
| 7782 | IdentityHashMap<Object,Integer> ids = (IdentityHashMap<Object,Integer>) CONSTANT_IDS.deref(); |
| 7783 | Integer i = ids.get(o); |
| 7784 | if(i != null) |
| 7785 | return i; |
| 7786 | CONSTANTS.set(RT.conj(v, o)); |
| 7787 | ids.put(o, v.count()); |
| 7788 | return v.count(); |
| 7789 | } |
| 7790 | |
| 7791 | private static KeywordExpr registerKeyword(Keyword keyword){ |
| 7792 | if(!KEYWORDS.isBound()) |
no test coverage detected