You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Foo's comment, `bar(...)` refers to the function named bar at the same scope. To refer to the method needs Foo.bar(...).
I can imagine searching both scopes but I don't think it's a good idea because of the ambiguity. I can see the usability of not repeating Foo though. An enhancement might be to permit a leading . in autolinked identifiers to mean "within this declaration's scope". And I guess not render the ..
Oh, I see. For me, intuitively, the documentation of the class is at class scope. Similar to how method properties are in-scope in the method documentation (but not at the same scope as the method).
Leading dots would read weirdly in source because that syntax is associated with enum instances.
For code like this:
bar
will be autolinked in the documentation ofspa
, but not that ofFoo
.The text was updated successfully, but these errors were encountered: