Search in sources :

Example 1 with SimpleType

use of com.google.devtools.j2objc.ast.SimpleType in project j2objc by google.

the class MethodTranslator method visitTypeReference.

@Override
public TreeNode visitTypeReference(TypeReferenceExpression node, Void data) {
    SimpleType typeNode = (SimpleType) node.getFirstChild().acceptVisitor(this, null);
    DeclaredType type = (DeclaredType) typeNode.getTypeMirror();
    return ClassFileConverter.convertName(type.asElement());
}
Also used : SimpleType(com.google.devtools.j2objc.ast.SimpleType) DeclaredType(javax.lang.model.type.DeclaredType)

Aggregations

SimpleType (com.google.devtools.j2objc.ast.SimpleType)1 DeclaredType (javax.lang.model.type.DeclaredType)1