Chromium Code Reviews| Index: sdk/lib/mirrors/mirrors.dart |
| diff --git a/sdk/lib/mirrors/mirrors.dart b/sdk/lib/mirrors/mirrors.dart |
| index d16e62eecb7fc4e63e4518e7ffd4398b8c562fda..9d6836d102858a5572f53ce0b923242120c7a83c 100644 |
| --- a/sdk/lib/mirrors/mirrors.dart |
| +++ b/sdk/lib/mirrors/mirrors.dart |
| @@ -286,9 +286,33 @@ abstract class DeclarationMirror implements Mirror { |
| bool get isTopLevel; |
| /** |
| - * The source location of this Dart language entity. |
| + * The source location of this Dart language entity, or [:null:] if the |
| + * entity is synthetic. |
| * |
| - * This operation is optional and may return [:null:]. |
| + * If the reflectee is a variable, the returned location gives the position of * the variable name at its point of declaration. |
| + * |
| + * If the reflectee is a library, class, typedef, function or type variable |
| + * with associated metadata, the returned location gives the position of the |
| + * first metadata declaration associated with the reflectee. |
| + * |
| + * Otherwise: |
| + * If the reflectee is a library, the returned location gives the position of |
| + * the keyword 'library' at the reflectee's point of declaration. |
|
gbracha
2015/02/13 23:16:36
"declaration." -> "declaration, if the reflectee i
rmacnak
2015/02/13 23:32:00
Done.
|
| + * |
| + * If the reflectee is an abstract class, the returned location gives the |
| + * position of the keyword 'abstract' at the reflectee's point of declaration. * Otherwise, if the reflectee is a class, the returned location gives the |
| + * position of the keyword 'class' at the reflectee's point of declaration. |
| + * |
| + * If the reflectee is a typedef the returned location gives the position of |
| + * the of the keyword 'typedef' at the reflectee's point of declaration. |
| + * |
| + * If the reflectee is a function with a declared return type, the returned |
| + * location gives the position of the function's return type at the |
| + * reflectee's point of declaration. Otherwise. the returned location gives |
| + * the position of the function's name at the reflectee's point of |
| + * declaration. |
| + * |
| + * This operation is optional and may throw an [UnsupportedError]. |
| */ |
| SourceLocation get location; |