OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 /// Contains all error and warning messages produced by polymer. | 5 /// Contains all error and warning messages produced by polymer. |
6 library polymer.src.build.messages; | 6 library polymer.src.build.messages; |
7 | 7 |
8 import 'package:code_transformers/messages/messages.dart'; | 8 import 'package:code_transformers/messages/messages.dart'; |
9 import 'constants.dart'; | 9 import 'constants.dart'; |
10 | 10 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 '''); | 100 '''); |
101 | 101 |
102 const MISSING_HREF = const MessageTemplate( | 102 const MISSING_HREF = const MessageTemplate( |
103 const MessageId('polymer', 9), | 103 const MessageId('polymer', 9), |
104 'link rel="%-rel-%" missing href.', | 104 'link rel="%-rel-%" missing href.', |
105 'Missing href on a `<link>` tag', | 105 'Missing href on a `<link>` tag', |
106 'All `<link>` tags should have a valid URL to a resource.'); | 106 'All `<link>` tags should have a valid URL to a resource.'); |
107 | 107 |
108 const ELEMENT_DEPRECATED_EONS_AGO = const MessageTemplate( | 108 const ELEMENT_DEPRECATED_EONS_AGO = const MessageTemplate( |
109 const MessageId('polymer', 10), | 109 const MessageId('polymer', 10), |
110 '<element> elements are not supported, use <polymer-element> instead', | 110 '<element> elements are not supported, use <polymer-element> instead.', |
111 '`<element>` is deprecated', | 111 '`<element>` is deprecated', |
112 ''' | 112 ''' |
113 Long ago `<polymer-element>` used to be called `<element>`. You probably ran | 113 Long ago `<polymer-element>` used to be called `<element>`. You probably ran |
114 into this error if you were migrating code that was written on a very early | 114 into this error if you were migrating code that was written on a very early |
115 version of polymer. | 115 version of polymer. |
116 '''); | 116 '''); |
117 | 117 |
118 // TODO(jmesserly): this warning is wrong if someone is using raw custom | 118 // TODO(jmesserly): this warning is wrong if someone is using raw custom |
119 // elements. Is there another way we can handle this warning that won't | 119 // elements. Is there another way we can handle this warning that won't |
120 // generate false positives? | 120 // generate false positives? |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 'Custom element found in document body without an ' | 532 'Custom element found in document body without an ' |
533 '"unresolved" attribute on it or one of its parents. This means ' | 533 '"unresolved" attribute on it or one of its parents. This means ' |
534 'your app probably has a flash of unstyled content before it ' | 534 'your app probably has a flash of unstyled content before it ' |
535 'finishes loading.', | 535 'finishes loading.', |
536 'Possible flash of unstyled content', | 536 'Possible flash of unstyled content', |
537 ''' | 537 ''' |
538 Custom element found in document body without an "unresolved" attribute on it or | 538 Custom element found in document body without an "unresolved" attribute on it or |
539 one of its parents. This means your app probably has a flash of unstyled content | 539 one of its parents. This means your app probably has a flash of unstyled content |
540 before it finishes loading. See <http://goo.gl/iN03Pj> for more info. | 540 before it finishes loading. See <http://goo.gl/iN03Pj> for more info. |
541 '''); | 541 '''); |
OLD | NEW |