-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
Hi, I've just discovered astpath and it's really cool!
I can get the file and line at the start of the match, but how do I get the whole match?
Suppose I'm searching for logging.debug and my code looks as follows, thanks to black:
...
logging.debug(
"A very %s long %r line %s with %s a lot of %r format specifiers",
something.foo.bar,
[some.expression > that - results - in - an < object for x in y],
yet.another.blah,
...
)
...I wish that astpath could tell me the exact boundaries of the function call including the call arguments.
I can simulate some of this with before_ and after_context but that's kinda hacky...
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels