| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |