MCPcopy Create free account
hub / github.com/apache/groovy / newPlaceholder

Method newPlaceholder

src/main/java/org/codehaus/groovy/syntax/Token.java:362–366  ·  view source on GitHub ↗

Factory method to create a placeholder token with a specific meaning but unknown text. Used internally during parsing to hold semantic information. @param meaning the token's meaning type from Types @return a placeholder Token with empty text and unknown type

(final int meaning)

Source from the content-addressed store, hash-verified

360 * @return a placeholder Token with empty text and unknown type
361 */
362 public static Token newPlaceholder(final int meaning) {
363 Token token = new Token(Types.UNKNOWN, "", -1, -1);
364 token.setMeaning(meaning);
365 return token;
366 }
367}

Callers 2

Calls 1

setMeaningMethod · 0.95

Tested by

no test coverage detected