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

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

Issue 2335843003: Remove LibraryElement.isUpToDate(). (Closed)
Patch Set: Created 4 years, 3 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 1479 matching lines...) Expand 10 before | Expand all | Expand 10 after
1490 * Return a list containing all of the imports that share the given [prefix], 1490 * Return a list containing all of the imports that share the given [prefix],
1491 * or an empty array if there are no such imports. 1491 * or an empty array if there are no such imports.
1492 */ 1492 */
1493 List<ImportElement> getImportsWithPrefix(PrefixElement prefix); 1493 List<ImportElement> getImportsWithPrefix(PrefixElement prefix);
1494 1494
1495 /** 1495 /**
1496 * Return the class defined in this library that has the given [name], or 1496 * Return the class defined in this library that has the given [name], or
1497 * `null` if this library does not define a class with the given name. 1497 * `null` if this library does not define a class with the given name.
1498 */ 1498 */
1499 ClassElement getType(String className); 1499 ClassElement getType(String className);
1500
1501 /**
1502 * Return `true` if this library is up to date with respect to the given
1503 * [timeStamp]. If any transitively referenced Source is newer than the time
1504 * stamp, this method returns false.
1505 */
1506 bool isUpToDate(int timeStamp);
1507 } 1500 }
1508 1501
1509 /** 1502 /**
1510 * An element that can be (but is not required to be) defined within a method 1503 * An element that can be (but is not required to be) defined within a method
1511 * or function (an [ExecutableElement]). 1504 * or function (an [ExecutableElement]).
1512 * 1505 *
1513 * Clients may not extend, implement or mix-in this class. 1506 * Clients may not extend, implement or mix-in this class.
1514 */ 1507 */
1515 abstract class LocalElement implements Element { 1508 abstract class LocalElement implements Element {
1516 /** 1509 /**
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
2012 DartType get type; 2005 DartType get type;
2013 2006
2014 /** 2007 /**
2015 * Return a representation of the value of this variable, forcing the value 2008 * Return a representation of the value of this variable, forcing the value
2016 * to be computed if it had not previously been computed, or `null` if either 2009 * to be computed if it had not previously been computed, or `null` if either
2017 * this variable was not declared with the 'const' modifier or if the value of 2010 * this variable was not declared with the 'const' modifier or if the value of
2018 * this variable could not be computed because of errors. 2011 * this variable could not be computed because of errors.
2019 */ 2012 */
2020 DartObject computeConstantValue(); 2013 DartObject computeConstantValue();
2021 } 2014 }
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