Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(336)

Unified Diff: pkg/front_end/tool/fasta_perf.dart

Issue 2711053004: Fix fasta strong mode errors (and a lint). (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/tool/fasta_perf.dart
diff --git a/pkg/front_end/tool/fasta_perf.dart b/pkg/front_end/tool/fasta_perf.dart
index ab8043028a1c4c4b8032c767d4a3cd5a0972a77f..246c2bbf86495c507dc69dbf5f0feeac0f096372 100644
--- a/pkg/front_end/tool/fasta_perf.dart
+++ b/pkg/front_end/tool/fasta_perf.dart
@@ -133,7 +133,7 @@ Future<Map<Uri, List<int>>> scanReachableFiles(Uri entryUri) async {
inputSize = 0;
// adjust size because there is a null-terminator on the contents.
for (var source in files.values) inputSize += (source.length - 1);
- print('input size: ${inputSize} chars');
+ print('input size: $inputSize chars');
var loadTime = loadTimer.elapsedMicroseconds - scanTimer.elapsedMicroseconds;
report('load', loadTime);
report('scan', scanTimer.elapsedMicroseconds);
@@ -234,8 +234,7 @@ class _EmptyScope extends Scope {
// Note: AstBuilder doesn't build compilation-units or classes, only method
// bodies. So this listener is not feature complete.
class _PartialAstBuilder extends AstBuilder {
- final Uri uri;
- _PartialAstBuilder(this.uri) : super(null, null, null, new _EmptyScope());
+ _PartialAstBuilder(Uri uri) : super(null, null, null, new _EmptyScope(), uri);
// Note: this method converts the body to kernel, so we skip that here.
@override
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698