Class OptimizeUtils


  • public class OptimizeUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      OptimizeUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static LetExpression[] optimizeLets​(LetExpression[] lets)
      Removes let expressions for variables that are simply assigned to literals, because VariableExpression will inline those literals and remove itself, so there's no need to evaluate the variable.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OptimizeUtils

        public OptimizeUtils()
    • Method Detail

      • optimizeLets

        public static LetExpression[] optimizeLets​(LetExpression[] lets)
        Removes let expressions for variables that are simply assigned to literals, because VariableExpression will inline those literals and remove itself, so there's no need to evaluate the variable.