code_builder
code_builder copied to clipboard
Support newInstanceNamed with empty name
Opts to rewrite refer('Foo').newInstanceNamed('', []) as Foo rather than Foo.. Two primary reasons
-
Foo.breaks compilation with bad error messages -
Analyzer's
ConstructorElement#nameis a non-nullable String, which pushes theisEmptycheck to user code
- [x] I’ve reviewed the contributor guide and applied the relevant portions to this PR.