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

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

Issue 994293002: Task: Build Library Element Model (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updates for review comments. Created 5 years, 9 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
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/task/dart.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 // 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.element; 8 library engine.element;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 1444 matching lines...) Expand 10 before | Expand all | Expand 10 after
1455 @override 1455 @override
1456 ClassElement getType(String className) { 1456 ClassElement getType(String className) {
1457 for (ClassElement type in _types) { 1457 for (ClassElement type in _types) {
1458 if (type.name == className) { 1458 if (type.name == className) {
1459 return type; 1459 return type;
1460 } 1460 }
1461 } 1461 }
1462 return null; 1462 return null;
1463 } 1463 }
1464 1464
1465 /**
1466 * Replace the given [from] top-level variable with [to] in this compilation u nit.
1467 */
1468 void replaceTopLevelVariable(
1469 TopLevelVariableElement from, TopLevelVariableElement to) {
1470 int index = _variables.indexOf(from);
1471 _variables[index] = to;
1472 }
1473
1465 @override 1474 @override
1466 void visitChildren(ElementVisitor visitor) { 1475 void visitChildren(ElementVisitor visitor) {
1467 super.visitChildren(visitor); 1476 super.visitChildren(visitor);
1468 safelyVisitChildren(_accessors, visitor); 1477 safelyVisitChildren(_accessors, visitor);
1469 safelyVisitChildren(_enums, visitor); 1478 safelyVisitChildren(_enums, visitor);
1470 safelyVisitChildren(_functions, visitor); 1479 safelyVisitChildren(_functions, visitor);
1471 safelyVisitChildren(_typeAliases, visitor); 1480 safelyVisitChildren(_typeAliases, visitor);
1472 safelyVisitChildren(_types, visitor); 1481 safelyVisitChildren(_types, visitor);
1473 safelyVisitChildren(_variables, visitor); 1482 safelyVisitChildren(_variables, visitor);
1474 } 1483 }
(...skipping 8924 matching lines...) Expand 10 before | Expand all | Expand 10 after
10399 // void <: void (by reflexivity) 10408 // void <: void (by reflexivity)
10400 // bottom <: void (as bottom is a subtype of all types). 10409 // bottom <: void (as bottom is a subtype of all types).
10401 // void <: dynamic (as dynamic is a supertype of all types) 10410 // void <: dynamic (as dynamic is a supertype of all types)
10402 return identical(type, this) || type.isDynamic; 10411 return identical(type, this) || type.isDynamic;
10403 } 10412 }
10404 10413
10405 @override 10414 @override
10406 VoidTypeImpl substitute2( 10415 VoidTypeImpl substitute2(
10407 List<DartType> argumentTypes, List<DartType> parameterTypes) => this; 10416 List<DartType> argumentTypes, List<DartType> parameterTypes) => this;
10408 } 10417 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/task/dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698