Skip to content

Commit

Permalink
Avoid useless allocations for interpolations without maps (#2095)
Browse files Browse the repository at this point in the history
  • Loading branch information
stof committed Sep 26, 2023
1 parent de618fa commit 81c0be6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/src/visitor/async_evaluate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3403,7 +3403,7 @@ final class _EvaluateVisitor
Future<String> _performInterpolation(Interpolation interpolation,
{bool warnForColor = false}) async {
var (result, _) = await _performInterpolationHelper(interpolation,
sourceMap: true, warnForColor: warnForColor);
sourceMap: false, warnForColor: warnForColor);
return result;
}

Expand Down
4 changes: 2 additions & 2 deletions lib/src/visitor/evaluate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// DO NOT EDIT. This file was generated from async_evaluate.dart.
// See tool/grind/synchronize.dart for details.
//
// Checksum: 7669de19668af665d1a9a60cf67e53e071bf415e
// Checksum: 1c3027293ac9cb8a0d03b18c9ca447d62c2733d7
//
// ignore_for_file: unused_import

Expand Down Expand Up @@ -3372,7 +3372,7 @@ final class _EvaluateVisitor
String _performInterpolation(Interpolation interpolation,
{bool warnForColor = false}) {
var (result, _) = _performInterpolationHelper(interpolation,
sourceMap: true, warnForColor: warnForColor);
sourceMap: false, warnForColor: warnForColor);
return result;
}

Expand Down

0 comments on commit 81c0be6

Please sign in to comment.