OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 package com.google.dart.compiler.resolver; | 5 package com.google.dart.compiler.resolver; |
6 | 6 |
| 7 import com.google.dart.compiler.ast.DartMetadata; |
7 import com.google.dart.compiler.ast.Modifiers; | 8 import com.google.dart.compiler.ast.Modifiers; |
8 import com.google.dart.compiler.common.HasSourceInfo; | 9 import com.google.dart.compiler.common.HasSourceInfo; |
9 import com.google.dart.compiler.common.SourceInfo; | 10 import com.google.dart.compiler.common.SourceInfo; |
10 import com.google.dart.compiler.type.Type; | 11 import com.google.dart.compiler.type.Type; |
11 | 12 |
12 public interface Element extends HasSourceInfo { | 13 public interface Element extends HasSourceInfo { |
13 String getOriginalName(); | 14 String getOriginalName(); |
14 | 15 |
15 String getName(); | 16 String getName(); |
16 | 17 |
17 ElementKind getKind(); | 18 ElementKind getKind(); |
18 | 19 |
19 Type getType(); | 20 Type getType(); |
20 | 21 |
21 boolean isDynamic(); | 22 boolean isDynamic(); |
22 | 23 |
23 Modifiers getModifiers(); | 24 Modifiers getModifiers(); |
| 25 |
| 26 DartMetadata getMetadata(); |
24 | 27 |
25 /** | 28 /** |
26 * @return the innermost {@link EnclosingElement} which encloses this {@link E
lement}. | 29 * @return the innermost {@link EnclosingElement} which encloses this {@link E
lement}. |
27 */ | 30 */ |
28 EnclosingElement getEnclosingElement(); | 31 EnclosingElement getEnclosingElement(); |
29 | 32 |
30 /** | 33 /** |
31 * @return location of the name in the declaration of this {@link Element}. | 34 * @return location of the name in the declaration of this {@link Element}. |
32 */ | 35 */ |
33 SourceInfo getNameLocation(); | 36 SourceInfo getNameLocation(); |
34 } | 37 } |
OLD | NEW |