| 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.arglist; | |
| 6 | |
| 7 import 'dart:async'; | 5 import 'dart:async'; |
| 8 | 6 |
| 9 import 'package:analysis_server/src/protocol_server.dart' | 7 import 'package:analysis_server/src/protocol_server.dart' |
| 10 hide Element, ElementKind; | 8 hide Element, ElementKind; |
| 11 import 'package:analysis_server/src/provisional/completion/dart/completion_dart.
dart'; | 9 import 'package:analysis_server/src/provisional/completion/dart/completion_dart.
dart'; |
| 12 import 'package:analysis_server/src/services/completion/dart/utilities.dart'; | 10 import 'package:analysis_server/src/services/completion/dart/utilities.dart'; |
| 13 import 'package:analysis_server/src/services/correction/flutter_util.dart'; | 11 import 'package:analysis_server/src/services/correction/flutter_util.dart'; |
| 14 import 'package:analysis_server/src/utilities/documentation.dart'; | 12 import 'package:analysis_server/src/utilities/documentation.dart'; |
| 15 import 'package:analyzer/dart/ast/ast.dart'; | 13 import 'package:analyzer/dart/ast/ast.dart'; |
| 16 import 'package:analyzer/dart/ast/token.dart'; | 14 import 'package:analyzer/dart/ast/token.dart'; |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 */ | 326 */ |
| 329 static void _setDocumentation( | 327 static void _setDocumentation( |
| 330 CompletionSuggestion suggestion, String comment) { | 328 CompletionSuggestion suggestion, String comment) { |
| 331 if (comment != null) { | 329 if (comment != null) { |
| 332 String doc = removeDartDocDelimiters(comment); | 330 String doc = removeDartDocDelimiters(comment); |
| 333 suggestion.docComplete = doc; | 331 suggestion.docComplete = doc; |
| 334 suggestion.docSummary = getDartDocSummary(doc); | 332 suggestion.docSummary = getDartDocSummary(doc); |
| 335 } | 333 } |
| 336 } | 334 } |
| 337 } | 335 } |
| OLD | NEW |