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

Side by Side Diff: pkg/compiler/lib/src/dump_info.dart

Issue 1286143003: Move diagnostic_listener.dart and messages.dart to the diagnostics folder (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 10 import 'common/tasks.dart' show
11 CompilerTask; 11 CompilerTask;
12 import 'compiler.dart' show 12 import 'compiler.dart' show
13 Compiler; 13 Compiler;
14 import 'diagnostics/messages.dart' show
15 MessageKind;
14 import 'diagnostics/spannable.dart' show 16 import 'diagnostics/spannable.dart' show
15 NO_LOCATION_SPANNABLE; 17 NO_LOCATION_SPANNABLE;
16 import 'elements/elements.dart'; 18 import 'elements/elements.dart';
17 import 'elements/visitor.dart'; 19 import 'elements/visitor.dart';
18 import 'types/types.dart' show 20 import 'types/types.dart' show
19 TypeMask; 21 TypeMask;
20 import 'deferred_load.dart' show 22 import 'deferred_load.dart' show
21 OutputUnit; 23 OutputUnit;
22 import 'info/info.dart'; 24 import 'info/info.dart';
23 import 'js_backend/js_backend.dart' show 25 import 'js_backend/js_backend.dart' show
24 JavaScriptBackend; 26 JavaScriptBackend;
25 import 'js_emitter/full_emitter/emitter.dart' as full show 27 import 'js_emitter/full_emitter/emitter.dart' as full show
26 Emitter; 28 Emitter;
27 import 'js/js.dart' as jsAst; 29 import 'js/js.dart' as jsAst;
28 import 'messages.dart' show
29 MessageKind;
30 import 'universe/universe.dart' show 30 import 'universe/universe.dart' show
31 Selector, 31 Selector,
32 UniverseSelector; 32 UniverseSelector;
33 33
34 class ElementInfoCollector extends BaseElementVisitor<Info, dynamic> { 34 class ElementInfoCollector extends BaseElementVisitor<Info, dynamic> {
35 final Compiler compiler; 35 final Compiler compiler;
36 36
37 final AllInfo result = new AllInfo(); 37 final AllInfo result = new AllInfo();
38 final Map<Element, Info> _elementToInfo = <Element, Info>{}; 38 final Map<Element, Info> _elementToInfo = <Element, Info>{};
39 final Map<OutputUnit, OutputUnitInfo> _outputToInfo = {}; 39 final Map<OutputUnit, OutputUnitInfo> _outputToInfo = {};
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 532
533 ChunkedConversionSink<Object> sink = encoder.startChunkedConversion( 533 ChunkedConversionSink<Object> sink = encoder.startChunkedConversion(
534 new StringConversionSink.fromStringSink(buffer)); 534 new StringConversionSink.fromStringSink(buffer));
535 sink.add(result.toJson()); 535 sink.add(result.toJson());
536 compiler.reportInfo(NO_LOCATION_SPANNABLE, MessageKind.GENERIC, { 536 compiler.reportInfo(NO_LOCATION_SPANNABLE, MessageKind.GENERIC, {
537 'text': "View the dumped .info.json file at " 537 'text': "View the dumped .info.json file at "
538 "https://dart-lang.github.io/dump-info-visualizer" 538 "https://dart-lang.github.io/dump-info-visualizer"
539 }); 539 });
540 } 540 }
541 } 541 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/diagnostics/messages.dart ('k') | pkg/compiler/lib/src/elements/elements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698