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

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

Issue 2967203002: Remove CompilationUnitElement.getElementAt(). (Closed)
Patch Set: Created 3 years, 5 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 | pkg/analyzer/lib/src/dart/element/element.dart » ('j') | 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 /** 5 /**
6 * Defines the element model. The element model describes the semantic (as 6 * Defines the element model. The element model describes the semantic (as
7 * opposed to syntactic) structure of Dart code. The syntactic structure of the 7 * opposed to syntactic) structure of Dart code. The syntactic structure of the
8 * code is modeled by the [AST structure](../ast/ast.dart). 8 * code is modeled by the [AST structure](../ast/ast.dart).
9 * 9 *
10 * The element model consists of two closely related kinds of objects: elements 10 * The element model consists of two closely related kinds of objects: elements
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 /** 466 /**
467 * Return a list containing all of the classes contained in this compilation 467 * Return a list containing all of the classes contained in this compilation
468 * unit. 468 * unit.
469 */ 469 */
470 List<ClassElement> get types; 470 List<ClassElement> get types;
471 471
472 @override 472 @override
473 CompilationUnit computeNode(); 473 CompilationUnit computeNode();
474 474
475 /** 475 /**
476 * Return the element at the given [offset], maybe `null` if no such element.
477 */
478 Element getElementAt(int offset);
479
480 /**
481 * Return the enum defined in this compilation unit that has the given [name], 476 * Return the enum defined in this compilation unit that has the given [name],
482 * or `null` if this compilation unit does not define an enum with the given 477 * or `null` if this compilation unit does not define an enum with the given
483 * name. 478 * name.
484 */ 479 */
485 ClassElement getEnum(String name); 480 ClassElement getEnum(String name);
486 481
487 /** 482 /**
488 * Return the class defined in this compilation unit that has the given 483 * Return the class defined in this compilation unit that has the given
489 * [name], or `null` if this compilation unit does not define a class with the 484 * [name], or `null` if this compilation unit does not define a class with the
490 * given name. 485 * given name.
(...skipping 1593 matching lines...) Expand 10 before | Expand all | Expand 10 after
2084 DartType get type; 2079 DartType get type;
2085 2080
2086 /** 2081 /**
2087 * Return a representation of the value of this variable, forcing the value 2082 * Return a representation of the value of this variable, forcing the value
2088 * to be computed if it had not previously been computed, or `null` if either 2083 * to be computed if it had not previously been computed, or `null` if either
2089 * this variable was not declared with the 'const' modifier or if the value of 2084 * this variable was not declared with the 'const' modifier or if the value of
2090 * this variable could not be computed because of errors. 2085 * this variable could not be computed because of errors.
2091 */ 2086 */
2092 DartObject computeConstantValue(); 2087 DartObject computeConstantValue();
2093 } 2088 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/element/element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698