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

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

Issue 1173403002: dart2js: Fix hints in code base. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Updated to latest revision Created 5 years, 6 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 js; 5 library js;
6 6
7 import 'package:js_ast/js_ast.dart'; 7 import 'package:js_ast/js_ast.dart';
8 export 'package:js_ast/js_ast.dart'; 8 export 'package:js_ast/js_ast.dart';
9 9
10 import '../helpers/helpers.dart';
11 import '../io/code_output.dart' show CodeBuffer; 10 import '../io/code_output.dart' show CodeBuffer;
12 import '../io/source_information.dart' show SourceInformation; 11 import '../io/source_information.dart' show SourceInformation;
13 import '../js_emitter/js_emitter.dart' show USE_NEW_EMITTER; 12 import '../js_emitter/js_emitter.dart' show USE_NEW_EMITTER;
14 import '../dart2jslib.dart' as leg; 13 import '../dart2jslib.dart' as leg;
15 import '../util/util.dart' show NO_LOCATION_SPANNABLE; 14 import '../util/util.dart' show NO_LOCATION_SPANNABLE;
16 import '../dump_info.dart' show DumpInfoTask; 15 import '../dump_info.dart' show DumpInfoTask;
17 16
18 CodeBuffer prettyPrint(Node node, leg.Compiler compiler, 17 CodeBuffer prettyPrint(Node node, leg.Compiler compiler,
19 {DumpInfoTask monitor, 18 {DumpInfoTask monitor,
20 bool allowVariableMinification: true}) { 19 bool allowVariableMinification: true}) {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 if (rootNode == node) { 78 if (rootNode == node) {
80 outBuffer.addSourceLocation(endPosition, null); 79 outBuffer.addSourceLocation(endPosition, null);
81 rootNode = null; 80 rootNode = null;
82 } 81 }
83 } 82 }
84 if (monitor != null) { 83 if (monitor != null) {
85 monitor.recordAstSize(node, endPosition - startPosition); 84 monitor.recordAstSize(node, endPosition - startPosition);
86 } 85 }
87 } 86 }
88 } 87 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698