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

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

Issue 2336913002: Remove LibraryElement.visibleLibraries. (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 1464 matching lines...) Expand 10 before | Expand all | Expand 10 after
1475 Namespace get publicNamespace; 1475 Namespace get publicNamespace;
1476 1476
1477 /** 1477 /**
1478 * Return a list containing all of the compilation units this library consists 1478 * Return a list containing all of the compilation units this library consists
1479 * of. This includes the defining compilation unit and units included using 1479 * of. This includes the defining compilation unit and units included using
1480 * the `part` directive. 1480 * the `part` directive.
1481 */ 1481 */
1482 List<CompilationUnitElement> get units; 1482 List<CompilationUnitElement> get units;
1483 1483
1484 /** 1484 /**
1485 * Return a list containing all directly and indirectly imported libraries.
1486 */
1487 List<LibraryElement> get visibleLibraries;
1488
1489 /**
1490 * Return a list containing all of the imports that share the given [prefix], 1485 * Return a list containing all of the imports that share the given [prefix],
1491 * or an empty array if there are no such imports. 1486 * or an empty array if there are no such imports.
1492 */ 1487 */
1493 List<ImportElement> getImportsWithPrefix(PrefixElement prefix); 1488 List<ImportElement> getImportsWithPrefix(PrefixElement prefix);
1494 1489
1495 /** 1490 /**
1496 * Return the class defined in this library that has the given [name], or 1491 * 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. 1492 * `null` if this library does not define a class with the given name.
1498 */ 1493 */
1499 ClassElement getType(String className); 1494 ClassElement getType(String className);
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
2005 DartType get type; 2000 DartType get type;
2006 2001
2007 /** 2002 /**
2008 * Return a representation of the value of this variable, forcing the value 2003 * Return a representation of the value of this variable, forcing the value
2009 * to be computed if it had not previously been computed, or `null` if either 2004 * to be computed if it had not previously been computed, or `null` if either
2010 * this variable was not declared with the 'const' modifier or if the value of 2005 * this variable was not declared with the 'const' modifier or if the value of
2011 * this variable could not be computed because of errors. 2006 * this variable could not be computed because of errors.
2012 */ 2007 */
2013 DartObject computeConstantValue(); 2008 DartObject computeConstantValue();
2014 } 2009 }
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