langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/parser/DocCommentParser.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
1258 List<DCTree> description = blockContent(); |
1258 List<DCTree> description = blockContent(); |
1259 return m.at(pos).newSinceTree(description); |
1259 return m.at(pos).newSinceTree(description); |
1260 } |
1260 } |
1261 }, |
1261 }, |
1262 |
1262 |
|
1263 // @summary summary-text |
|
1264 new TagParser(Kind.INLINE, DCTree.Kind.SUMMARY) { |
|
1265 public DCTree parse(int pos) throws ParseException { |
|
1266 List<DCTree> summary = inlineContent(); |
|
1267 return m.at(pos).newSummaryTree(summary); |
|
1268 } |
|
1269 }, |
|
1270 |
1263 // @throws class-name description |
1271 // @throws class-name description |
1264 new TagParser(Kind.BLOCK, DCTree.Kind.THROWS) { |
1272 new TagParser(Kind.BLOCK, DCTree.Kind.THROWS) { |
1265 public DCTree parse(int pos) throws ParseException { |
1273 public DCTree parse(int pos) throws ParseException { |
1266 skipWhitespace(); |
1274 skipWhitespace(); |
1267 DCReference ref = reference(false); |
1275 DCReference ref = reference(false); |