| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 source_file_provider; | 5 library source_file_provider; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:convert'; | 8 import 'dart:convert'; |
| 9 import 'dart:io'; | 9 import 'dart:io'; |
| 10 import 'dart:math' as math; | 10 import 'dart:math' as math; |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 var onAdd, onClose; | 314 var onAdd, onClose; |
| 315 | 315 |
| 316 EventSinkWrapper(this.onAdd, this.onClose); | 316 EventSinkWrapper(this.onAdd, this.onClose); |
| 317 | 317 |
| 318 void add(String data) => onAdd(data); | 318 void add(String data) => onAdd(data); |
| 319 | 319 |
| 320 void addError(error, [StackTrace stackTrace]) => throw error; | 320 void addError(error, [StackTrace stackTrace]) => throw error; |
| 321 | 321 |
| 322 void close() => onClose(); | 322 void close() => onClose(); |
| 323 } | 323 } |
| OLD | NEW |