Search in sources :

Example 1 with LanguageAnnotation

use of org.eclipse.ceylon.model.loader.LanguageAnnotation in project ceylon by eclipse.

the class AbstractTransformer method initModelAnnotations.

protected void initModelAnnotations() {
    if (gen().omittedModelAnnotations == null) {
        HashMap<String, Long> map = new HashMap<String, Long>();
        for (LanguageAnnotation mod : LanguageAnnotation.values()) {
            map.put(mod.name, mod.mask);
        }
        gen().omittedModelAnnotations = map;
    }
}
Also used : HashMap(java.util.HashMap) LanguageAnnotation(org.eclipse.ceylon.model.loader.LanguageAnnotation)

Aggregations

HashMap (java.util.HashMap)1 LanguageAnnotation (org.eclipse.ceylon.model.loader.LanguageAnnotation)1