handleTrailing method

void handleTrailing(
  1. ASTNode expr, {
  2. bool handleComma = true,
  3. String? endMarkForCommaExpressions,
})

Implementation

void handleTrailing(ASTNode expr,
    {bool handleComma = true, String? endMarkForCommaExpressions}) {
  _handleTrailing(expr);
  if (endMarkForCommaExpressions != null &&
      curTok.type != endMarkForCommaExpressions) {
    if (handleComma) match(lexicon.comma);
    _handleTrailing(expr, afterComma: true);
  }
}