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

Unified Diff: pkg/meta/lib/meta.dart

Issue 1902483003: Fixed docs for `meta`. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: docs 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 | « pkg/meta/CHANGELOG.md ('k') | pkg/meta/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/meta/lib/meta.dart
diff --git a/pkg/meta/lib/meta.dart b/pkg/meta/lib/meta.dart
index b8142fda2ce7810a379346fb85e6ceedf4d8b3ea..ff0f9b0d87e23285d63fc6749f2a80501306e73c 100644
--- a/pkg/meta/lib/meta.dart
+++ b/pkg/meta/lib/meta.dart
@@ -24,6 +24,7 @@ library meta;
/// same annotation.
///
/// Tools, such as the analyzer, can provide feedback if
+///
/// * the annotation is associated with anything other than an instance method,
/// or
/// * a method that has this annotation that can return anything other than a
@@ -35,6 +36,7 @@ const _Factory factory = const _Factory();
/// arguments to the constructor is not a compile-time constant.
///
/// Tools, such as the analyzer, can provide feedback if
+///
/// * the annotation is associated with anything other than a const constructor,
/// or
/// * an invocation of a constructor that has this annotation is not invoked
@@ -50,6 +52,7 @@ const _Literal literal = const _Literal();
/// outside of the library that defines the annotated method.
///
/// Tools, such as the analyzer, can provide feedback if
+///
/// * the annotation is associated with anything other than an instance method,
/// or
/// * a method that overrides a method that has this annotation can return
@@ -70,6 +73,7 @@ const _OptionalTypeArgs optionalTypeArgs = const _OptionalTypeArgs();
/// that `m` should only be invoked on `this`, whether explicitly or implicitly.
///
/// Tools, such as the analyzer, can provide feedback if
+///
/// * the annotation is associated with anything other than an instance member,
/// or
/// * an invocation of a member that has this annotation is used outside of an
@@ -84,6 +88,7 @@ const _Protected protected = const _Protected();
/// optional parameter.
///
/// Tools, such as the analyzer, can provide feedback if
+///
/// * the annotation is associated with anything other than a named parameter,
/// * the annotation is associated with a named parameter in a method `m1` that
/// overrides a method `m0` and `m0` defines a named parameter with the same
« no previous file with comments | « pkg/meta/CHANGELOG.md ('k') | pkg/meta/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698