| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 analyzer.test.generated.hint_code_test; | 5 library analyzer.test.generated.hint_code_test; |
| 6 | 6 |
| 7 import 'package:analyzer/error/error.dart'; | 7 import 'package:analyzer/error/error.dart'; |
| 8 import 'package:analyzer/src/error/codes.dart'; | 8 import 'package:analyzer/src/error/codes.dart'; |
| 9 import 'package:analyzer/src/generated/engine.dart'; | 9 import 'package:analyzer/src/generated/engine.dart'; |
| 10 import 'package:analyzer/src/generated/parser.dart'; | 10 import 'package:analyzer/src/generated/parser.dart'; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 final String reason; | 55 final String reason; |
| 56 const _Required([this.reason])); | 56 const _Required([this.reason])); |
| 57 } | 57 } |
| 58 ''', | 58 ''', |
| 59 'package:js/js.dart': r''' | 59 'package:js/js.dart': r''' |
| 60 library js; | 60 library js; |
| 61 class JS { | 61 class JS { |
| 62 const JS([String js]) { } | 62 const JS([String js]) { } |
| 63 } | 63 } |
| 64 ''' | 64 ''' |
| 65 }); | 65 }, resourceProvider: resourceProvider); |
| 66 } | 66 } |
| 67 | 67 |
| 68 void test_abstractSuperMemberReference_getter() { | 68 void test_abstractSuperMemberReference_getter() { |
| 69 Source source = addSource(r''' | 69 Source source = addSource(r''' |
| 70 abstract class A { | 70 abstract class A { |
| 71 int get test; | 71 int get test; |
| 72 } | 72 } |
| 73 class B extends A { | 73 class B extends A { |
| 74 int get test { | 74 int get test { |
| 75 super.test; | 75 super.test; |
| (...skipping 3936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4012 n() { | 4012 n() { |
| 4013 var a = m(), b = m(); | 4013 var a = m(), b = m(); |
| 4014 } | 4014 } |
| 4015 }'''); | 4015 }'''); |
| 4016 computeLibrarySourceErrors(source); | 4016 computeLibrarySourceErrors(source); |
| 4017 assertErrors( | 4017 assertErrors( |
| 4018 source, [HintCode.USE_OF_VOID_RESULT, HintCode.USE_OF_VOID_RESULT]); | 4018 source, [HintCode.USE_OF_VOID_RESULT, HintCode.USE_OF_VOID_RESULT]); |
| 4019 verify([source]); | 4019 verify([source]); |
| 4020 } | 4020 } |
| 4021 } | 4021 } |
| OLD | NEW |