Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Side by Side Diff: pkg/compiler/lib/src/js_emitter/startup_emitter/model_emitter.dart

Issue 1284593003: Remove dart2jslib.dart (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 dart2js.js_emitter.startup_emitter.model_emitter; 5 library dart2js.js_emitter.startup_emitter.model_emitter;
6 6
7 import 'dart:convert' show JsonEncoder; 7 import 'dart:convert' show JsonEncoder;
8 8
9 import '../../common.dart'; 9 import '../../common.dart';
10 10
11 import '../../constants/values.dart' show ConstantValue, FunctionConstantValue; 11 import '../../constants/values.dart' show ConstantValue, FunctionConstantValue;
12 import '../../dart2jslib.dart' show Compiler; 12 import '../../compiler.dart' show Compiler;
13 import '../../elements/elements.dart' show ClassElement, FunctionElement; 13 import '../../elements/elements.dart' show ClassElement, FunctionElement;
14 import '../../hash/sha1.dart' show Hasher; 14 import '../../hash/sha1.dart' show Hasher;
15 15
16 import '../../io/code_output.dart'; 16 import '../../io/code_output.dart';
17 17
18 import '../../io/line_column_provider.dart' show 18 import '../../io/line_column_provider.dart' show
19 LineColumnCollector, 19 LineColumnCollector,
20 LineColumnProvider; 20 LineColumnProvider;
21 21
22 import '../../io/source_map_builder.dart' show 22 import '../../io/source_map_builder.dart' show
23 SourceMapBuilder; 23 SourceMapBuilder;
24 24
25 import '../../js/js.dart' as js; 25 import '../../js/js.dart' as js;
26 import '../../js_backend/js_backend.dart' show 26 import '../../js_backend/js_backend.dart' show
27 JavaScriptBackend, 27 JavaScriptBackend,
28 Namer, 28 Namer,
29 ConstantEmitter; 29 ConstantEmitter;
30 30
31 import '../../messages.dart' show MessageKind; 31 import '../../messages.dart' show
32 MessageKind;
32 33
33 import '../../util/util.dart' show 34 import '../../diagnostics/spannable.dart' show
34 NO_LOCATION_SPANNABLE; 35 NO_LOCATION_SPANNABLE;
35 36
36 import '../../util/uri_extras.dart' show 37 import '../../util/uri_extras.dart' show
37 relativize; 38 relativize;
38 39
39 import '../headers.dart'; 40 import '../headers.dart';
40 import '../js_emitter.dart' show AstContainer, NativeEmitter; 41 import '../js_emitter.dart' show AstContainer, NativeEmitter;
41 42
42 import 'package:js_runtime/shared/embedded_names.dart' show 43 import 'package:js_runtime/shared/embedded_names.dart' show
43 CLASS_FIELDS_EXTRACTOR, 44 CLASS_FIELDS_EXTRACTOR,
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 // Json does not support comments, so we embed the explanation in the 400 // Json does not support comments, so we embed the explanation in the
400 // data. 401 // data.
401 mapping["_comment"] = "This mapping shows which compiled `.js` files are " 402 mapping["_comment"] = "This mapping shows which compiled `.js` files are "
402 "needed for a given deferred library import."; 403 "needed for a given deferred library import.";
403 mapping.addAll(compiler.deferredLoadTask.computeDeferredMap()); 404 mapping.addAll(compiler.deferredLoadTask.computeDeferredMap());
404 compiler.outputProvider(compiler.deferredMapUri.path, 'deferred_map') 405 compiler.outputProvider(compiler.deferredMapUri.path, 'deferred_map')
405 ..add(const JsonEncoder.withIndent(" ").convert(mapping)) 406 ..add(const JsonEncoder.withIndent(" ").convert(mapping))
406 ..close(); 407 ..close();
407 } 408 }
408 } 409 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.dart ('k') | pkg/compiler/lib/src/library_loader.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698