visitMethodInvocation method
void
visitMethodInvocation(
- MethodInvocation node
)
override
Implementation
@override
void visitMethodInvocation(MethodInvocation node) {
if (node.methodName.name == 'on') {
// Keep updating lastOnNode if we find an 'on' call with a higher offset
if (lastOnNode == null || node.offset > lastOnNode!.offset) {
lastOnNode = node;
// 5. Calculate line number from the 'end' offset
// return parseResult.lineInfo.getLocation(lastOnNode!.end).lineNumber;
}
}
super.visitMethodInvocation(node);
}