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

Method getLineNumber

src/main/java/org/codehaus/groovy/ast/ASTNode.java:83–85  ·  view source on GitHub ↗

Returns the line number where this AST node begins in the source file. Line numbers start from 1. Returns -1 if position information is not available (for synthetic or generated nodes). @return the starting line number, or -1 if not available

()

Source from the content-addressed store, hash-verified

81 * @return the starting line number, or -1 if not available
82 */
83 public int getLineNumber() {
84 return lineNumber;
85 }
86
87 /**
88 * Sets the starting line number for this AST node in the source file.

Callers 15

getGinqExpressionMethod · 0.95
throwParserExceptionMethod · 0.95
testHashCodeMethod · 0.45
testDuplicateImportsMethod · 0.45
getLocationTextMethod · 0.45
parseMethod · 0.45
SyntaxExceptionMethod · 0.45
setSourcePositionMethod · 0.45
addErrorMethod · 0.45

Calls

no outgoing calls

Tested by 2

testHashCodeMethod · 0.36
testDuplicateImportsMethod · 0.36