visitTernaryExpr method

  1. @override
String visitTernaryExpr(
  1. TernaryExpr expr
)
override

Implementation

@override
String visitTernaryExpr(TernaryExpr expr) {
  final condition = formatAST(expr.condition);
  final thenBranch = formatAST(expr.thenBranch);
  final elseBranch = formatAST(expr.elseBranch);
  return '$condition ${_lexicon.ternaryThen} $thenBranch ${_lexicon.ternaryElse} $elseBranch';
}