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 dart2js_incremental.library_updater; | 5 library dart2js_incremental.library_updater; |
6 | 6 |
7 import 'dart:async' show | 7 import 'dart:async' show |
8 Future; | 8 Future; |
9 | 9 |
10 import 'dart:convert' show | 10 import 'dart:convert' show |
11 UTF8; | 11 UTF8; |
12 | 12 |
13 import 'package:compiler/compiler.dart' as api; | 13 import 'package:compiler/compiler.dart' as api; |
14 | 14 |
15 import 'package:compiler/src/dart2jslib.dart' show | 15 import 'package:compiler/implementation/dart2jslib.dart' show |
16 Compiler, | 16 Compiler, |
17 Script; | 17 Script; |
18 | 18 |
19 import 'package:compiler/src/elements/elements.dart' show | 19 import 'package:compiler/implementation/elements/elements.dart' show |
20 Element, | 20 Element, |
21 FunctionElement, | 21 FunctionElement, |
22 LibraryElement, | 22 LibraryElement, |
23 ScopeContainerElement; | 23 ScopeContainerElement; |
24 | 24 |
25 import 'package:compiler/src/scanner/scannerlib.dart' show | 25 import 'package:compiler/implementation/scanner/scannerlib.dart' show |
26 EOF_TOKEN, | 26 EOF_TOKEN, |
27 PartialClassElement, | 27 PartialClassElement, |
28 PartialElement, | 28 PartialElement, |
29 PartialFunctionElement, | 29 PartialFunctionElement, |
30 Token; | 30 Token; |
31 | 31 |
32 import 'package:compiler/src/source_file.dart' show | 32 import 'package:compiler/implementation/source_file.dart' show |
33 StringSourceFile; | 33 StringSourceFile; |
34 | 34 |
35 import 'package:compiler/src/tree/tree.dart' show | 35 import 'package:compiler/implementation/tree/tree.dart' show |
36 ClassNode, | 36 ClassNode, |
37 FunctionExpression, | 37 FunctionExpression, |
38 NodeList; | 38 NodeList; |
39 | 39 |
40 import 'package:compiler/src/js/js.dart' show | 40 import 'package:compiler/implementation/js/js.dart' show |
41 js; | 41 js; |
42 | 42 |
43 import 'package:compiler/src/js/js.dart' as jsAst; | 43 import 'package:compiler/implementation/js/js.dart' as jsAst; |
44 | 44 |
45 import 'package:compiler/src/js_emitter/js_emitter.dart' show | 45 import 'package:compiler/implementation/js_emitter/js_emitter.dart' show |
46 CodeEmitterTask, | 46 CodeEmitterTask, |
47 MemberInfo; | 47 MemberInfo; |
48 | 48 |
49 import 'package:_internal/compiler/js_lib/shared/embedded_names.dart' | 49 import 'package:compiler/js_lib/shared/embedded_names.dart' as embeddedNames; |
50 as embeddedNames; | |
51 | 50 |
52 import 'package:compiler/src/js_backend/js_backend.dart' show | 51 import 'package:compiler/implementation/js_backend/js_backend.dart' show |
53 JavaScriptBackend, | 52 JavaScriptBackend, |
54 Namer; | 53 Namer; |
55 | 54 |
56 import 'diff.dart' show | 55 import 'diff.dart' show |
57 Difference, | 56 Difference, |
58 computeDifference; | 57 computeDifference; |
59 | 58 |
60 typedef void Logger(message); | 59 typedef void Logger(message); |
61 | 60 |
62 typedef bool Reuser( | 61 typedef bool Reuser( |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 before.getOrSet = after.getOrSet; | 384 before.getOrSet = after.getOrSet; |
386 } | 385 } |
387 | 386 |
388 /// Reset various caches and remove this element from the compiler's internal | 387 /// Reset various caches and remove this element from the compiler's internal |
389 /// state. | 388 /// state. |
390 void reuseElement() { | 389 void reuseElement() { |
391 compiler.forgetElement(before); | 390 compiler.forgetElement(before); |
392 before.reuseElement(); | 391 before.reuseElement(); |
393 } | 392 } |
394 } | 393 } |
OLD | NEW |