Chromium Code Reviews| Index: pkg/compiler/lib/src/elements/elements.dart |
| diff --git a/pkg/compiler/lib/src/elements/elements.dart b/pkg/compiler/lib/src/elements/elements.dart |
| index 22a0933d834218ba2a65a81db8f4e6ec875a5219..3867de4fc4a401daf4f4e4d447fd7d4819a1c2c8 100644 |
| --- a/pkg/compiler/lib/src/elements/elements.dart |
| +++ b/pkg/compiler/lib/src/elements/elements.dart |
| @@ -836,10 +836,8 @@ abstract class CompilationUnitElement extends Element { |
| get enclosingElement; |
| Script get script; |
| - PartOf get partTag; |
| void forEachLocalMember(f(Element element)); |
| - bool get hasMembers; |
| int compareTo(CompilationUnitElement other); |
| } |
| @@ -902,6 +900,15 @@ abstract class LibraryElement extends Element |
| bool hasLibraryName(); |
| String getLibraryName(); |
| + |
| + /** |
| + * Returns the library name (as defined by the library tag) or for script |
| + * (which have no library tag) the script file name. The latter case is used |
| + * to provide a 'library name' for scripts to use for instance in dartdoc. |
| + * |
| + * Note: the returned filename is still escaped ("a%20b.dart" instead of |
| + * "a b.dart"). |
| + */ |
| String getLibraryOrScriptName(); |
| int compareTo(LibraryElement other); |
| @@ -1490,6 +1497,9 @@ abstract class TypeVariableElement extends Element |
| /// The class or typedef on which this type variable is defined. |
| TypeDeclarationElement get typeDeclaration; |
| + /// The index of this type variable within its type declaraiton. |
|
floitsch
2015/07/03 17:06:25
declaration
Johnni Winther
2015/07/06 08:33:22
Done.
|
| + int get index; |
| + |
| /// The [type] defined by the type variable. |
| TypeVariableType get type; |