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

Unified Diff: packages/observe/lib/src/messages.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 5 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 | « packages/observe/lib/src/list_path_observer.dart ('k') | packages/observe/lib/src/metadata.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/observe/lib/src/messages.dart
diff --git a/packages/observe/lib/src/messages.dart b/packages/observe/lib/src/messages.dart
deleted file mode 100644
index ed12162626845b65cd22165b0a05357bc495bbf4..0000000000000000000000000000000000000000
--- a/packages/observe/lib/src/messages.dart
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-/// Contains all warning messages produced by the observe transformer.
-library observe.src.messages;
-
-import 'package:code_transformers/messages/messages.dart';
-
-const NO_OBSERVABLE_ON_LIBRARY = const MessageTemplate(
- const MessageId('observe', 1),
- '@observable on a library no longer has any effect. '
- 'Instead, annotate individual fields as @observable.',
- '`@observable` not supported on libraries',
- _COMMON_MESSAGE_WHERE_TO_USE_OBSERVABLE);
-
-const NO_OBSERVABLE_ON_TOP_LEVEL = const MessageTemplate(
- const MessageId('observe', 2),
- 'Top-level fields can no longer be observable. '
- 'Observable fields must be in observable objects.',
- '`@observable` not supported on top-level fields',
- _COMMON_MESSAGE_WHERE_TO_USE_OBSERVABLE);
-
-const NO_OBSERVABLE_ON_CLASS = const MessageTemplate(
- const MessageId('observe', 3),
- '@observable on a class no longer has any effect. '
- 'Instead, annotate individual fields as @observable.',
- '`@observable` not supported on classes',
- _COMMON_MESSAGE_WHERE_TO_USE_OBSERVABLE);
-
-const NO_OBSERVABLE_ON_STATIC_FIELD = const MessageTemplate(
- const MessageId('observe', 4),
- 'Static fields can no longer be observable. '
- 'Observable fields must be in observable objects.',
- '`@observable` not supported on static fields',
- _COMMON_MESSAGE_WHERE_TO_USE_OBSERVABLE);
-
-const REQUIRE_OBSERVABLE_INTERFACE = const MessageTemplate(
- const MessageId('observe', 5),
- 'Observable fields must be in observable objects. '
- 'Change this class to extend, mix in, or implement Observable.',
- '`@observable` field not in an `Observable` class',
- _COMMON_MESSAGE_WHERE_TO_USE_OBSERVABLE);
-
-const String _COMMON_MESSAGE_WHERE_TO_USE_OBSERVABLE = '''
-Only instance fields on `Observable` classes can be observable,
-and you must explicitly annotate each observable field as `@observable`.
-
-Support for using the `@observable` annotation in libraries, classes, and
-elsewhere is deprecated.
-''';
« no previous file with comments | « packages/observe/lib/src/list_path_observer.dart ('k') | packages/observe/lib/src/metadata.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698