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

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

Issue 1240283004: few small analyzer AST visitor fixes (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: bump pubspec.yaml Created 5 years, 5 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
« no previous file with comments | « pkg/analyzer/lib/src/generated/ast.dart ('k') | pkg/analyzer/pubspec.yaml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.parser; 8 library engine.parser;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 10015 matching lines...) Expand 10 before | Expand all | Expand 10 after
10026 @override 10026 @override
10027 bool visitLabeledStatement(LabeledStatement node) { 10027 bool visitLabeledStatement(LabeledStatement node) {
10028 LabeledStatement toNode = this._toNode as LabeledStatement; 10028 LabeledStatement toNode = this._toNode as LabeledStatement;
10029 return _and(_isEqualNodeLists(node.labels, toNode.labels), 10029 return _and(_isEqualNodeLists(node.labels, toNode.labels),
10030 _isEqualNodes(node.statement, toNode.statement)); 10030 _isEqualNodes(node.statement, toNode.statement));
10031 } 10031 }
10032 10032
10033 @override 10033 @override
10034 bool visitLibraryDirective(LibraryDirective node) { 10034 bool visitLibraryDirective(LibraryDirective node) {
10035 LibraryDirective toNode = this._toNode as LibraryDirective; 10035 LibraryDirective toNode = this._toNode as LibraryDirective;
10036 return _and( 10036 if (_and(
10037 _isEqualNodes(node.documentationComment, toNode.documentationComment), 10037 _isEqualNodes(node.documentationComment, toNode.documentationComment),
10038 _isEqualNodeLists(node.metadata, toNode.metadata), 10038 _isEqualNodeLists(node.metadata, toNode.metadata),
10039 _isEqualTokens(node.libraryKeyword, toNode.libraryKeyword), 10039 _isEqualTokens(node.libraryKeyword, toNode.libraryKeyword),
10040 _isEqualNodes(node.name, toNode.name), 10040 _isEqualNodes(node.name, toNode.name),
10041 _isEqualTokens(node.semicolon, toNode.semicolon)); 10041 _isEqualTokens(node.semicolon, toNode.semicolon))) {
10042 toNode.element = node.element;
10043 return true;
10044 }
10045 return false;
10042 } 10046 }
10043 10047
10044 @override 10048 @override
10045 bool visitLibraryIdentifier(LibraryIdentifier node) { 10049 bool visitLibraryIdentifier(LibraryIdentifier node) {
10046 LibraryIdentifier toNode = this._toNode as LibraryIdentifier; 10050 LibraryIdentifier toNode = this._toNode as LibraryIdentifier;
10047 if (_isEqualNodeLists(node.components, toNode.components)) { 10051 if (_isEqualNodeLists(node.components, toNode.components)) {
10048 toNode.propagatedType = node.propagatedType; 10052 toNode.propagatedType = node.propagatedType;
10049 toNode.staticType = node.staticType; 10053 toNode.staticType = node.staticType;
10050 return true; 10054 return true;
10051 } 10055 }
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
10664 } 10668 }
10665 10669
10666 /** 10670 /**
10667 * Copy resolution data from the [fromNode] to the [toNode]. 10671 * Copy resolution data from the [fromNode] to the [toNode].
10668 */ 10672 */
10669 static void copyResolutionData(AstNode fromNode, AstNode toNode) { 10673 static void copyResolutionData(AstNode fromNode, AstNode toNode) {
10670 ResolutionCopier copier = new ResolutionCopier(); 10674 ResolutionCopier copier = new ResolutionCopier();
10671 copier._isEqualNodes(fromNode, toNode); 10675 copier._isEqualNodes(fromNode, toNode);
10672 } 10676 }
10673 } 10677 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/ast.dart ('k') | pkg/analyzer/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698