Open
Description
Consider:
class Example {
factory Example() = Redirect.myName;
}
Then analyzed using analyzer
7.3.0
In that case, ConstructorDeclaration.redirectedConstructor
is non-null, yet .redirectedConstructor.name
and .period
are both null
.
I would expect it to point to myName
.
This appears to be specific to when the redirected class doesn't exist. In that example, Redirect
isn't a thing.
If we create the Redirect
class, the issue disappears.
But in my case, I am writing a code-generator, and Redirect
is what I'm going to generate. Hence, it doesn't exist yet but will soon.