| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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.static_member; | |
| 6 | |
| 7 import 'dart:async'; | 5 import 'dart:async'; |
| 8 | 6 |
| 9 import 'package:analysis_server/src/ide_options.dart'; | 7 import 'package:analysis_server/src/ide_options.dart'; |
| 10 import 'package:analysis_server/src/provisional/completion/dart/completion_dart.
dart'; | 8 import 'package:analysis_server/src/provisional/completion/dart/completion_dart.
dart'; |
| 11 import 'package:analysis_server/src/services/completion/dart/suggestion_builder.
dart'; | 9 import 'package:analysis_server/src/services/completion/dart/suggestion_builder.
dart'; |
| 12 import 'package:analyzer/dart/ast/ast.dart'; | 10 import 'package:analyzer/dart/ast/ast.dart'; |
| 13 import 'package:analyzer/dart/element/element.dart'; | 11 import 'package:analyzer/dart/element/element.dart'; |
| 14 import 'package:analyzer/dart/element/visitor.dart'; | 12 import 'package:analyzer/dart/element/visitor.dart'; |
| 15 | 13 |
| 16 import '../../../protocol_server.dart' show CompletionSuggestion; | 14 import '../../../protocol_server.dart' show CompletionSuggestion; |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 bool _isSpecialEnumField(FieldElement element) { | 129 bool _isSpecialEnumField(FieldElement element) { |
| 132 Element parent = element.enclosingElement; | 130 Element parent = element.enclosingElement; |
| 133 if (parent is ClassElement && parent.isEnum) { | 131 if (parent is ClassElement && parent.isEnum) { |
| 134 if (element.name == 'values') { | 132 if (element.name == 'values') { |
| 135 return true; | 133 return true; |
| 136 } | 134 } |
| 137 } | 135 } |
| 138 return false; | 136 return false; |
| 139 } | 137 } |
| 140 } | 138 } |
| OLD | NEW |