| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 engine.compile_time_error_code_test; | 5 library engine.compile_time_error_code_test; |
| 6 | 6 |
| 7 import 'package:analyzer/src/generated/engine.dart'; | |
| 8 import 'package:analyzer/src/generated/error.dart'; | 7 import 'package:analyzer/src/generated/error.dart'; |
| 9 import 'package:analyzer/src/generated/parser.dart' show ParserErrorCode; | 8 import 'package:analyzer/src/generated/parser.dart' show ParserErrorCode; |
| 10 import 'package:analyzer/src/generated/source_io.dart'; | 9 import 'package:analyzer/src/generated/source_io.dart'; |
| 11 import 'package:unittest/unittest.dart' as _ut; | 10 import 'package:unittest/unittest.dart' as _ut; |
| 12 | 11 |
| 13 import '../reflective_tests.dart'; | 12 import '../reflective_tests.dart'; |
| 14 import 'resolver_test.dart'; | 13 import 'resolver_test.dart'; |
| 15 | 14 |
| 16 main() { | 15 main() { |
| 17 _ut.groupSep = ' | '; | 16 _ut.groupSep = ' | '; |
| (...skipping 6104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6122 source, [CompileTimeErrorCode.WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR]); | 6121 source, [CompileTimeErrorCode.WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR]); |
| 6123 verify([source]); | 6122 verify([source]); |
| 6124 reset(); | 6123 reset(); |
| 6125 } | 6124 } |
| 6126 | 6125 |
| 6127 void _check_wrongNumberOfParametersForOperator1(String name) { | 6126 void _check_wrongNumberOfParametersForOperator1(String name) { |
| 6128 _check_wrongNumberOfParametersForOperator(name, ""); | 6127 _check_wrongNumberOfParametersForOperator(name, ""); |
| 6129 _check_wrongNumberOfParametersForOperator(name, "a, b"); | 6128 _check_wrongNumberOfParametersForOperator(name, "a, b"); |
| 6130 } | 6129 } |
| 6131 } | 6130 } |
| OLD | NEW |