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

Side by Side Diff: pkg/compiler/lib/src/dump_info.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 dump_info; 5 library dump_info;
6 6
7 import 'dart:convert' 7 import 'dart:convert'
8 show HtmlEscape, JsonEncoder, StringConversionSink, ChunkedConversionSink; 8 show HtmlEscape, JsonEncoder, StringConversionSink, ChunkedConversionSink;
9 9
10 import 'common/tasks.dart' show
11 CompilerTask;
12 import 'compiler.dart' show
13 Compiler;
14 import 'diagnostics/spannable.dart' show
15 NO_LOCATION_SPANNABLE;
10 import 'elements/elements.dart'; 16 import 'elements/elements.dart';
11 import 'elements/visitor.dart'; 17 import 'elements/visitor.dart';
12 import 'dart2jslib.dart' show 18 import 'types/types.dart' show
13 Backend, 19 TypeMask;
14 CodeBuffer, 20 import 'deferred_load.dart' show
15 Compiler, 21 OutputUnit;
16 CompilerTask;
17 import 'types/types.dart' show TypeMask;
18 import 'deferred_load.dart' show OutputUnit;
19 import 'info/info.dart'; 22 import 'info/info.dart';
20 import 'js_backend/js_backend.dart' show JavaScriptBackend; 23 import 'js_backend/js_backend.dart' show
21 import 'js_emitter/full_emitter/emitter.dart' as full show Emitter; 24 JavaScriptBackend;
25 import 'js_emitter/full_emitter/emitter.dart' as full show
26 Emitter;
22 import 'js/js.dart' as jsAst; 27 import 'js/js.dart' as jsAst;
23 import 'messages.dart' show MessageKind; 28 import 'messages.dart' show
24 import 'universe/universe.dart' show Selector, UniverseSelector; 29 MessageKind;
25 import 'util/util.dart' show NO_LOCATION_SPANNABLE; 30 import 'universe/universe.dart' show
31 Selector,
32 UniverseSelector;
26 33
27 class ElementInfoCollector extends BaseElementVisitor<Info, dynamic> { 34 class ElementInfoCollector extends BaseElementVisitor<Info, dynamic> {
28 final Compiler compiler; 35 final Compiler compiler;
29 36
30 final AllInfo result = new AllInfo(); 37 final AllInfo result = new AllInfo();
31 final Map<Element, Info> _elementToInfo = <Element, Info>{}; 38 final Map<Element, Info> _elementToInfo = <Element, Info>{};
32 final Map<OutputUnit, OutputUnitInfo> _outputToInfo = {}; 39 final Map<OutputUnit, OutputUnitInfo> _outputToInfo = {};
33 40
34 ElementInfoCollector(this.compiler); 41 ElementInfoCollector(this.compiler);
35 42
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 510
504 ChunkedConversionSink<Object> sink = encoder.startChunkedConversion( 511 ChunkedConversionSink<Object> sink = encoder.startChunkedConversion(
505 new StringConversionSink.fromStringSink(buffer)); 512 new StringConversionSink.fromStringSink(buffer));
506 sink.add(result.toJson()); 513 sink.add(result.toJson());
507 compiler.reportInfo(NO_LOCATION_SPANNABLE, MessageKind.GENERIC, { 514 compiler.reportInfo(NO_LOCATION_SPANNABLE, MessageKind.GENERIC, {
508 'text': "View the dumped .info.json file at " 515 'text': "View the dumped .info.json file at "
509 "https://dart-lang.github.io/dump-info-visualizer" 516 "https://dart-lang.github.io/dump-info-visualizer"
510 }); 517 });
511 } 518 }
512 } 519 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/diagnostics/spannable.dart ('k') | pkg/compiler/lib/src/elements/common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698