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

Side by Side Diff: lib/src/codegen/js_printer.dart

Issue 1797063002: Resolve obvious deprecation warnings on bleeding edge (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Add test Created 4 years, 9 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
« no previous file with comments | « lib/src/codegen/js_module_item_order.dart ('k') | lib/src/codegen/js_typeref_codegen.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 import 'dart:convert' show JSON, JsonEncoder; 5 import 'dart:convert' show JSON, JsonEncoder;
6 import 'dart:io' show Directory, File, Platform, Process; 6 import 'dart:io' show Directory, File, Platform, Process;
7 7
8 import 'package:analyzer/src/generated/ast.dart'; 8 import 'package:analyzer/dart/ast/ast.dart';
9 import 'package:path/path.dart' as path; 9 import 'package:path/path.dart' as path;
10 import 'package:source_maps/source_maps.dart' as srcmaps show Printer; 10 import 'package:source_maps/source_maps.dart' as srcmaps show Printer;
11 import 'package:source_maps/source_maps.dart' show SourceMapSpan; 11 import 'package:source_maps/source_maps.dart' show SourceMapSpan;
12 import 'package:source_span/source_span.dart' show SourceLocation; 12 import 'package:source_span/source_span.dart' show SourceLocation;
13 13
14 import '../js/js_ast.dart' as JS; 14 import '../js/js_ast.dart' as JS;
15 import '../utils.dart' show FileSystem, computeHash, locationForOffset; 15 import '../utils.dart' show FileSystem, computeHash, locationForOffset;
16 16
17 import 'js_names.dart' show TemporaryNamer; 17 import 'js_names.dart' show TemporaryNamer;
18 18
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 _currentTopLevelDeclaration == null; 148 _currentTopLevelDeclaration == null;
149 return; 149 return;
150 } 150 }
151 } 151 }
152 152
153 String _getIdentifier(AstNode node) { 153 String _getIdentifier(AstNode node) {
154 if (node is SimpleIdentifier) return node.name; 154 if (node is SimpleIdentifier) return node.name;
155 return null; 155 return null;
156 } 156 }
157 } 157 }
OLDNEW
« no previous file with comments | « lib/src/codegen/js_module_item_order.dart ('k') | lib/src/codegen/js_typeref_codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698