OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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('ssa'); | 5 #library('ssa'); |
6 | 6 |
7 #import('../closure.dart'); | 7 #import('../closure.dart'); |
8 #import('../js/js.dart', prefix: 'js'); | 8 #import('../js/js.dart', prefix: 'js'); |
9 #import('../leg.dart'); | 9 #import('../leg.dart'); |
10 #import('../source_file.dart'); | 10 #import('../source_file.dart'); |
(...skipping 13 matching lines...) Expand all Loading... |
24 #source('js_names.dart'); | 24 #source('js_names.dart'); |
25 #source('nodes.dart'); | 25 #source('nodes.dart'); |
26 #source('optimize.dart'); | 26 #source('optimize.dart'); |
27 #source('types.dart'); | 27 #source('types.dart'); |
28 #source('types_propagation.dart'); | 28 #source('types_propagation.dart'); |
29 #source('validate.dart'); | 29 #source('validate.dart'); |
30 #source('variable_allocator.dart'); | 30 #source('variable_allocator.dart'); |
31 #source('value_set.dart'); | 31 #source('value_set.dart'); |
32 | 32 |
33 class RuntimeTypeInformation { | 33 class RuntimeTypeInformation { |
34 bool hasTypeArguments(Type type) { | 34 bool hasTypeArguments(DartType type) { |
35 if (type is InterfaceType) { | 35 if (type is InterfaceType) { |
36 InterfaceType interfaceType = type; | 36 InterfaceType interfaceType = type; |
37 return !interfaceType.arguments.isEmpty(); | 37 return !interfaceType.arguments.isEmpty(); |
38 } | 38 } |
39 return false; | 39 return false; |
40 } | 40 } |
41 } | 41 } |
OLD | NEW |