addExpression method Null safety

void addExpression(
  1. Expression expression
)

Adds an expression to statements.

NOTE: Not all expressions are useful statements.

Implementation

void addExpression(Expression expression) {
  statements.add(expression.statement);
}