Search in sources :

Example 1 with LanguageAnnotation

use of com.redhat.ceylon.model.loader.LanguageAnnotation in project ceylon-compiler by ceylon.

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(com.redhat.ceylon.model.loader.LanguageAnnotation)

Aggregations

LanguageAnnotation (com.redhat.ceylon.model.loader.LanguageAnnotation)1 HashMap (java.util.HashMap)1