Finish documentation, remove unnecessary null hint

This commit is contained in:
Simon Binder 2020-06-24 17:11:41 +02:00
parent ccea0a5d36
commit d5c6467e37
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
part of '../ast.dart';
/// Used as a top-level parsing
/// Used as a top-level substitute when no statement could be parsed otherwise.
class InvalidStatement extends Statement {
@override
R accept<A, R>(AstVisitor<A, R> visitor, A arg) {

View File

@ -226,7 +226,7 @@ class Parser extends ParserBase
var _lastStmtHadParsingError = false;
/// Parses a statement without throwing when there's a parsing error.
Statement /*?*/ safeStatement() {
Statement safeStatement() {
return _parseAsStatement(statement, requireSemicolon: false) ??
InvalidStatement();
}