| OLD | NEW |
| 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 engine.task.dart; | 5 library engine.task.dart; |
| 6 | 6 |
| 7 import 'package:analyzer/src/generated/ast.dart'; | 7 import 'package:analyzer/src/generated/ast.dart'; |
| 8 import 'package:analyzer/src/generated/element.dart'; | 8 import 'package:analyzer/src/generated/element.dart'; |
| 9 import 'package:analyzer/src/generated/engine.dart'; | 9 import 'package:analyzer/src/generated/engine.dart'; |
| 10 import 'package:analyzer/src/generated/resolver.dart'; | 10 import 'package:analyzer/src/generated/resolver.dart'; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 * Return the compilation unit element that was produced, or `null` if the | 75 * Return the compilation unit element that was produced, or `null` if the |
| 76 * task has not yet been performed or if an exception occurred. | 76 * task has not yet been performed or if an exception occurred. |
| 77 */ | 77 */ |
| 78 CompilationUnitElement getUnitElement() { | 78 CompilationUnitElement getUnitElement() { |
| 79 return unitElement; | 79 return unitElement; |
| 80 } | 80 } |
| 81 | 81 |
| 82 @override | 82 @override |
| 83 void internalPerform() { | 83 void internalPerform() { |
| 84 CompilationUnitBuilder builder = new CompilationUnitBuilder(); | 84 CompilationUnitBuilder builder = new CompilationUnitBuilder(); |
| 85 unitElement = builder.buildCompilationUnit(source, unit); | 85 unitElement = builder.buildCompilationUnit(source, unit, library); |
| 86 } | 86 } |
| 87 } | 87 } |
| OLD | NEW |