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 ddc.src.codegen.js_codegen; | 5 library dev_compiler.src.codegen.js_codegen; |
6 | 6 |
7 import 'dart:collection' show HashSet; | 7 import 'dart:collection' show HashSet; |
8 import 'dart:io' show Directory, File; | 8 import 'dart:io' show Directory, File; |
9 | 9 |
10 import 'package:analyzer/analyzer.dart' hide ConstantEvaluator; | 10 import 'package:analyzer/analyzer.dart' hide ConstantEvaluator; |
11 import 'package:analyzer/src/generated/ast.dart' hide ConstantEvaluator; | 11 import 'package:analyzer/src/generated/ast.dart' hide ConstantEvaluator; |
12 import 'package:analyzer/src/generated/constant.dart'; | 12 import 'package:analyzer/src/generated/constant.dart'; |
13 import 'package:analyzer/src/generated/element.dart'; | 13 import 'package:analyzer/src/generated/element.dart'; |
14 import 'package:analyzer/src/generated/scanner.dart' | 14 import 'package:analyzer/src/generated/scanner.dart' |
15 show StringToken, Token, TokenType; | 15 show StringToken, Token, TokenType; |
(...skipping 1947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1963 | 1963 |
1964 // TODO(jmesserly): in many cases marking the end will be unncessary. | 1964 // TODO(jmesserly): in many cases marking the end will be unncessary. |
1965 printer.mark(_location(node.end)); | 1965 printer.mark(_location(node.end)); |
1966 } | 1966 } |
1967 | 1967 |
1968 String _getIdentifier(AstNode node) { | 1968 String _getIdentifier(AstNode node) { |
1969 if (node is SimpleIdentifier) return node.name; | 1969 if (node is SimpleIdentifier) return node.name; |
1970 return null; | 1970 return null; |
1971 } | 1971 } |
1972 } | 1972 } |
OLD | NEW |