| 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.local; | 5 library services.completion.contributor.dart.local; |
| 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 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 691 bool _isVoid(TypeName returnType) { | 691 bool _isVoid(TypeName returnType) { |
| 692 if (returnType != null) { | 692 if (returnType != null) { |
| 693 Identifier id = returnType.name; | 693 Identifier id = returnType.name; |
| 694 if (id != null && id.name == 'void') { | 694 if (id != null && id.name == 'void') { |
| 695 return true; | 695 return true; |
| 696 } | 696 } |
| 697 } | 697 } |
| 698 return false; | 698 return false; |
| 699 } | 699 } |
| 700 } | 700 } |
| OLD | NEW |