From ad04b31abab103d9250bfaf39651b9d310b4f461 Mon Sep 17 00:00:00 2001 From: dak2 Date: Tue, 3 Feb 2026 20:55:21 +0900 Subject: [PATCH] fix call operator location --- README.md | 4 +- rust/src/analyzer/dispatch.rs | 6 ++- rust/src/analyzer/tests/integration_test.rs | 45 +++++++++++++++++++++ 3 files changed, 52 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 290d3bf..1bd194e 100644 --- a/README.md +++ b/README.md @@ -51,9 +51,9 @@ This will output: ``` $ bundle exec methodray check app/models/user.rb -app/models/user.rb:4:15: error: undefined method `abs` for String +app/models/user.rb:4:19: error: undefined method `abs` for String message = name.abs - ^ + ^ ``` ## Contributing diff --git a/rust/src/analyzer/dispatch.rs b/rust/src/analyzer/dispatch.rs index 7b455a4..7007d95 100644 --- a/rust/src/analyzer/dispatch.rs +++ b/rust/src/analyzer/dispatch.rs @@ -93,8 +93,12 @@ pub fn dispatch_needs_child<'a>(node: &Node<'a>, source: &str) -> Option