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

Unified Diff: pkg/front_end/lib/src/fasta/scanner/string_canonicalizer.dart

Issue 2718113003: Run dartfmt on pkg/front_end/lib. (Closed)
Patch Set: Rerun after merging. 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
Index: pkg/front_end/lib/src/fasta/scanner/string_canonicalizer.dart
diff --git a/pkg/front_end/lib/src/fasta/scanner/string_canonicalizer.dart b/pkg/front_end/lib/src/fasta/scanner/string_canonicalizer.dart
index dd8c465aff48d5adaac0c3508f177981527844ba..0f452abff740cb1c92aa5f4407ee0cdacc687140 100644
--- a/pkg/front_end/lib/src/fasta/scanner/string_canonicalizer.dart
+++ b/pkg/front_end/lib/src/fasta/scanner/string_canonicalizer.dart
@@ -7,7 +7,7 @@ library fasta.scanner.string_canonicalizer;
import 'dart:convert';
class Node {
- var /* String | List<int> */ data;
+ var /* String | List<int> */ data;
int start;
int end;
String payload;
@@ -29,8 +29,10 @@ class StringCanonicalizer {
/// Linear size of a hash table.
int _size = INITIAL_SIZE;
+
/// Items in a hash table.
int _count = 0;
+
/// The table itself.
List<Node> _nodes = new List<Node>(INITIAL_SIZE);
@@ -67,9 +69,9 @@ class StringCanonicalizer {
Node t = _nodes[i];
while (t != null) {
Node n = t.next;
- int newIndex = t.data is String ?
- hashString(t.data, t.start, t.end) & (newSize - 1)
- : hashBytes(t.data, t.start, t.end) & (newSize - 1);
+ int newIndex = t.data is String
+ ? hashString(t.data, t.start, t.end) & (newSize - 1)
+ : hashBytes(t.data, t.start, t.end) & (newSize - 1);
Node s = newNodes[newIndex];
t.next = s;
newNodes[newIndex] = t;
« no previous file with comments | « pkg/front_end/lib/src/fasta/scanner/recover.dart ('k') | pkg/front_end/lib/src/fasta/scanner/string_scanner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698