summaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authoraclement <aclement>2005-11-08 17:19:44 +0000
committeraclement <aclement>2005-11-08 17:19:44 +0000
commit891dc1b9504abe3d85cebc941049a07ebe3bce32 (patch)
treed8fbf56b869b71f2f020e1896b67805a261af837 /org.aspectj.ajdt.core
parent1f5149913ee859e466602f99a210dd76e0ade8ed (diff)
downloadaspectj-891dc1b9504abe3d85cebc941049a07ebe3bce32.tar.gz
aspectj-891dc1b9504abe3d85cebc941049a07ebe3bce32.zip
some useful AST tests
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/ASTVisitorTest.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/ASTVisitorTest.java b/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/ASTVisitorTest.java
index 785c7f3ec..ea0fc5872 100644
--- a/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/ASTVisitorTest.java
+++ b/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/ASTVisitorTest.java
@@ -54,6 +54,18 @@ import org.aspectj.weaver.patterns.DeclareSoft;
public class ASTVisitorTest extends TestCase {
+ // from bug 110465 - will currently break because of casts
+// public void testAspectWithITD() {
+// check("aspect A{ public void B.x(){} }",
+// "(compilationUnit(aspect(simpleName)(methodITD(primitiveType)(simpleName)(block))))");
+// }
+//
+// public void testAspectWithCommentThenITD() {
+// check("aspect A{ /** */ public void B.x(){} }","yyy");
+// }
+
+
+ // original tests
public void testAnInterface() {
check("interface AnInterface{}","(compilationUnit(interface(simpleName)))");
}
@@ -364,6 +376,7 @@ class TestVisitor extends AjASTVisitor {
}
public boolean visit(MethodDeclaration node) {
+ if (node instanceof InterTypeMethodDeclaration) return visit((InterTypeMethodDeclaration)node);
if (node.isConstructor()){
b.append("(constructor");
} else {