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

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

Issue 1462463004: Remove unused declarations - skip summaries and completion. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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
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 engine.parser; 5 library engine.parser;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 import "dart:math" as math; 8 import "dart:math" as math;
9 9
10 import 'ast.dart'; 10 import 'ast.dart';
(...skipping 6239 matching lines...) Expand 10 before | Expand all | Expand 10 after
6250 * Parse the generic method or function's type parameters. 6250 * Parse the generic method or function's type parameters.
6251 * 6251 *
6252 * For backwards compatibility this can optionally use comments. 6252 * For backwards compatibility this can optionally use comments.
6253 * See [parseGenericMethodComments]. 6253 * See [parseGenericMethodComments].
6254 */ 6254 */
6255 TypeParameterList _parseGenericMethodTypeParameters() { 6255 TypeParameterList _parseGenericMethodTypeParameters() {
6256 if (parseGenericMethods && _matches(TokenType.LT) || 6256 if (parseGenericMethods && _matches(TokenType.LT) ||
6257 _injectGenericCommentTypeList()) { 6257 _injectGenericCommentTypeList()) {
6258 return parseTypeParameterList(); 6258 return parseTypeParameterList();
6259 } 6259 }
6260 return null;
6260 } 6261 }
6261 6262
6262 /** 6263 /**
6263 * Parse a getter. The [commentAndMetadata] is the documentation comment and 6264 * Parse a getter. The [commentAndMetadata] is the documentation comment and
6264 * metadata to be associated with the declaration. The externalKeyword] is the 6265 * metadata to be associated with the declaration. The externalKeyword] is the
6265 * 'external' token. The staticKeyword] is the static keyword, or `null` if 6266 * 'external' token. The staticKeyword] is the static keyword, or `null` if
6266 * the getter is not static. The [returnType] the return type that has already 6267 * the getter is not static. The [returnType] the return type that has already
6267 * been parsed, or `null` if there was no return type. Return the getter that 6268 * been parsed, or `null` if there was no return type. Return the getter that
6268 * was parsed. 6269 * was parsed.
6269 * 6270 *
(...skipping 4905 matching lines...) Expand 10 before | Expand all | Expand 10 after
11175 } 11176 }
11176 11177
11177 /** 11178 /**
11178 * Copy resolution data from the [fromNode] to the [toNode]. 11179 * Copy resolution data from the [fromNode] to the [toNode].
11179 */ 11180 */
11180 static void copyResolutionData(AstNode fromNode, AstNode toNode) { 11181 static void copyResolutionData(AstNode fromNode, AstNode toNode) {
11181 ResolutionCopier copier = new ResolutionCopier(); 11182 ResolutionCopier copier = new ResolutionCopier();
11182 copier._isEqualNodes(fromNode, toNode); 11183 copier._isEqualNodes(fromNode, toNode);
11183 } 11184 }
11184 } 11185 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/services/linter/linter.dart ('k') | pkg/analyzer/lib/src/generated/static_type_analyzer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698