mirror of https://github.com/AMT-Cheif/drift.git
Finish documentation, remove unnecessary null hint
This commit is contained in:
parent
ccea0a5d36
commit
d5c6467e37
|
@ -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) {
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue