| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |