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
Dartdoc prefers the A.foo instance member. To specifically refer to the constructor, you can use A.foo(). We should document this behavior here: https://dart.dev/tools/doc-comments/references
So for this code, you can differentiate between them:
/// A class with [A.foo] and [A.foo()]classA {
int foo =0;
A.foo();
}
But there is no colouring for A.foo() (currently being suggested correctly). [...]
Also noticed the . has no colouring here. Not a big deal but it is a bit weird.
I think this is probably the same as #47553. In the code above, there are no regions parsed for the one with the parens, so we don't provide navigation (or colouring) for it. That issue was specifically about functions, but I just tested with constructors and it seems to be the same.
(FYI @srawlins .. should we close this one as a dupe of that?)
Originally posted in #59724:
From #59910 (comment):
So for this code, you can differentiate between them:
But there is no colouring for
A.foo()
(currently being suggested correctly). [...]Also noticed the
.
has no colouring here. Not a big deal but it is a bit weird.CC @DanTup
The text was updated successfully, but these errors were encountered: