| 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 class WorkItem { | 5 class WorkItem { |
| 6 final Element element; | 6 final Element element; |
| 7 TreeElements resolutionTree; | 7 TreeElements resolutionTree; |
| 8 Function run; | 8 Function run; |
| 9 bool allowSpeculativeOptimization = true; | 9 bool allowSpeculativeOptimization = true; |
| 10 List<HTypeGuard> guards = const <HTypeGuard>[]; | 10 List<HTypeGuard> guards = const <HTypeGuard>[]; |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 | 409 |
| 410 // TODO(ngeoffray): This should get a type. | 410 // TODO(ngeoffray): This should get a type. |
| 411 void registerIsCheck(Element element) { | 411 void registerIsCheck(Element element) { |
| 412 universe.isChecks.add(element); | 412 universe.isChecks.add(element); |
| 413 } | 413 } |
| 414 | 414 |
| 415 void resolveClass(ClassElement element) { | 415 void resolveClass(ClassElement element) { |
| 416 withCurrentElement(element, () => resolver.resolveClass(element)); | 416 withCurrentElement(element, () => resolver.resolveClass(element)); |
| 417 } | 417 } |
| 418 | 418 |
| 419 Type resolveTypeAnnotation(Element element, TypeAnnotation annotation) { |
| 420 return resolver.resolveTypeAnnotation(element, annotation); |
| 421 } |
| 422 |
| 419 FunctionParameters resolveSignature(FunctionElement element) { | 423 FunctionParameters resolveSignature(FunctionElement element) { |
| 420 return withCurrentElement(element, | 424 return withCurrentElement(element, |
| 421 () => resolver.resolveSignature(element)); | 425 () => resolver.resolveSignature(element)); |
| 422 } | 426 } |
| 423 | 427 |
| 424 Constant compileVariable(VariableElement element) { | 428 Constant compileVariable(VariableElement element) { |
| 425 return withCurrentElement(element, () { | 429 return withCurrentElement(element, () { |
| 426 return constantHandler.compileVariable(element); | 430 return constantHandler.compileVariable(element); |
| 427 }); | 431 }); |
| 428 } | 432 } |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 } | 567 } |
| 564 } | 568 } |
| 565 | 569 |
| 566 class SourceSpan { | 570 class SourceSpan { |
| 567 final Uri uri; | 571 final Uri uri; |
| 568 final int begin; | 572 final int begin; |
| 569 final int end; | 573 final int end; |
| 570 | 574 |
| 571 const SourceSpan(this.uri, this.begin, this.end); | 575 const SourceSpan(this.uri, this.begin, this.end); |
| 572 } | 576 } |
| OLD | NEW |