dart-archive/angular_analyzer_plugin

Pipe class inheriting a transform method should be ok

Closed this issue · 1 comments

A pipe class can inherit its transform method, can it not? Angular seems to be happy with this, but the plugin reports an issue:

warning: @pipe declared classes must contain a 'transform' method

screen shot 2018-03-29 at 18 18 37

cc @kwalrath @matanlurey

Yep, inheritance should be fine!

We likely record offset information about it in the tree, so we're probably looking at the source instead of the class's interface. I should be able to add a fall back that operates in other ways, or even always go off of the interface and just change how to get the offset info to something more clever.

Thanks for filing!