synchronizeToNextDeclaration method
void
synchronizeToNextDeclaration()
Implementation
void synchronizeToNextDeclaration() {
while (!isAtEnd()) {
switch (peek().type) {
case TokenType.flutterWidget:
case TokenType.tartVar:
case TokenType.tartConst:
case TokenType.tartFinal:
case TokenType.tartFunction:
return;
default:
advance();
}
}
}