MCPcopy Index your code
hub / github.com/apache/groovy / addTranslation

Method addTranslation

src/main/java/org/codehaus/groovy/syntax/Types.java:1358–1361  ·  view source on GitHub ↗

Adds an element to the TEXTS and LOOKUP.

(String text, int type)

Source from the content-addressed store, hash-verified

1356 * Adds an element to the TEXTS and LOOKUP.
1357 */
1358 private static void addTranslation(String text, int type) {
1359 TEXTS.put(type, text);
1360 LOOKUP.put(text, type);
1361 }
1362
1363 /**
1364 * Adds an element to the KEYWORDS, TEXTS and LOOKUP.

Callers 2

addKeywordMethod · 0.95
TypesClass · 0.95

Calls 1

putMethod · 0.65

Tested by

no test coverage detected