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

Method getDescription

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

Returns a human-readable description of the specified token type. Useful for error messages and debugging. For example, PLUS might return "+". @param type the token type constant @return a description string, or "<>" if the type has no description

(int type)

Source from the content-addressed store, hash-verified

1534 * @return a description string, or {@code "<>"} if the type has no description
1535 */
1536 public static String getDescription(int type) {
1537 if (DESCRIPTIONS.containsKey(type)) {
1538 return DESCRIPTIONS.get(type);
1539 }
1540
1541 return "<>";
1542 }
1543
1544
1545 /**

Callers 3

getDescriptionMethod · 0.95
writeMethod · 0.95
getLocationTextMethod · 0.45

Calls 2

containsKeyMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected