Search in sources :

Example 1 with TagDictionary

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;
}
Also used : TagDictionary(org.eclipse.n4js.jsdoc.TagDictionary) Tag(org.eclipse.n4js.jsdoc.dom.Tag) JSDocToken(org.eclipse.n4js.jsdoc.JSDocToken) ContentNode(org.eclipse.n4js.jsdoc.dom.ContentNode)

Aggregations

JSDocToken (org.eclipse.n4js.jsdoc.JSDocToken)1 TagDictionary (org.eclipse.n4js.jsdoc.TagDictionary)1 ContentNode (org.eclipse.n4js.jsdoc.dom.ContentNode)1 Tag (org.eclipse.n4js.jsdoc.dom.Tag)1