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

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

Issue 1916223004: Stop concatenating prefixes and identifiers when performing lookup (issue 26069) (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Clean up Created 4 years, 8 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 | « no previous file | pkg/analyzer/lib/src/dart/resolver/scope.dart » ('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 library analyzer.src.dart.ast.ast; 5 library analyzer.src.dart.ast.ast;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/dart/ast/ast.dart'; 9 import 'package:analyzer/dart/ast/ast.dart';
10 import 'package:analyzer/dart/ast/token.dart'; 10 import 'package:analyzer/dart/ast/token.dart';
(...skipping 8186 matching lines...) Expand 10 before | Expand all | Expand 10 after
8197 8197
8198 /** 8198 /**
8199 * Initialize a newly created prefixed identifier. 8199 * Initialize a newly created prefixed identifier.
8200 */ 8200 */
8201 PrefixedIdentifierImpl( 8201 PrefixedIdentifierImpl(
8202 SimpleIdentifier prefix, this.period, SimpleIdentifier identifier) { 8202 SimpleIdentifier prefix, this.period, SimpleIdentifier identifier) {
8203 _prefix = _becomeParentOf(prefix); 8203 _prefix = _becomeParentOf(prefix);
8204 _identifier = _becomeParentOf(identifier); 8204 _identifier = _becomeParentOf(identifier);
8205 } 8205 }
8206 8206
8207 /**
8208 * Initialize a newly created prefixed identifier that does not take ownership
8209 * of the components. The resulting node is only for temporary use, such as by
8210 * resolution.
8211 */
8212 PrefixedIdentifierImpl.temp(this._prefix, this._identifier) : period = null;
8213
8207 @override 8214 @override
8208 Token get beginToken => _prefix.beginToken; 8215 Token get beginToken => _prefix.beginToken;
8209 8216
8210 @override 8217 @override
8211 Element get bestElement { 8218 Element get bestElement {
8212 if (_identifier == null) { 8219 if (_identifier == null) {
8213 return null; 8220 return null;
8214 } 8221 }
8215 return _identifier.bestElement; 8222 return _identifier.bestElement;
8216 } 8223 }
(...skipping 2755 matching lines...) Expand 10 before | Expand all | Expand 10 after
10972 10979
10973 @override 10980 @override
10974 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => 10981 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) =>
10975 visitor.visitYieldStatement(this); 10982 visitor.visitYieldStatement(this);
10976 10983
10977 @override 10984 @override
10978 void visitChildren(AstVisitor visitor) { 10985 void visitChildren(AstVisitor visitor) {
10979 _expression?.accept(visitor); 10986 _expression?.accept(visitor);
10980 } 10987 }
10981 } 10988 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/resolver/scope.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698