Search in sources :

Example 1 with AnnotationList

use of org.eclipse.ceylon.compiler.typechecker.tree.Tree.AnnotationList in project ceylon by eclipse.

the class ClassTransformer method makeShortcutRefinementAnnotationTrees.

private AnnotationList makeShortcutRefinementAnnotationTrees() {
    AnnotationList annotationList = new AnnotationList(null);
    Tree.Annotation shared = new Tree.Annotation(null);
    Tree.BaseMemberExpression sharedPrimary = new Tree.BaseMemberExpression(null);
    sharedPrimary.setDeclaration(typeFact().getLanguageModuleDeclaration("shared"));
    shared.setPrimary(sharedPrimary);
    annotationList.addAnnotation(shared);
    Tree.Annotation actual = new Tree.Annotation(null);
    Tree.BaseMemberExpression actualPrimary = new Tree.BaseMemberExpression(null);
    actualPrimary.setDeclaration(typeFact().getLanguageModuleDeclaration("actual"));
    actual.setPrimary(actualPrimary);
    annotationList.addAnnotation(actual);
    return annotationList;
}
Also used : BaseMemberExpression(org.eclipse.ceylon.compiler.typechecker.tree.Tree.BaseMemberExpression) JCPrimitiveTypeTree(org.eclipse.ceylon.langtools.tools.javac.tree.JCTree.JCPrimitiveTypeTree) JCTree(org.eclipse.ceylon.langtools.tools.javac.tree.JCTree) Tree(org.eclipse.ceylon.compiler.typechecker.tree.Tree) BaseMemberExpression(org.eclipse.ceylon.compiler.typechecker.tree.Tree.BaseMemberExpression) AnnotationList(org.eclipse.ceylon.compiler.typechecker.tree.Tree.AnnotationList) JCAnnotation(org.eclipse.ceylon.langtools.tools.javac.tree.JCTree.JCAnnotation)

Aggregations

Tree (org.eclipse.ceylon.compiler.typechecker.tree.Tree)1 AnnotationList (org.eclipse.ceylon.compiler.typechecker.tree.Tree.AnnotationList)1 BaseMemberExpression (org.eclipse.ceylon.compiler.typechecker.tree.Tree.BaseMemberExpression)1 JCTree (org.eclipse.ceylon.langtools.tools.javac.tree.JCTree)1 JCAnnotation (org.eclipse.ceylon.langtools.tools.javac.tree.JCTree.JCAnnotation)1 JCPrimitiveTypeTree (org.eclipse.ceylon.langtools.tools.javac.tree.JCTree.JCPrimitiveTypeTree)1