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 warning messages produced by the observe transformer. | 5 /// Contains all warning messages produced by the observe transformer. |
6 library observe.src.messages; | 6 library observe.src.messages; |
7 | 7 |
8 import 'package:code_transformers/messages/messages.dart'; | 8 import 'package:code_transformers/messages/messages.dart'; |
9 | 9 |
10 const NO_OBSERVABLE_ON_LIBRARY = const MessageTemplate( | 10 const NO_OBSERVABLE_ON_LIBRARY = const MessageTemplate( |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 '`@observable` field not in an `Observable` class', | 42 '`@observable` field not in an `Observable` class', |
43 _COMMON_MESSAGE_WHERE_TO_USE_OBSERVABLE); | 43 _COMMON_MESSAGE_WHERE_TO_USE_OBSERVABLE); |
44 | 44 |
45 const String _COMMON_MESSAGE_WHERE_TO_USE_OBSERVABLE = ''' | 45 const String _COMMON_MESSAGE_WHERE_TO_USE_OBSERVABLE = ''' |
46 Only instance fields on `Observable` classes can be observable, | 46 Only instance fields on `Observable` classes can be observable, |
47 and you must explicitly annotate each observable field as `@observable`. | 47 and you must explicitly annotate each observable field as `@observable`. |
48 | 48 |
49 Support for using the `@observable` annotation in libraries, classes, and | 49 Support for using the `@observable` annotation in libraries, classes, and |
50 elsewhere is deprecated. | 50 elsewhere is deprecated. |
51 '''; | 51 '''; |
OLD | NEW |