lastLineNumberGet method
Implementation
@override
ClassManagerResultData lastLineNumberGet() {
final visitor = ClassLastLineVisitor();
parsedFileUnit.visitChildren(visitor);
// 4. Check results
if (visitor.result != null) {
// 5. Calculate line number from the 'end' offset of the closing brace
final classNode = visitor.result!;
final lineNumber = parsedFile().lineInfo
.getLocation(classNode.body.end)
.lineNumber;
dataSingleton.addTaskResultValue(lineNumber);
return dataSingleton;
}
return dataSingleton;
}