OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 ddc.src.codegen.code_generator; | 5 library dev_compiler.src.codegen.code_generator; |
6 | 6 |
7 import 'dart:io'; | 7 import 'dart:io'; |
8 | 8 |
9 import 'package:analyzer/src/generated/ast.dart' show CompilationUnit; | 9 import 'package:analyzer/src/generated/ast.dart' show CompilationUnit; |
10 import 'package:analyzer/src/generated/element.dart' | 10 import 'package:analyzer/src/generated/element.dart' |
11 show CompilationUnitElement, LibraryElement; | 11 show CompilationUnitElement, LibraryElement; |
12 import 'package:path/path.dart' as path; | 12 import 'package:path/path.dart' as path; |
13 | 13 |
14 import 'package:dev_compiler/src/info.dart'; | 14 import 'package:dev_compiler/src/info.dart'; |
15 import 'package:dev_compiler/src/utils.dart' show canonicalLibraryName; | 15 import 'package:dev_compiler/src/utils.dart' show canonicalLibraryName; |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 void generateLibrary(Iterable<CompilationUnit> units, LibraryInfo info, | 137 void generateLibrary(Iterable<CompilationUnit> units, LibraryInfo info, |
138 CheckerReporter reporter) { | 138 CheckerReporter reporter) { |
139 for (var unit in units) { | 139 for (var unit in units) { |
140 var outputDir = makeOutputDirectory(info, unit); | 140 var outputDir = makeOutputDirectory(info, unit); |
141 reporter.enterSource(unit.element.source); | 141 reporter.enterSource(unit.element.source); |
142 generateUnit(unit, info, outputDir); | 142 generateUnit(unit, info, outputDir); |
143 reporter.leaveSource(); | 143 reporter.leaveSource(); |
144 } | 144 } |
145 } | 145 } |
146 } | 146 } |
OLD | NEW |