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 library dev_compiler.src.codegen.js_printer; | |
6 | |
7 import 'dart:convert' show JSON, JsonEncoder; | 5 import 'dart:convert' show JSON, JsonEncoder; |
8 import 'dart:io' show Directory, File, Platform, Process; | 6 import 'dart:io' show Directory, File, Platform, Process; |
9 | 7 |
10 import 'package:analyzer/src/generated/ast.dart'; | 8 import 'package:analyzer/src/generated/ast.dart'; |
11 import 'package:path/path.dart' as path; | 9 import 'package:path/path.dart' as path; |
12 import 'package:source_maps/source_maps.dart' as srcmaps show Printer; | 10 import 'package:source_maps/source_maps.dart' as srcmaps show Printer; |
13 import 'package:source_maps/source_maps.dart' show SourceMapSpan; | 11 import 'package:source_maps/source_maps.dart' show SourceMapSpan; |
14 import 'package:source_span/source_span.dart' show SourceLocation; | 12 import 'package:source_span/source_span.dart' show SourceLocation; |
15 | 13 |
16 import '../js/js_ast.dart' as JS; | 14 import '../js/js_ast.dart' as JS; |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 _currentTopLevelDeclaration == null; | 145 _currentTopLevelDeclaration == null; |
148 return; | 146 return; |
149 } | 147 } |
150 } | 148 } |
151 | 149 |
152 String _getIdentifier(AstNode node) { | 150 String _getIdentifier(AstNode node) { |
153 if (node is SimpleIdentifier) return node.name; | 151 if (node is SimpleIdentifier) return node.name; |
154 return null; | 152 return null; |
155 } | 153 } |
156 } | 154 } |
OLD | NEW |