Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1318 * | 1318 * |
| 1319 * Clients may not extend, implement or mix-in this class. | 1319 * Clients may not extend, implement or mix-in this class. |
| 1320 */ | 1320 */ |
| 1321 abstract class LibraryElement implements Element { | 1321 abstract class LibraryElement implements Element { |
| 1322 /** | 1322 /** |
| 1323 * An empty list of library elements. | 1323 * An empty list of library elements. |
| 1324 */ | 1324 */ |
| 1325 static const List<LibraryElement> EMPTY_LIST = const <LibraryElement>[]; | 1325 static const List<LibraryElement> EMPTY_LIST = const <LibraryElement>[]; |
| 1326 | 1326 |
| 1327 /** | 1327 /** |
| 1328 * Return a list containing the strongly connected component in the | |
| 1329 * import/export graph in which the current library resides. | |
| 1330 */ | |
| 1331 List<LibraryElement> get libraryCycle; | |
|
Brian Wilkerson
2016/02/26 21:36:55
This doesn't feel like a property to me, it feels
| |
| 1332 | |
| 1333 /** | |
| 1328 * Return the compilation unit that defines this library. | 1334 * Return the compilation unit that defines this library. |
| 1329 */ | 1335 */ |
| 1330 CompilationUnitElement get definingCompilationUnit; | 1336 CompilationUnitElement get definingCompilationUnit; |
| 1331 | 1337 |
| 1332 /** | 1338 /** |
| 1333 * Return the entry point for this library, or `null` if this library does not | 1339 * Return the entry point for this library, or `null` if this library does not |
| 1334 * have an entry point. The entry point is defined to be a zero argument | 1340 * have an entry point. The entry point is defined to be a zero argument |
| 1335 * top-level function whose name is `main`. | 1341 * top-level function whose name is `main`. |
| 1336 */ | 1342 */ |
| 1337 FunctionElement get entryPoint; | 1343 FunctionElement get entryPoint; |
| (...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1957 */ | 1963 */ |
| 1958 bool get isStatic; | 1964 bool get isStatic; |
| 1959 | 1965 |
| 1960 /** | 1966 /** |
| 1961 * Return the declared type of this variable, or `null` if the variable did | 1967 * Return the declared type of this variable, or `null` if the variable did |
| 1962 * not have a declared type (such as if it was declared using the keyword | 1968 * not have a declared type (such as if it was declared using the keyword |
| 1963 * 'var'). | 1969 * 'var'). |
| 1964 */ | 1970 */ |
| 1965 DartType get type; | 1971 DartType get type; |
| 1966 } | 1972 } |
| OLD | NEW |