Have "go to definition" jump to a class when used on a ConstructorExpression
where the default constructor is missing
#56241
Labels
analyzer-server
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P3
A lower priority bug or feature request
type-enhancement
A request for a change that isn't a bug
(not sure if the issue should be here or in the Dart Code repo)
Consider the following code:
Then used as:
Notice the error. It is here on purpose in this example.
The problem is, in this snippet, it is impossible to use "go to definition" on that
Example()
. Since there's noExample()
constructor, the analyzer doesn't provide any definition.In the case of a missing default constructor, could we jump to the class definition instead?
The text was updated successfully, but these errors were encountered: