use of org.eclipse.n4js.jsdoc.TagDictionary in project n4js by eclipse.
the class StubLineTagWithRegionDefinition method parse.
@Override
public Tag parse(TagTitle title, JSDocCharScanner scanner, DescriptionParser descriptionParser) {
Tag paramTag = createLineTag(title);
scanner.skipWS();
JSDocToken region = InlineTagTokenizer.INSTANCE.nextToken(scanner);
if (region != null) {
addValue(paramTag, REGION, region);
}
// silent ignore no region
scanner.skipWS();
// expect no tags in descritpion
TagDictionary<AbstractInlineTagDefinition> dictionary = new TagDictionary<>();
ContentNode description = descriptionParser.parse(scanner, dictionary);
if (description != null) {
addValue(paramTag, DESCR, description);
}
return paramTag;
}
Aggregations