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 dart2js.semantics_visitor_test; | 5 library dart2js.semantics_visitor_test; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:mirrors'; | 8 import 'dart:mirrors'; |
9 import 'package:async_helper/async_helper.dart'; | 9 import 'package:async_helper/async_helper.dart'; |
10 import 'package:expect/expect.dart'; | 10 import 'package:expect/expect.dart'; |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 // supported by the element model. | 177 // supported by the element model. |
178 VisitKind.VISIT_STATIC_METHOD_SETTER_COMPOUND, | 178 VisitKind.VISIT_STATIC_METHOD_SETTER_COMPOUND, |
179 VisitKind.VISIT_STATIC_METHOD_SETTER_PREFIX, | 179 VisitKind.VISIT_STATIC_METHOD_SETTER_PREFIX, |
180 VisitKind.VISIT_STATIC_METHOD_SETTER_POSTFIX, | 180 VisitKind.VISIT_STATIC_METHOD_SETTER_POSTFIX, |
181 VisitKind.VISIT_TOP_LEVEL_METHOD_SETTER_COMPOUND, | 181 VisitKind.VISIT_TOP_LEVEL_METHOD_SETTER_COMPOUND, |
182 VisitKind.VISIT_TOP_LEVEL_METHOD_SETTER_PREFIX, | 182 VisitKind.VISIT_TOP_LEVEL_METHOD_SETTER_PREFIX, |
183 VisitKind.VISIT_TOP_LEVEL_METHOD_SETTER_POSTFIX, | 183 VisitKind.VISIT_TOP_LEVEL_METHOD_SETTER_POSTFIX, |
184 VisitKind.VISIT_SUPER_METHOD_SETTER_COMPOUND, | 184 VisitKind.VISIT_SUPER_METHOD_SETTER_COMPOUND, |
185 VisitKind.VISIT_SUPER_METHOD_SETTER_PREFIX, | 185 VisitKind.VISIT_SUPER_METHOD_SETTER_PREFIX, |
186 VisitKind.VISIT_SUPER_METHOD_SETTER_POSTFIX, | 186 VisitKind.VISIT_SUPER_METHOD_SETTER_POSTFIX, |
187 // Invalid use of setters is currently reported through an erroneous element. | |
188 VisitKind.VISIT_STATIC_SETTER_INVOKE, | |
189 VisitKind.VISIT_STATIC_SETTER_GET, | |
190 VisitKind.VISIT_TOP_LEVEL_SETTER_GET, | |
191 VisitKind.VISIT_TOP_LEVEL_SETTER_INVOKE, | |
192 // The constant expressions of assignment to constant type literals cannot be | 187 // The constant expressions of assignment to constant type literals cannot be |
193 // handled the compile constant evaluator. | 188 // handled the compile constant evaluator. |
194 VisitKind.VISIT_CLASS_TYPE_LITERAL_SET, | 189 VisitKind.VISIT_CLASS_TYPE_LITERAL_SET, |
195 VisitKind.VISIT_TYPEDEF_TYPE_LITERAL_SET, | 190 VisitKind.VISIT_TYPEDEF_TYPE_LITERAL_SET, |
196 VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_SET, | 191 VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_SET, |
197 // Invalid assignments is currently report through an erroneous element. | 192 // Invalid assignments is currently report through an erroneous element. |
198 VisitKind.VISIT_TYPE_VARIABLE_TYPE_LITERAL_SET, | 193 VisitKind.VISIT_TYPE_VARIABLE_TYPE_LITERAL_SET, |
199 VisitKind.VISIT_FINAL_PARAMETER_SET, | 194 VisitKind.VISIT_FINAL_PARAMETER_SET, |
200 VisitKind.VISIT_FINAL_LOCAL_VARIABLE_SET, | 195 VisitKind.VISIT_FINAL_LOCAL_VARIABLE_SET, |
201 VisitKind.VISIT_LOCAL_FUNCTION_SET, | 196 VisitKind.VISIT_LOCAL_FUNCTION_SET, |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 VISIT_LOCAL_VARIABLE_POSTFIX, | 388 VISIT_LOCAL_VARIABLE_POSTFIX, |
394 VISIT_LOCAL_VARIABLE_DECL, | 389 VISIT_LOCAL_VARIABLE_DECL, |
395 VISIT_LOCAL_CONSTANT_DECL, | 390 VISIT_LOCAL_CONSTANT_DECL, |
396 VISIT_FINAL_LOCAL_VARIABLE_SET, | 391 VISIT_FINAL_LOCAL_VARIABLE_SET, |
397 VISIT_FINAL_LOCAL_VARIABLE_COMPOUND, | 392 VISIT_FINAL_LOCAL_VARIABLE_COMPOUND, |
398 VISIT_FINAL_LOCAL_VARIABLE_PREFIX, | 393 VISIT_FINAL_LOCAL_VARIABLE_PREFIX, |
399 VISIT_FINAL_LOCAL_VARIABLE_POSTFIX, | 394 VISIT_FINAL_LOCAL_VARIABLE_POSTFIX, |
400 | 395 |
401 VISIT_LOCAL_FUNCTION_GET, | 396 VISIT_LOCAL_FUNCTION_GET, |
402 VISIT_LOCAL_FUNCTION_INVOKE, | 397 VISIT_LOCAL_FUNCTION_INVOKE, |
| 398 VISIT_LOCAL_FUNCTION_INCOMPATIBLE_INVOKE, |
403 VISIT_LOCAL_FUNCTION_DECL, | 399 VISIT_LOCAL_FUNCTION_DECL, |
404 VISIT_CLOSURE_DECL, | 400 VISIT_CLOSURE_DECL, |
405 VISIT_LOCAL_FUNCTION_SET, | 401 VISIT_LOCAL_FUNCTION_SET, |
406 VISIT_LOCAL_FUNCTION_COMPOUND, | 402 VISIT_LOCAL_FUNCTION_COMPOUND, |
407 VISIT_LOCAL_FUNCTION_PREFIX, | 403 VISIT_LOCAL_FUNCTION_PREFIX, |
408 VISIT_LOCAL_FUNCTION_POSTFIX, | 404 VISIT_LOCAL_FUNCTION_POSTFIX, |
409 | 405 |
410 VISIT_STATIC_FIELD_GET, | 406 VISIT_STATIC_FIELD_GET, |
411 VISIT_STATIC_FIELD_SET, | 407 VISIT_STATIC_FIELD_SET, |
412 VISIT_STATIC_FIELD_INVOKE, | 408 VISIT_STATIC_FIELD_INVOKE, |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
699 VISIT_IF_NOT_NULL_DYNAMIC_PROPERTY_PREFIX, | 695 VISIT_IF_NOT_NULL_DYNAMIC_PROPERTY_PREFIX, |
700 VISIT_IF_NOT_NULL_DYNAMIC_PROPERTY_POSTFIX, | 696 VISIT_IF_NOT_NULL_DYNAMIC_PROPERTY_POSTFIX, |
701 | 697 |
702 ERROR_INVALID_ASSERT, | 698 ERROR_INVALID_ASSERT, |
703 ERROR_UNDEFINED_UNARY_EXPRESSION, | 699 ERROR_UNDEFINED_UNARY_EXPRESSION, |
704 ERROR_UNDEFINED_BINARY_EXPRESSION, | 700 ERROR_UNDEFINED_BINARY_EXPRESSION, |
705 | 701 |
706 VISIT_CONSTANT_GET, | 702 VISIT_CONSTANT_GET, |
707 VISIT_CONSTANT_INVOKE, | 703 VISIT_CONSTANT_INVOKE, |
708 } | 704 } |
OLD | NEW |