| 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 services.completion.computer.dart.local; | 5 library services.completion.computer.dart.local; |
| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 } | 78 } |
| 79 }); | 79 }); |
| 80 } | 80 } |
| 81 } | 81 } |
| 82 } | 82 } |
| 83 }); | 83 }); |
| 84 visitNode(node); | 84 visitNode(node); |
| 85 } | 85 } |
| 86 | 86 |
| 87 @override | 87 @override |
| 88 Future<bool> visitCombinator(Combinator node) { |
| 89 // Handled by ImportedComputer |
| 90 } |
| 91 |
| 92 @override |
| 88 visitCascadeExpression(CascadeExpression node) { | 93 visitCascadeExpression(CascadeExpression node) { |
| 89 Expression target = node.target; | 94 Expression target = node.target; |
| 90 // This computer handles the expression | 95 // This computer handles the expression |
| 91 // while InvocationComputer handles the cascade selector | 96 // while InvocationComputer handles the cascade selector |
| 92 if (target != null && request.offset <= target.end) { | 97 if (target != null && request.offset <= target.end) { |
| 93 visitNode(node); | 98 visitNode(node); |
| 94 } | 99 } |
| 95 } | 100 } |
| 96 | 101 |
| 97 @override | 102 @override |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 if (name == null || name.length <= 0) { | 476 if (name == null || name.length <= 0) { |
| 472 return DYNAMIC; | 477 return DYNAMIC; |
| 473 } | 478 } |
| 474 TypeArgumentList typeArgs = type.typeArguments; | 479 TypeArgumentList typeArgs = type.typeArguments; |
| 475 if (typeArgs != null) { | 480 if (typeArgs != null) { |
| 476 //TODO (danrubel) include type arguments | 481 //TODO (danrubel) include type arguments |
| 477 } | 482 } |
| 478 return name; | 483 return name; |
| 479 } | 484 } |
| 480 } | 485 } |
| OLD | NEW |