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

Unified Diff: pkg/compiler/lib/src/native/enqueue.dart

Issue 1132783002: Add Accessor, Getter, and Setter elements. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: pkg/compiler/lib/src/native/enqueue.dart
diff --git a/pkg/compiler/lib/src/native/enqueue.dart b/pkg/compiler/lib/src/native/enqueue.dart
index 11968db304e8140d1c10b153992b1102770081c9..1f09444964683642d30b5160f49d568babbd501f 100644
--- a/pkg/compiler/lib/src/native/enqueue.dart
+++ b/pkg/compiler/lib/src/native/enqueue.dart
@@ -225,7 +225,7 @@ abstract class NativeEnqueuerBase implements NativeEnqueuer {
* Returns the source string of the class named in the extends clause, or
* `null` if there is no extends clause.
*/
- String findExtendsNameOfClass(ClassElement classElement) {
+ String findExtendsNameOfClass(BaseClassElementX classElement) {
// "class B extends A ... {}" --> "A"
// "class B extends foo.A ... {}" --> "A"
// "class B<T> extends foo.A<T,T> with M1, M2 ... {}" --> "A"
@@ -360,7 +360,7 @@ abstract class NativeEnqueuerBase implements NativeEnqueuer {
flushing = false;
}
- processClass(ClassElementX classElement, cause) {
+ processClass(BaseClassElementX classElement, cause) {
// TODO(ahe): Fix this assertion to work in incremental compilation.
assert(compiler.hasIncrementalSupport ||
!registeredClasses.contains(classElement));
@@ -422,7 +422,7 @@ abstract class NativeEnqueuerBase implements NativeEnqueuer {
/// Sets the native name of [element], either from an annotation, or
/// defaulting to the Dart name.
- void setNativeName(Element element) {
+ void setNativeName(ElementX element) {
String name = findJsNameFromAnnotation(element);
if (name == null) name = element.name;
element.setNative(name);
@@ -436,7 +436,7 @@ abstract class NativeEnqueuerBase implements NativeEnqueuer {
/// use the declared @JSName as the expression
/// 3. If [element] does not have a @JSName annotation, qualify the name of
/// the method with the @Native name of the enclosing class.
- void setNativeNameForStaticMethod(Element element) {
+ void setNativeNameForStaticMethod(ElementX element) {
String name = findJsNameFromAnnotation(element);
if (name == null) name = element.name;
if (isIdentifier(name)) {

Powered by Google App Engine
This is Rietveld 408576698