Support for @override annotations (as structured doc comments) #3752
Labels
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P1
A high priority bug; for example, a single project is unusable or has many test failures
type-enhancement
A request for a change that isn't a bug
Milestone
In a nutshell this entails:
* adding support for annotations (or metadata) to DartNodes
* associating parsed metadata with DartNodes (possibly in CommentPreservingParser)
* detecting and reporting errors/warnings when invariants are violated
To start, we can enforce that methods marked as overriding do in fact override ; if they don't we should produce an error.
As a first cut, we will use the following simple format:
// @override
and insist that it be on a line immediately preceding a method declaration. For example:
// @override
bool isAssignable() => false;
The text was updated successfully, but these errors were encountered: