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

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

Issue 1242263008: pkg/analyzer: document alternative to deprecated api (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 | « no previous file | 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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.element; 8 library engine.element;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 2520 matching lines...) Expand 10 before | Expand all | Expand 10 after
2531 String get name; 2531 String get name;
2532 2532
2533 /** 2533 /**
2534 * Return the offset of the name of this element in the file that contains the 2534 * Return the offset of the name of this element in the file that contains the
2535 * declaration of this element, or `-1` if this element is synthetic, does not 2535 * declaration of this element, or `-1` if this element is synthetic, does not
2536 * have a name, or otherwise does not have an offset. 2536 * have a name, or otherwise does not have an offset.
2537 */ 2537 */
2538 int get nameOffset; 2538 int get nameOffset;
2539 2539
2540 /** 2540 /**
2541 * **DEPRECATED** Use `computeNode()` instead.
2542 *
2541 * Return the resolved [AstNode] node that declares this element, or `null` if 2543 * Return the resolved [AstNode] node that declares this element, or `null` if
2542 * this element is synthetic or isn't contained in a compilation unit, such as 2544 * this element is synthetic or isn't contained in a compilation unit, such as
2543 * a [LibraryElement]. 2545 * a [LibraryElement].
2544 * 2546 *
2545 * This method is expensive, because resolved AST might be evicted from cache, 2547 * This method is expensive, because resolved AST might be evicted from cache,
2546 * so parsing and resolving will be performed. 2548 * so parsing and resolving will be performed.
2547 * 2549 *
2548 * <b>Note:</b> This method cannot be used in an async environment. 2550 * <b>Note:</b> This method cannot be used in an async environment.
2549 */ 2551 */
2550 @deprecated 2552 @deprecated
(...skipping 8158 matching lines...) Expand 10 before | Expand all | Expand 10 after
10709 10711
10710 @override 10712 @override
10711 void visitElement(Element element) { 10713 void visitElement(Element element) {
10712 int offset = element.nameOffset; 10714 int offset = element.nameOffset;
10713 if (offset != -1) { 10715 if (offset != -1) {
10714 map[offset] = element; 10716 map[offset] = element;
10715 } 10717 }
10716 super.visitElement(element); 10718 super.visitElement(element);
10717 } 10719 }
10718 } 10720 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698