Chromium Code Reviews| Index: pkg/analyzer/lib/dart/element/element.dart |
| diff --git a/pkg/analyzer/lib/dart/element/element.dart b/pkg/analyzer/lib/dart/element/element.dart |
| index 99277f23c735abec954d0c2b4218fdfb1de63819..db648bcbdf98fdda915eb641e34b88b9e7181cc5 100644 |
| --- a/pkg/analyzer/lib/dart/element/element.dart |
| +++ b/pkg/analyzer/lib/dart/element/element.dart |
| @@ -1464,14 +1464,12 @@ abstract class LocalElement implements Element { |
| * which the name of this element is visible, or `null` if there is no single |
| * range of characters within which the element name is visible. |
| * |
| - * * For a local variable, this includes everything from the end of the |
| - * variable's initializer to the end of the block that encloses the variable |
| - * declaration. |
| + * * For a local variable, this is the source range of the end of the block |
|
Brian Wilkerson
2016/02/10 23:08:23
"of the end of the block"? Did you mean "of the bl
|
| + * that encloses the variable declaration. |
| * * For a parameter, this includes the body of the method or function that |
| * declares the parameter. |
| - * * For a local function, this includes everything from the beginning of the |
| - * function's body to the end of the block that encloses the function |
| - * declaration. |
| + * * For a local function, this is the source range of the end of the block |
| + * that encloses the variable declaration. |
| * * For top-level functions, `null` will be returned because they are |
| * potentially visible in multiple sources. |
| */ |