(String c, boolean isFragment)
| 70 | } |
| 71 | |
| 72 | @Override |
| 73 | public Pair<String, Function<Integer, Integer>> transform(String c, boolean isFragment) throws TranslationFailedException { |
| 74 | String t = codeCache.get(c); |
| 75 | Function<Integer, Integer> f = mapCache.get(c); |
| 76 | if (t == null || f == null) { |
| 77 | Pair<String, Function<Integer, Integer>> q = _transform(c); |
| 78 | first = false; |
| 79 | return q; |
| 80 | } |
| 81 | return new Pair<>(t, f); |
| 82 | } |
| 83 | |
| 84 | private Pair<String, Function<Integer, Integer>> _transform(String c) throws TranslationFailedException { |
| 85 |
nothing calls this directly
no test coverage detected