| Index: pkg/analyzer_experimental/lib/src/generated/ast.dart
|
| diff --git a/pkg/analyzer_experimental/lib/src/generated/ast.dart b/pkg/analyzer_experimental/lib/src/generated/ast.dart
|
| index 6ee213c6535daabba26521691aea2f86e2b8f7c1..cd99c9e2c22bfd9a5b878c5dfd0996a138ccac03 100644
|
| --- a/pkg/analyzer_experimental/lib/src/generated/ast.dart
|
| +++ b/pkg/analyzer_experimental/lib/src/generated/ast.dart
|
| @@ -11716,6 +11716,14 @@ class NodeLocator extends GeneralizingASTVisitor<Object> {
|
| return _foundNode;
|
| }
|
| Object visitNode(ASTNode node) {
|
| + int start = node.offset;
|
| + int end = start + node.length;
|
| + if (end < _startOffset) {
|
| + return null;
|
| + }
|
| + if (start > _endOffset) {
|
| + return null;
|
| + }
|
| try {
|
| node.visitChildren(this);
|
| } on NodeLocator_NodeFoundException catch (exception) {
|
| @@ -11723,8 +11731,6 @@ class NodeLocator extends GeneralizingASTVisitor<Object> {
|
| } catch (exception) {
|
| AnalysisEngine.instance.logger.logInformation2("Exception caught while traversing an AST structure.", exception);
|
| }
|
| - int start = node.offset;
|
| - int end = start + node.length;
|
| if (start <= _startOffset && _endOffset <= end) {
|
| _foundNode = node;
|
| throw new NodeLocator_NodeFoundException();
|
|
|