langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/parser/DocCommentParser.java
equal
deleted
inserted
replaced
1158 List<DCTree> desc = blockContent(); |
1158 List<DCTree> desc = blockContent(); |
1159 return m.at(pos).newParamTree(typaram, id, desc); |
1159 return m.at(pos).newParamTree(typaram, id, desc); |
1160 } |
1160 } |
1161 }, |
1161 }, |
1162 |
1162 |
|
1163 // @provides service-name description |
|
1164 new TagParser(Kind.BLOCK, DCTree.Kind.PROVIDES) { |
|
1165 public DCTree parse(int pos) throws ParseException { |
|
1166 skipWhitespace(); |
|
1167 DCReference ref = reference(true); |
|
1168 List<DCTree> description = blockContent(); |
|
1169 return m.at(pos).newProvidesTree(ref, description); |
|
1170 } |
|
1171 }, |
|
1172 |
1163 // @return description |
1173 // @return description |
1164 new TagParser(Kind.BLOCK, DCTree.Kind.RETURN) { |
1174 new TagParser(Kind.BLOCK, DCTree.Kind.RETURN) { |
1165 public DCTree parse(int pos) { |
1175 public DCTree parse(int pos) { |
1166 List<DCTree> description = blockContent(); |
1176 List<DCTree> description = blockContent(); |
1167 return m.at(pos).newReturnTree(description); |
1177 return m.at(pos).newReturnTree(description); |
1259 List<DCTree> description = blockContent(); |
1269 List<DCTree> description = blockContent(); |
1260 return m.at(pos).newThrowsTree(ref, description); |
1270 return m.at(pos).newThrowsTree(ref, description); |
1261 } |
1271 } |
1262 }, |
1272 }, |
1263 |
1273 |
|
1274 // @uses service-name description |
|
1275 new TagParser(Kind.BLOCK, DCTree.Kind.USES) { |
|
1276 public DCTree parse(int pos) throws ParseException { |
|
1277 skipWhitespace(); |
|
1278 DCReference ref = reference(true); |
|
1279 List<DCTree> description = blockContent(); |
|
1280 return m.at(pos).newUsesTree(ref, description); |
|
1281 } |
|
1282 }, |
|
1283 |
1264 // {@value package.class#field} |
1284 // {@value package.class#field} |
1265 new TagParser(Kind.INLINE, DCTree.Kind.VALUE) { |
1285 new TagParser(Kind.INLINE, DCTree.Kind.VALUE) { |
1266 public DCTree parse(int pos) throws ParseException { |
1286 public DCTree parse(int pos) throws ParseException { |
1267 DCReference ref = reference(true); |
1287 DCReference ref = reference(true); |
1268 skipWhitespace(); |
1288 skipWhitespace(); |