]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/contexts/TranslationContext.java
Showing compilation warnings in SCL issue view and editors
[simantics/platform.git] / bundles / org.simantics.scl.compiler / src / org / simantics / scl / compiler / elaboration / contexts / TranslationContext.java
index 41f807592b7ad1de8c0b28d20183a3d4c80a3948..e5b5720ef07a005b61f3269b3ed07fc30e2737bd 100644 (file)
@@ -205,6 +205,9 @@ public class TranslationContext extends TypeTranslationContext implements Enviro
         }
         if(value == null)
             return new EError(location);
+        String deprecatedDescription = value.isDeprecated();
+        if(deprecatedDescription != null)
+            errorLog.logWarning(location, "Deprecated value " + value.getName().name + "." + (deprecatedDescription.isEmpty() ? "" : " " + deprecatedDescription));
         return new EConstant(location, value);
     }