statement method

AstNode statement()

Implementation

AstNode statement() {
  if (match([TokenType.leftBrace])) {
    return block();
  } else if (match([TokenType.tartBreak])) {
    return breakStatement();
  } else {
    return expressionStatement();
  }
}