Sets the source position information using another ASTNode as reference. Copies all position data (line/column start and end) from the source node, enabling consistent source location tracking for synthetic or transformed nodes. @param node the reference node providing position information
(final ASTNode node)
| 167 | * @param node the reference node providing position information |
| 168 | */ |
| 169 | public void setSourcePosition(final ASTNode node) { |
| 170 | this.lineNumber = node.getLineNumber(); |
| 171 | this.columnNumber = node.getColumnNumber(); |
| 172 | this.lastLineNumber = node.getLastLineNumber(); |
| 173 | this.lastColumnNumber = node.getLastColumnNumber(); |
| 174 | } |
| 175 | |
| 176 | /** |
| 177 | * Copies all node metadata from another ASTNode. |
no test coverage detected