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; |