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

Method newSymbol

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

Factory method to create a symbol token from a type constant. The symbol text is looked up from the Types registry. @param type the symbol type from Types @param startLine the source line number (1-based) @param startColumn the source column number (1-based) @return a Token representing a s

(final int type, final int startLine, final int startColumn)

Source from the content-addressed store, hash-verified

336 * @return a Token representing a symbol
337 */
338 public static Token newSymbol(final int type, final int startLine, final int startColumn) {
339 return new Token(type, Types.getText(type), startLine, startColumn);
340 }
341
342 /**
343 * Factory method to create a symbol token from text.

Callers 15

testConstructorMethod · 0.95
testLoopMethod · 0.95
assertIterateMethod · 0.95
asAssignmentMethod · 0.95
evaluateElvisEqualMethod · 0.95
GeneralUtilsClass · 0.95
indexXMethod · 0.95
isNullOrInstanceOfXMethod · 0.95
DeclarationExpressionMethod · 0.95

Calls 2

getTextMethod · 0.95
lookupSymbolMethod · 0.95

Tested by 3

testConstructorMethod · 0.76
testLoopMethod · 0.76
assertIterateMethod · 0.76