| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library fasta.scanner.abstract_scanner; | 5 library fasta.scanner.abstract_scanner; |
| 6 | 6 |
| 7 import 'dart:convert'; | 7 import 'dart:convert'; |
| 8 | 8 |
| 9 class Node { | 9 class Node { |
| 10 var /* String | List<int> */ data; | 10 var /* String | List<int> */ data; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 if (data is String) | 106 if (data is String) |
| 107 payload = data.substring(start, end); | 107 payload = data.substring(start, end); |
| 108 else | 108 else |
| 109 payload = decode(data, start, end, asciiOnly); | 109 payload = decode(data, start, end, asciiOnly); |
| 110 _nodes[index] = new Node(data, start, end, payload, s); | 110 _nodes[index] = new Node(data, start, end, payload, s); |
| 111 _count++; | 111 _count++; |
| 112 return payload; | 112 return payload; |
| 113 } | 113 } |
| 114 | 114 |
| 115 clear() { | 115 clear() { |
| 116 _nodes = new List<Node>(size); | 116 _nodes = new List<Node>(_size); |
| 117 } | 117 } |
| 118 } | 118 } |
| OLD | NEW |