aboutsummaryrefslogtreecommitdiffstats
path: root/ajdoc
diff options
context:
space:
mode:
authoraclement <aclement>2009-01-06 22:05:49 +0000
committeraclement <aclement>2009-01-06 22:05:49 +0000
commit04fb46c3c1192dd13d74f6d2234095bfc460dfa1 (patch)
treec899ecbfa85bb77bbb9a0a0e29377f9179d3f022 /ajdoc
parent7deaa61cfdd361bfc1b55885c5e6f550244427a2 (diff)
downloadaspectj-04fb46c3c1192dd13d74f6d2234095bfc460dfa1.tar.gz
aspectj-04fb46c3c1192dd13d74f6d2234095bfc460dfa1.zip
258206: package declaration support in the model
Diffstat (limited to 'ajdoc')
-rw-r--r--ajdoc/src/org/aspectj/tools/ajdoc/StubFileGenerator.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/ajdoc/src/org/aspectj/tools/ajdoc/StubFileGenerator.java b/ajdoc/src/org/aspectj/tools/ajdoc/StubFileGenerator.java
index 59e099229..6b5c816f7 100644
--- a/ajdoc/src/org/aspectj/tools/ajdoc/StubFileGenerator.java
+++ b/ajdoc/src/org/aspectj/tools/ajdoc/StubFileGenerator.java
@@ -61,7 +61,9 @@ class StubFileGenerator {
IProgramElement fileNode = model.getHierarchy().findElementForSourceFile(inputFile.getAbsolutePath());
for (Iterator it = fileNode.getChildren().iterator(); it.hasNext();) {
IProgramElement node = (IProgramElement) it.next();
- if (node.getKind().equals(IProgramElement.Kind.IMPORT_REFERENCE)) {
+ if (node.getKind().isPackageDeclaration()) {
+ // skip
+ } else if (node.getKind().equals(IProgramElement.Kind.IMPORT_REFERENCE)) {
processImportDeclaration(node, writer);
} else {
try {