-
Notifications
You must be signed in to change notification settings - Fork 3
fix: More accurate source locations for method names. #92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
3294aa1
to
0367e8a
Compare
e7a77b8
to
9e146e1
Compare
9e146e1
to
35b3c8b
Compare
alias_method :am_aaa, :aaa | ||
alias :a_aaa :aaa |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've filed #93 for this.
delegate :ball, to: :thing, private: true, allow_nil: true | ||
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ reference [..] Proc# | ||
# ^^^^^ definition [..] MethodNameManipulation#ball(). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing a reference for :thing
, filed #95.
from 1..2, :foo | ||
# ^^^^ definition [..] Flatfile#`foo=`(). | ||
# ^^^^ definition [..] Flatfile#foo(). | ||
pattern(/A-Za-z/, :bar) | ||
# ^^^^^^^^ reference [..] Regexp# | ||
# ^^^^ definition [..] Flatfile#bar(). | ||
# ^^^^ definition [..] Flatfile#`bar=`(). | ||
field :baz |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are missing references for 'from', 'pattern' and 'field', filed #96.
instance_helper | ||
end | ||
|
||
it 'can read foo' do | ||
# ^^^^^^^^^^^^^^ definition [..] MyTest#`<it 'can read foo'>`(). | ||
T.assert_type!(@foo, Integer) | ||
instance_helper |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing references for instance_helper
here, filed #94.
def assert(test) | ||
# ^^^^^^ definition [..] MyTest#assert(). | ||
# ^^^^ definition local 1~#2774883451 | ||
test ? true : false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing a reference for the parameter here, filed #97.
|
||
setup do | ||
# ^^^^^ definition [..] MyTest#initialize(). | ||
@a = T.let(1, Integer) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing a definition/reference here, filed #97.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, that was a bunch of work...
TODO
def_delegator
.Motivation
Fixes #49, make progress towards #1.
Test plan
Updated existing tests, added new test for structs