| 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.contributor.dart.keyword; | 5 library services.completion.contributor.dart.keyword; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:analysis_server/src/protocol.dart'; | 9 import 'package:analysis_server/src/protocol.dart'; |
| 10 import 'package:analysis_server/src/services/completion/dart_completion_manager.
dart'; | 10 import 'package:analysis_server/src/services/completion/dart_completion_manager.
dart'; |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 return false; | 163 return false; |
| 164 } | 164 } |
| 165 AstNode parent = body.parent; | 165 AstNode parent = body.parent; |
| 166 if (parent is ConstructorDeclaration || parent is MethodDeclaration) { | 166 if (parent is ConstructorDeclaration || parent is MethodDeclaration) { |
| 167 return true; | 167 return true; |
| 168 } | 168 } |
| 169 node = parent; | 169 node = parent; |
| 170 } | 170 } |
| 171 } | 171 } |
| 172 } | 172 } |
| OLD | NEW |