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

Side by Side Diff: pkg/analyzer/lib/src/generated/ast.dart

Issue 435483002: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.ast; 8 library engine.ast;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 11819 matching lines...) Expand 10 before | Expand all | Expand 10 after
11830 * @param node the AST node within which to search 11830 * @param node the AST node within which to search
11831 * @return the element that was found 11831 * @return the element that was found
11832 */ 11832 */
11833 AstNode searchWithin(AstNode node) { 11833 AstNode searchWithin(AstNode node) {
11834 if (node == null) { 11834 if (node == null) {
11835 return null; 11835 return null;
11836 } 11836 }
11837 try { 11837 try {
11838 node.accept(this); 11838 node.accept(this);
11839 } on NodeLocator_NodeFoundException catch (exception) { 11839 } on NodeLocator_NodeFoundException catch (exception) {
11840 } on JavaException catch (exception) { 11840 } catch (exception) {
11841 AnalysisEngine.instance.logger.logInformation2("Unable to locate element a t offset (${_startOffset} - ${_endOffset})", exception); 11841 AnalysisEngine.instance.logger.logInformation2("Unable to locate element a t offset (${_startOffset} - ${_endOffset})", exception);
11842 return null; 11842 return null;
11843 } 11843 }
11844 return _foundNode; 11844 return _foundNode;
11845 } 11845 }
11846 11846
11847 @override 11847 @override
11848 Object visitNode(AstNode node) { 11848 Object visitNode(AstNode node) {
11849 int start = node.offset; 11849 int start = node.offset;
11850 int end = start + node.length; 11850 int end = start + node.length;
11851 if (end < _startOffset) { 11851 if (end < _startOffset) {
11852 return null; 11852 return null;
11853 } 11853 }
11854 if (start > _endOffset) { 11854 if (start > _endOffset) {
11855 return null; 11855 return null;
11856 } 11856 }
11857 try { 11857 try {
11858 node.visitChildren(this); 11858 node.visitChildren(this);
11859 } on NodeLocator_NodeFoundException catch (exception) { 11859 } on NodeLocator_NodeFoundException catch (exception) {
11860 throw exception; 11860 throw exception;
11861 } on JavaException catch (exception) { 11861 } catch (exception) {
11862 // Ignore the exception and proceed in order to visit the rest of the stru cture. 11862 // Ignore the exception and proceed in order to visit the rest of the stru cture.
11863 AnalysisEngine.instance.logger.logInformation2("Exception caught while tra versing an AST structure.", exception); 11863 AnalysisEngine.instance.logger.logInformation2("Exception caught while tra versing an AST structure.", exception);
11864 } 11864 }
11865 if (start <= _startOffset && _endOffset <= end) { 11865 if (start <= _startOffset && _endOffset <= end) {
11866 _foundNode = node; 11866 _foundNode = node;
11867 throw new NodeLocator_NodeFoundException(); 11867 throw new NodeLocator_NodeFoundException();
11868 } 11868 }
11869 return null; 11869 return null;
11870 } 11870 }
11871 } 11871 }
(...skipping 7673 matching lines...) Expand 10 before | Expand all | Expand 10 after
19545 _elements[index] = node; 19545 _elements[index] = node;
19546 } 19546 }
19547 void clear() { 19547 void clear() {
19548 _elements = <E> []; 19548 _elements = <E> [];
19549 } 19549 }
19550 int get length => _elements.length; 19550 int get length => _elements.length;
19551 void set length(int value) { 19551 void set length(int value) {
19552 throw new UnsupportedError("Cannot resize NodeList."); 19552 throw new UnsupportedError("Cannot resize NodeList.");
19553 } 19553 }
19554 } 19554 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698