blob: 86b528cc5250f6ba1c6e6b451d1fbc713f2e4cc5 [file] [log] [blame]
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:compiler/src/js/size_estimator.dart';
/// This class is supposed to be identical to [SizeEstimator] with the sole
/// difference that it builds up strings to help debug estimates.
class DebugSizeEstimator extends SizeEstimator {
StringBuffer resultBuffer = StringBuffer();
String get resultString => resultBuffer.toString();
void emit(String s) {