isStatement function

bool isStatement(
  1. String code
)

Implementation

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