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

Side by Side Diff: compiler/java/com/google/dart/compiler/resolver/Element.java

Issue 10703046: Issue 3753. Support for @deprecated annotation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Analyze for @deprecated all invocable elements Created 8 years, 5 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 | Annotate | Revision Log
OLDNEW
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698