dart-archive / angular_analyzer_plugin

WORK MOVED TO dart-lang/angular repository
https://github.com/dart-lang/angular/tree/master/angular_analyzer_plugin
68 stars 13 forks source link

Fix issues in not-exported errors, more tests. #664

Closed MichaelRFairhurst closed 5 years ago

MichaelRFairhurst commented 5 years ago

Previous non-error tests didn't actually assert no errors were reported, only that the elements were resolved. That worked under the previous approach where the library scope was restricted, but that doesn't work under the new aproach where resolution occurs regardless of the export error.

After enabling the export error, the biggest issues found were:

One other edge case bug remained (prefixed.topLevelFn()), and then added some tests for other edge cases, and did some other minor refactoring like introducing new locals for better type promotion.