use of com.redhat.ceylon.compiler.typechecker.tree.Tree.AnnotationList in project ceylon-compiler by ceylon.
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;
}
Aggregations