| Index: pkg/compiler/lib/src/io/code_output.dart
|
| diff --git a/pkg/compiler/lib/src/io/code_output.dart b/pkg/compiler/lib/src/io/code_output.dart
|
| index 7f5b99676b9e7374855f5ff248e2c4044ecc79f3..e43cbbbfa4cf0c115b574edd5d0bf7968fdf70b7 100644
|
| --- a/pkg/compiler/lib/src/io/code_output.dart
|
| +++ b/pkg/compiler/lib/src/io/code_output.dart
|
| @@ -23,8 +23,8 @@ abstract class SourceLocations {
|
| void addSourceLocation(int targetOffset, SourceLocation sourcePosition);
|
|
|
| /// Applies [f] to every target offset and associated source location.
|
| - void forEachSourceLocation(void f(int targetOffset,
|
| - SourceLocation sourceLocation));
|
| + void forEachSourceLocation(
|
| + void f(int targetOffset, SourceLocation sourceLocation));
|
| }
|
|
|
| abstract class CodeOutput implements SourceLocations {
|
| @@ -66,9 +66,10 @@ abstract class AbstractCodeOutput extends CodeOutput {
|
| @override
|
| void addBuffer(CodeBuffer other) {
|
| if (other.markers.length > 0) {
|
| - other.markers.forEach(
|
| - (int targetOffset, List<SourceLocation> sourceLocations) {
|
| - markers.putIfAbsent(length + targetOffset, () => <SourceLocation>[])
|
| + other.markers
|
| + .forEach((int targetOffset, List<SourceLocation> sourceLocations) {
|
| + markers
|
| + .putIfAbsent(length + targetOffset, () => <SourceLocation>[])
|
| .addAll(sourceLocations);
|
| });
|
| }
|
| @@ -78,8 +79,7 @@ abstract class AbstractCodeOutput extends CodeOutput {
|
| _addInternal(other.getText());
|
| }
|
|
|
| - void addSourceLocation(int targetOffset,
|
| - SourceLocation sourceLocation) {
|
| + void addSourceLocation(int targetOffset, SourceLocation sourceLocation) {
|
| assert(targetOffset <= length);
|
| List<SourceLocation> sourceLocations =
|
| markers.putIfAbsent(targetOffset, () => <SourceLocation>[]);
|
|
|