use of org.eclipse.ceylon.compiler.typechecker.tree.Tree.Primary in project ceylon by eclipse.
the class WarningSuppressionVisitor method getSuppressWarnings.
private static Tree.Annotation getSuppressWarnings(Tree.Annotation anno) {
Primary primary = anno.getPrimary();
if (primary instanceof Tree.MemberOrTypeExpression) {
Tree.MemberOrTypeExpression mte = (Tree.MemberOrTypeExpression) primary;
Declaration declaration = mte.getDeclaration();
if (declaration != null && declaration.equals(anno.getUnit().getLanguageModuleDeclaration("suppressWarnings"))) {
return anno;
}
}
return null;
}
Aggregations