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

Side by Side Diff: pkg/compiler/lib/src/resolution/members.dart

Issue 814833008: dart2js: rename Elements.isErroneousElement to Elements.isErroneous. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 part of resolution; 5 part of resolution;
6 6
7 abstract class TreeElements { 7 abstract class TreeElements {
8 AnalyzableElement get analyzedElement; 8 AnalyzableElement get analyzedElement;
9 Iterable<Node> get superUses; 9 Iterable<Node> get superUses;
10 10
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 430
431 class ResolverTask extends CompilerTask { 431 class ResolverTask extends CompilerTask {
432 final ConstantCompiler constantCompiler; 432 final ConstantCompiler constantCompiler;
433 433
434 ResolverTask(Compiler compiler, this.constantCompiler) : super(compiler); 434 ResolverTask(Compiler compiler, this.constantCompiler) : super(compiler);
435 435
436 String get name => 'Resolver'; 436 String get name => 'Resolver';
437 437
438 TreeElements resolve(Element element) { 438 TreeElements resolve(Element element) {
439 return measure(() { 439 return measure(() {
440 if (Elements.isErroneousElement(element)) return null; 440 if (Elements.isErroneous(element)) return null;
441 441
442 processMetadata([result]) { 442 processMetadata([result]) {
443 for (MetadataAnnotation metadata in element.metadata) { 443 for (MetadataAnnotation metadata in element.metadata) {
444 metadata.ensureResolved(compiler); 444 metadata.ensureResolved(compiler);
445 } 445 }
446 return result; 446 return result;
447 } 447 }
448 448
449 ElementKind kind = element.kind; 449 ElementKind kind = element.kind;
450 if (identical(kind, ElementKind.GENERATIVE_CONSTRUCTOR) || 450 if (identical(kind, ElementKind.GENERATIVE_CONSTRUCTOR) ||
(...skipping 4593 matching lines...) Expand 10 before | Expand all | Expand 10 after
5044 } 5044 }
5045 5045
5046 /// The result for the resolution of the `assert` method. 5046 /// The result for the resolution of the `assert` method.
5047 class AssertResult implements ResolutionResult { 5047 class AssertResult implements ResolutionResult {
5048 const AssertResult(); 5048 const AssertResult();
5049 5049
5050 Element get element => null; 5050 Element get element => null;
5051 5051
5052 String toString() => 'AssertResult()'; 5052 String toString() => 'AssertResult()';
5053 } 5053 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart ('k') | pkg/compiler/lib/src/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698