| 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 analyzer.src.generated.utilities_dart; | 5 library analyzer.src.generated.utilities_dart; |
| 6 | 6 |
| 7 import 'package:analyzer/dart/ast/ast.dart' show AnnotatedNode, Comment; | 7 import 'package:analyzer/dart/ast/ast.dart' show AnnotatedNode, Comment; |
| 8 import 'package:analyzer/dart/ast/token.dart' show Token; | 8 import 'package:analyzer/dart/ast/token.dart' show Token; |
| 9 import 'package:analyzer/src/generated/element.dart' show ElementImpl; | 9 import 'package:analyzer/src/dart/element/element.dart' show ElementImpl; |
| 10 import 'package:analyzer/src/generated/java_core.dart'; | 10 import 'package:analyzer/src/generated/java_core.dart'; |
| 11 | 11 |
| 12 /** | 12 /** |
| 13 * If the given [node] has a documentation comment, remember its content | 13 * If the given [node] has a documentation comment, remember its content |
| 14 * and range into the given [element]. | 14 * and range into the given [element]. |
| 15 */ | 15 */ |
| 16 void setElementDocumentationComment(ElementImpl element, AnnotatedNode node) { | 16 void setElementDocumentationComment(ElementImpl element, AnnotatedNode node) { |
| 17 Comment comment = node.documentationComment; | 17 Comment comment = node.documentationComment; |
| 18 if (comment != null && comment.isDocumentation) { | 18 if (comment != null && comment.isDocumentation) { |
| 19 element.documentationComment = | 19 element.documentationComment = |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 final bool isOptional; | 72 final bool isOptional; |
| 73 | 73 |
| 74 /** | 74 /** |
| 75 * Initialize a newly created kind with the given state. | 75 * Initialize a newly created kind with the given state. |
| 76 * | 76 * |
| 77 * @param isOptional `true` if this is an optional parameter | 77 * @param isOptional `true` if this is an optional parameter |
| 78 */ | 78 */ |
| 79 const ParameterKind(String name, int ordinal, this.isOptional) | 79 const ParameterKind(String name, int ordinal, this.isOptional) |
| 80 : super(name, ordinal); | 80 : super(name, ordinal); |
| 81 } | 81 } |
| OLD | NEW |