visitSubExpr method

  1. @override
String visitSubExpr(
  1. SubExpr expr
)
override

Implementation

@override
String visitSubExpr(SubExpr expr) {
  final collectionString = formatAST(expr.object);
  final keyString = formatAST(expr.key);
  return '$collectionString${_lexicon.subGetStart}$keyString${_lexicon.subGetEnd}';
}