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

Method getLastLineNumber

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

Returns the line number where this AST node ends in the source file. Line numbers start from 1. Returns -1 if position information is unavailable. The end position is typically inclusive (last line of the node's span). @return the ending line number, or -1 if not available

()

Source from the content-addressed store, hash-verified

123 * @return the ending line number, or -1 if not available
124 */
125 public int getLastLineNumber() {
126 return lastLineNumber;
127 }
128
129 /**
130 * Sets the ending line number for this AST node in the source file.

Callers 15

throwParserExceptionMethod · 0.95
SyntaxExceptionMethod · 0.45
visitStdMethodMethod · 0.45
transformToSetterCallMethod · 0.45
setSourcePositionMethod · 0.45
addErrorMethod · 0.45
SourceTextMethod · 0.45
visitMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected