isStatement function
Implementation
bool isStatement(String code) => _tryParse(code, (Parser parser, Token token) {
final statement = parser.parseStatement(token);
if (statement.toString().isEmpty) {
return null;
}
return statement;
});