langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/tree/DocTreeMaker.java
equal
deleted
inserted
replaced
58 import com.sun.tools.javac.tree.DCTree.DCDocComment; |
58 import com.sun.tools.javac.tree.DCTree.DCDocComment; |
59 import com.sun.tools.javac.tree.DCTree.DCDocRoot; |
59 import com.sun.tools.javac.tree.DCTree.DCDocRoot; |
60 import com.sun.tools.javac.tree.DCTree.DCEndElement; |
60 import com.sun.tools.javac.tree.DCTree.DCEndElement; |
61 import com.sun.tools.javac.tree.DCTree.DCEntity; |
61 import com.sun.tools.javac.tree.DCTree.DCEntity; |
62 import com.sun.tools.javac.tree.DCTree.DCErroneous; |
62 import com.sun.tools.javac.tree.DCTree.DCErroneous; |
|
63 import com.sun.tools.javac.tree.DCTree.DCHidden; |
63 import com.sun.tools.javac.tree.DCTree.DCIdentifier; |
64 import com.sun.tools.javac.tree.DCTree.DCIdentifier; |
64 import com.sun.tools.javac.tree.DCTree.DCIndex; |
65 import com.sun.tools.javac.tree.DCTree.DCIndex; |
65 import com.sun.tools.javac.tree.DCTree.DCInheritDoc; |
66 import com.sun.tools.javac.tree.DCTree.DCInheritDoc; |
66 import com.sun.tools.javac.tree.DCTree.DCLink; |
67 import com.sun.tools.javac.tree.DCTree.DCLink; |
67 import com.sun.tools.javac.tree.DCTree.DCLiteral; |
68 import com.sun.tools.javac.tree.DCTree.DCLiteral; |
271 |
272 |
272 @Override @DefinedBy(Api.COMPILER_TREE) |
273 @Override @DefinedBy(Api.COMPILER_TREE) |
273 public DCThrows newExceptionTree(ReferenceTree name, List<? extends DocTree> description) { |
274 public DCThrows newExceptionTree(ReferenceTree name, List<? extends DocTree> description) { |
274 // TODO: verify the reference is just to a type (not a field or method) |
275 // TODO: verify the reference is just to a type (not a field or method) |
275 DCThrows tree = new DCThrows(Kind.EXCEPTION, (DCReference) name, cast(description)); |
276 DCThrows tree = new DCThrows(Kind.EXCEPTION, (DCReference) name, cast(description)); |
|
277 tree.pos = pos; |
|
278 return tree; |
|
279 } |
|
280 |
|
281 @Override @DefinedBy(Api.COMPILER_TREE) |
|
282 public DCHidden newHiddenTree(List<? extends DocTree> text) { |
|
283 DCHidden tree = new DCHidden(cast(text)); |
276 tree.pos = pos; |
284 tree.pos = pos; |
277 return tree; |
285 return tree; |
278 } |
286 } |
279 |
287 |
280 @Override @DefinedBy(Api.COMPILER_TREE) |
288 @Override @DefinedBy(Api.COMPILER_TREE) |