Search in sources :

Example 1 with TagKind

use of com.google.devtools.j2objc.ast.TagElement.TagKind in project j2objc by google.

the class JavadocConverter method visitLiteral.

@Override
public Void visitLiteral(LiteralTree node, TagElement tag) {
    TagElement newTag = new TagElement();
    TagKind tagKind = node.getKind() == DocTree.Kind.CODE ? TagKind.CODE : TagKind.LITERAL;
    setTagValues(newTag, tagKind, node, node.getBody());
    tag.addFragment(newTag);
    return null;
}
Also used : TagElement(com.google.devtools.j2objc.ast.TagElement) TagKind(com.google.devtools.j2objc.ast.TagElement.TagKind)

Aggregations

TagElement (com.google.devtools.j2objc.ast.TagElement)1 TagKind (com.google.devtools.j2objc.ast.TagElement.TagKind)1