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 fletchc_incremental.reuser; | 5 library dartino_compiler_incremental.reuser; |
6 | 6 |
7 import 'dart:async' show | 7 import 'dart:async' show |
8 Future; | 8 Future; |
9 | 9 |
10 import 'package:compiler/compiler.dart' as api; | 10 import 'package:compiler/compiler.dart' as api; |
11 | 11 |
12 import 'package:compiler/src/compiler.dart' show | 12 import 'package:compiler/src/compiler.dart' show |
13 Compiler; | 13 Compiler; |
14 | 14 |
15 import 'package:compiler/src/diagnostics/messages.dart' show | 15 import 'package:compiler/src/diagnostics/messages.dart' show |
(...skipping 64 matching lines...) Loading... |
80 import 'package:compiler/src/library_loader.dart' show | 80 import 'package:compiler/src/library_loader.dart' show |
81 TagState; | 81 TagState; |
82 | 82 |
83 import '../incremental_backend.dart' show | 83 import '../incremental_backend.dart' show |
84 IncrementalBackend; | 84 IncrementalBackend; |
85 | 85 |
86 import 'diff.dart' show | 86 import 'diff.dart' show |
87 Difference, | 87 Difference, |
88 computeDifference; | 88 computeDifference; |
89 | 89 |
90 import 'fletchc_incremental.dart' show | 90 import 'dartino_compiler_incremental.dart' show |
91 IncrementalCompilationFailed; | 91 IncrementalCompilationFailed; |
92 | 92 |
93 typedef void Logger(message); | 93 typedef void Logger(message); |
94 | 94 |
95 typedef bool ReuseFunction( | 95 typedef bool ReuseFunction( |
96 Token diffToken, | 96 Token diffToken, |
97 PartialElement before, | 97 PartialElement before, |
98 PartialElement after); | 98 PartialElement after); |
99 | 99 |
100 class FailedUpdate { | 100 class FailedUpdate { |
(...skipping 1075 matching lines...) Loading... |
1176 // name of [element]. | 1176 // name of [element]. |
1177 if (names.contains("${container.name}.${element.name}")) return true; | 1177 if (names.contains("${container.name}.${element.name}")) return true; |
1178 } | 1178 } |
1179 // TODO(ahe): Check for prefixes as well. | 1179 // TODO(ahe): Check for prefixes as well. |
1180 return false; | 1180 return false; |
1181 } | 1181 } |
1182 | 1182 |
1183 DeclarationSite declarationSite(Element element) { | 1183 DeclarationSite declarationSite(Element element) { |
1184 return element is ElementX ? element.declarationSite : null; | 1184 return element is ElementX ? element.declarationSite : null; |
1185 } | 1185 } |
OLD | NEW |