DeclarationMirrors' qualifiedName is hard to read because it doesn't distinguish library from name. #14005
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
closed-not-planned
Closed as we don't intend to take action on the reported issue
library-mirrors
type-enhancement
A request for a change that isn't a bug
DeclarationMirror's qualifiedName getter returns a symbol with a name that is the concatenation of the library name, enclosing scope name (if any) and the declaration's own name.
That means that you can get a name like "a.b.c" and not know if it's the library "a.b.c" or the variable "c" in the library "a.b".
I suggest changing the result of getName on such a symbol to be, e.g., "a.b#c" and "a.b#Foo#bar", so that it a) doesn't look like correct syntax and b) is easier to understand.
The text was updated successfully, but these errors were encountered: