Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(632)

Side by Side Diff: lib/src/messages.dart

Issue 1022963002: pkg/csslib: fixes for args (Closed) Base URL: https://github.com/dart-lang/csslib@master
Patch Set: nits Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/parser.dart ('k') | lib/src/options.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 messages.add(msg); 118 messages.add(msg);
119 119
120 if (options.verbose) printHandler(msg); 120 if (options.verbose) printHandler(msg);
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( 127 .where((message) => message.level == Level.SEVERE || options.verbose)
128 (message) => message.level.value == Level.SEVERE || options.verbose) 128 .forEach(printHandler);
129 .forEach((message) {
130 printHandler(message);
131 });
132 } 129 }
133 } 130 }
OLDNEW
« no previous file with comments | « lib/parser.dart ('k') | lib/src/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698