| 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 show Element, | 9 import 'package:analysis_server/src/protocol.dart' as protocol show Element, |
| 10 ElementKind; | 10 ElementKind; |
| (...skipping 1381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1392 assertNotSuggested('m'); | 1392 assertNotSuggested('m'); |
| 1393 assertNotSuggested('_n'); | 1393 assertNotSuggested('_n'); |
| 1394 assertNotSuggested('a'); | 1394 assertNotSuggested('a'); |
| 1395 assertNotSuggested('A'); | 1395 assertNotSuggested('A'); |
| 1396 assertNotSuggested('X'); | 1396 assertNotSuggested('X'); |
| 1397 assertNotSuggested('Object'); | 1397 assertNotSuggested('Object'); |
| 1398 assertNotSuggested('=='); | 1398 assertNotSuggested('=='); |
| 1399 }); | 1399 }); |
| 1400 } | 1400 } |
| 1401 | 1401 |
| 1402 test_PrefixedIdentifier_propertyAccess() { |
| 1403 // PrefixedIdentifier ExpressionStatement Block BlockFunctionBody |
| 1404 addTestSource('class A {String x; int get foo {x.^}'); |
| 1405 computeFast(); |
| 1406 return computeFull(true).then((_) { |
| 1407 assertSuggestInvocationGetter('isEmpty', 'bool'); |
| 1408 assertSuggestInvocationMethod('compareTo', 'Comparable', 'int'); |
| 1409 }); |
| 1410 } |
| 1411 |
| 1402 test_PrefixedIdentifier_class_imported() { | 1412 test_PrefixedIdentifier_class_imported() { |
| 1403 // SimpleIdentifier PrefixedIdentifier ExpressionStatement | 1413 // SimpleIdentifier PrefixedIdentifier ExpressionStatement |
| 1404 addSource('/testB.dart', ''' | 1414 addSource('/testB.dart', ''' |
| 1405 lib B; | 1415 lib B; |
| 1406 class I {X get f => new A();get _g => new A();} | 1416 class I {X get f => new A();get _g => new A();} |
| 1407 class A implements I { | 1417 class A implements I { |
| 1408 var b; X _c; | 1418 var b; X _c; |
| 1409 X get d => new A();get _e => new A(); | 1419 X get d => new A();get _e => new A(); |
| 1410 set s1(I x) {} set _s2(I x) {} | 1420 set s1(I x) {} set _s2(I x) {} |
| 1411 m(X x) {} I _n(X x) {}} | 1421 m(X x) {} I _n(X x) {}} |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1637 assertNotSuggested('bar2'); | 1647 assertNotSuggested('bar2'); |
| 1638 assertNotSuggested('_B'); | 1648 assertNotSuggested('_B'); |
| 1639 assertSuggestLocalClass('Y'); | 1649 assertSuggestLocalClass('Y'); |
| 1640 assertSuggestLocalClass('C'); | 1650 assertSuggestLocalClass('C'); |
| 1641 assertSuggestLocalVariable('f', null); | 1651 assertSuggestLocalVariable('f', null); |
| 1642 assertNotSuggested('x'); | 1652 assertNotSuggested('x'); |
| 1643 assertNotSuggested('e'); | 1653 assertNotSuggested('e'); |
| 1644 }); | 1654 }); |
| 1645 } | 1655 } |
| 1646 } | 1656 } |
| OLD | NEW |