| Index: compiler/java/com/google/dart/compiler/resolver/ClassElementImplementation.java
|
| diff --git a/compiler/java/com/google/dart/compiler/resolver/ClassElementImplementation.java b/compiler/java/com/google/dart/compiler/resolver/ClassElementImplementation.java
|
| index 5d2d93fdb71c54ee14b61d1ed43c97012f8b65f0..58cf94df102d1cb9c63786ee1be766a28310b18a 100644
|
| --- a/compiler/java/com/google/dart/compiler/resolver/ClassElementImplementation.java
|
| +++ b/compiler/java/com/google/dart/compiler/resolver/ClassElementImplementation.java
|
| @@ -7,6 +7,7 @@ package com.google.dart.compiler.resolver;
|
| import com.google.common.collect.Lists;
|
| import com.google.dart.compiler.ast.DartClass;
|
| import com.google.dart.compiler.ast.DartDeclaration;
|
| +import com.google.dart.compiler.ast.DartMetadata;
|
| import com.google.dart.compiler.ast.DartParameterizedTypeNode;
|
| import com.google.dart.compiler.ast.DartStringLiteral;
|
| import com.google.dart.compiler.ast.Modifiers;
|
| @@ -30,6 +31,7 @@ class ClassElementImplementation extends AbstractNodeElement implements ClassNod
|
| private final List<InterfaceType> interfaces = Lists.newArrayList();
|
| private final boolean isInterface;
|
| private final String nativeName;
|
| + private final DartMetadata metadata;
|
| private final Modifiers modifiers;
|
| private final AtomicReference<List<InterfaceType>> allSupertypes =
|
| new AtomicReference<List<InterfaceType>>();
|
| @@ -60,11 +62,13 @@ class ClassElementImplementation extends AbstractNodeElement implements ClassNod
|
| this.library = library;
|
| if (node != null) {
|
| isInterface = node.isInterface();
|
| + metadata = node.getMetadata();
|
| modifiers = node.getModifiers();
|
| nameLocation = node.getName().getSourceInfo();
|
| declarationNameWithTypeParameter = new DartParameterizedTypeNode(node.getName(), node.getTypeParameters()).toSource();
|
| } else {
|
| isInterface = false;
|
| + metadata = DartMetadata.EMPTY;
|
| modifiers = Modifiers.NONE;
|
| nameLocation = SourceInfo.UNKNOWN;
|
| declarationNameWithTypeParameter = "";
|
| @@ -157,6 +161,11 @@ class ClassElementImplementation extends AbstractNodeElement implements ClassNod
|
| }
|
|
|
| @Override
|
| + public DartMetadata getMetadata() {
|
| + return metadata;
|
| + }
|
| +
|
| + @Override
|
| public Modifiers getModifiers() {
|
| return modifiers;
|
| }
|
|
|