OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 csslib.src.messages; | 5 library csslib.src.messages; |
6 | 6 |
7 import 'package:logging/logging.dart' show Level; | 7 import 'package:logging/logging.dart' show Level; |
8 import 'package:source_span/source_span.dart'; | 8 import 'package:source_span/source_span.dart'; |
9 | 9 |
10 import 'options.dart'; | 10 import 'options.dart'; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 } | 121 } |
122 | 122 |
123 /** Merge [newMessages] to this message lsit. */ | 123 /** Merge [newMessages] to this message lsit. */ |
124 void mergeMessages(Messages newMessages) { | 124 void mergeMessages(Messages newMessages) { |
125 messages.addAll(newMessages.messages); | 125 messages.addAll(newMessages.messages); |
126 newMessages.messages | 126 newMessages.messages |
127 .where((message) => message.level == Level.SEVERE || options.verbose) | 127 .where((message) => message.level == Level.SEVERE || options.verbose) |
128 .forEach(printHandler); | 128 .forEach(printHandler); |
129 } | 129 } |
130 } | 130 } |
OLD | NEW |