| 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.dart.optype; | |
| 6 | |
| 7 import 'package:analysis_server/src/protocol_server.dart' hide Element; | 5 import 'package:analysis_server/src/protocol_server.dart' hide Element; |
| 8 import 'package:analysis_server/src/provisional/completion/dart/completion_dart.
dart'; | 6 import 'package:analysis_server/src/provisional/completion/dart/completion_dart.
dart'; |
| 9 import 'package:analysis_server/src/provisional/completion/dart/completion_targe
t.dart'; | 7 import 'package:analysis_server/src/provisional/completion/dart/completion_targe
t.dart'; |
| 10 import 'package:analyzer/dart/ast/ast.dart'; | 8 import 'package:analyzer/dart/ast/ast.dart'; |
| 11 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; | 9 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; |
| 12 import 'package:analyzer/dart/ast/token.dart'; | 10 import 'package:analyzer/dart/ast/token.dart'; |
| 13 import 'package:analyzer/dart/ast/visitor.dart'; | 11 import 'package:analyzer/dart/ast/visitor.dart'; |
| 14 import 'package:analyzer/dart/element/element.dart'; | 12 import 'package:analyzer/dart/element/element.dart'; |
| 15 import 'package:analyzer/dart/element/type.dart'; | 13 import 'package:analyzer/dart/element/type.dart'; |
| 16 import 'package:analyzer/src/dart/ast/token.dart'; | 14 import 'package:analyzer/src/dart/ast/token.dart'; |
| (...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 973 } | 971 } |
| 974 | 972 |
| 975 bool _isEntityPrevTokenSynthetic() { | 973 bool _isEntityPrevTokenSynthetic() { |
| 976 Object entity = this.entity; | 974 Object entity = this.entity; |
| 977 if (entity is AstNode && entity.beginToken.previous?.isSynthetic ?? false) { | 975 if (entity is AstNode && entity.beginToken.previous?.isSynthetic ?? false) { |
| 978 return true; | 976 return true; |
| 979 } | 977 } |
| 980 return false; | 978 return false; |
| 981 } | 979 } |
| 982 } | 980 } |
| OLD | NEW |