| Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/ClassDeclaration.java
|
| diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/ClassDeclaration.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/ClassDeclaration.java
|
| index d79de7485d164f706e8d2e3ef4cea8efeef553bf..2a847137cd56755bb15ab60d73172ad5cc652cff 100644
|
| --- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/ClassDeclaration.java
|
| +++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/ClassDeclaration.java
|
| @@ -13,6 +13,7 @@
|
| */
|
| package com.google.dart.engine.ast;
|
|
|
| +import com.google.dart.engine.element.ClassElement;
|
| import com.google.dart.engine.scanner.Token;
|
|
|
| import java.util.List;
|
| @@ -137,6 +138,14 @@ public class ClassDeclaration extends CompilationUnitMember {
|
| return classKeyword;
|
| }
|
|
|
| + /**
|
| + * @return the {@link ClassElement} associated with this identifier, or {@code null} if the AST
|
| + * structure has not been resolved or if this identifier could not be resolved.
|
| + */
|
| + public ClassElement getElement() {
|
| + return name != null ? (ClassElement) name.getElement() : null;
|
| + }
|
| +
|
| @Override
|
| public Token getEndToken() {
|
| return rightBracket;
|
|
|