Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(604)

Side by Side Diff: pkg/analyzer/lib/src/generated/utilities_dart.dart

Issue 1789233002: Deprecate the generated element library and clean up imports (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/analyzer/lib/src/generated/element.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/element.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698