Flutter-intellij: add default implementation when generating override method with @mustCallSuper

Created on 1 Dec 2017  路  9Comments  路  Source: flutter/flutter-intellij

@mustCallSuper is pretty good tip in development.

When we generate override method, It would be better if automatically add super.xxxx() statement where this method is marked as @mustCallSuper.

Thanks so much.

dart plugin

Most helpful comment

FWIW: this is _partially_ implemented as of 173.4700. If you use code completion to generate an overriding method it goes through the analysis server and "just works":

mar-21-2018 09-19-10

All 9 comments

That's a great idea. I think it is something to add to the Dart plugin, though.

@alexander-doroshko

@alexander-doroshko : is this codegen coming from the Dart plugin or from the server?

"Override methods" and "Generate" actions are implemented fully on the Dart plugin end. Tracked as https://youtrack.jetbrains.com/issue/WEB-30145

@pq, will the deps from the Dart plugin be available in this timeframe (M23)? If no, let's bump this now.

Nope. Bumped.

FWIW: this is _partially_ implemented as of 173.4700. If you use code completion to generate an overriding method it goes through the analysis server and "just works":

mar-21-2018 09-19-10

Improving generate actions is part of a larger arc of work that will span server and the Dart Plugin. Closing this issue in favor of tracking in WEB-30145.

@pq, though it's a bit late, thank you for the explanation :)

My pleasure. Thanks for the feedback!

Was this page helpful?
0 / 5 - 0 ratings