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

Unified Diff: example/call_parser.dart

Issue 1832993003: Fix all strong mode errors and warnings. (Closed) Base URL: https://github.com/dart-lang/csslib.git@master
Patch Set: Move type. Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « CHANGELOG.md ('k') | lib/parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: example/call_parser.dart
diff --git a/example/call_parser.dart b/example/call_parser.dart
index 7179a170f83697017689de04253dfa474588416d..3ae588932053d8be91f26d9589f385d1de4cfca6 100644
--- a/example/call_parser.dart
+++ b/example/call_parser.dart
@@ -2,6 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
import 'package:csslib/parser.dart' as css;
+import 'package:csslib/src/messages.dart';
import 'package:csslib/visitor.dart';
const _default = const css.PreprocessorOptions(
@@ -16,7 +17,7 @@ const _default = const css.PreprocessorOptions(
* tests (by default) will ensure that the CSS is really valid.
*/
StyleSheet parseCss(String cssInput,
- {List errors, css.PreprocessorOptions opts}) {
+ {List<Message> errors, css.PreprocessorOptions opts}) {
return css.parse(cssInput,
errors: errors, options: opts == null ? _default : opts);
}
@@ -27,7 +28,7 @@ String prettyPrint(StyleSheet ss) =>
(emitCss..visitTree(ss, pretty: true)).toString();
main() {
- var errors = [];
+ var errors = <Message>[];
// Parse a simple stylesheet.
print('1. Good CSS, parsed CSS emitted:');
« no previous file with comments | « CHANGELOG.md ('k') | lib/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698