MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / transform

Method transform

src/main/java/fieldnashorn/babel/Translate.java:72–82  ·  view source on GitHub ↗
(String c, boolean isFragment)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

_transformMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected