| 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 test.services.completion.util; | 5 library test.services.completion.util; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:analysis_server/src/protocol.dart' as protocol | 9 import 'package:analysis_server/src/protocol.dart' as protocol |
| 10 show Element, ElementKind; | 10 show Element, ElementKind; |
| (...skipping 1367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1378 assertNotSuggested('=='); | 1378 assertNotSuggested('=='); |
| 1379 // TODO (danrubel) suggest HtmlElement as low relevance | 1379 // TODO (danrubel) suggest HtmlElement as low relevance |
| 1380 assertNotSuggested('HtmlElement'); | 1380 assertNotSuggested('HtmlElement'); |
| 1381 }); | 1381 }); |
| 1382 } | 1382 } |
| 1383 | 1383 |
| 1384 test_Block_inherited_imported() { | 1384 test_Block_inherited_imported() { |
| 1385 // Block BlockFunctionBody MethodDeclaration ClassDeclaration | 1385 // Block BlockFunctionBody MethodDeclaration ClassDeclaration |
| 1386 addSource('/testB.dart', ''' | 1386 addSource('/testB.dart', ''' |
| 1387 lib B; | 1387 lib B; |
| 1388 class F { var f1; f2() { } get f3 => 0; set f4(fx) { } } | 1388 class F { var f1; f2() { } get f3 => 0; set f4(fx) { } var _pf; } |
| 1389 class E extends F { var e1; e2() { } } | 1389 class E extends F { var e1; e2() { } } |
| 1390 class I { int i1; i2() { } } | 1390 class I { int i1; i2() { } } |
| 1391 class M { var m1; int m2() { } }'''); | 1391 class M { var m1; int m2() { } }'''); |
| 1392 addTestSource(''' | 1392 addTestSource(''' |
| 1393 import "/testB.dart"; | 1393 import "/testB.dart"; |
| 1394 class A extends E implements I with M {a() {^}}'''); | 1394 class A extends E implements I with M {a() {^}}'''); |
| 1395 computeFast(); | 1395 computeFast(); |
| 1396 return computeFull((bool result) { | 1396 return computeFull((bool result) { |
| 1397 expect(request.replacementOffset, completionOffset); | 1397 expect(request.replacementOffset, completionOffset); |
| 1398 expect(request.replacementLength, 0); | 1398 expect(request.replacementLength, 0); |
| (...skipping 2310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3709 assertNotSuggested('bar2'); | 3709 assertNotSuggested('bar2'); |
| 3710 assertNotSuggested('_B'); | 3710 assertNotSuggested('_B'); |
| 3711 assertSuggestLocalClass('Y'); | 3711 assertSuggestLocalClass('Y'); |
| 3712 assertSuggestLocalClass('C'); | 3712 assertSuggestLocalClass('C'); |
| 3713 assertSuggestLocalVariable('f', null); | 3713 assertSuggestLocalVariable('f', null); |
| 3714 assertNotSuggested('x'); | 3714 assertNotSuggested('x'); |
| 3715 assertNotSuggested('e'); | 3715 assertNotSuggested('e'); |
| 3716 }); | 3716 }); |
| 3717 } | 3717 } |
| 3718 } | 3718 } |
| OLD | NEW |