| Index: pkg/analyzer/lib/src/dart/element/builder.dart
|
| diff --git a/pkg/analyzer/lib/src/dart/element/builder.dart b/pkg/analyzer/lib/src/dart/element/builder.dart
|
| index 7422233465ae7f4530f126c6e9d61609765ddc5d..ac051b984a1e07ab85da83e46c0e06dc336adfc5 100644
|
| --- a/pkg/analyzer/lib/src/dart/element/builder.dart
|
| +++ b/pkg/analyzer/lib/src/dart/element/builder.dart
|
| @@ -695,9 +695,7 @@ class ElementBuilder extends RecursiveAstVisitor<Object> {
|
| if (_inFunction) {
|
| Block enclosingBlock = node.getAncestor((node) => node is Block);
|
| if (enclosingBlock != null) {
|
| - int functionEnd = node.offset + node.length;
|
| - int blockEnd = enclosingBlock.offset + enclosingBlock.length;
|
| - element.setVisibleRange(functionEnd, blockEnd - functionEnd - 1);
|
| + element.setVisibleRange(enclosingBlock.offset, enclosingBlock.length);
|
| }
|
| }
|
| if (node.returnType == null) {
|
| @@ -816,9 +814,7 @@ class ElementBuilder extends RecursiveAstVisitor<Object> {
|
| if (_inFunction) {
|
| Block enclosingBlock = node.getAncestor((node) => node is Block);
|
| if (enclosingBlock != null) {
|
| - int functionEnd = node.offset + node.length;
|
| - int blockEnd = enclosingBlock.offset + enclosingBlock.length;
|
| - element.setVisibleRange(functionEnd, blockEnd - functionEnd - 1);
|
| + element.setVisibleRange(enclosingBlock.offset, enclosingBlock.length);
|
| }
|
| }
|
| if (_functionTypesToFix != null) {
|
|
|