import buildExpressionFromParams from 'scripts/lib/buildExpressionFromParams' ; import { ContainerWithState } from 'src/types/ExpressionContainerTypes' ; import { CallExpressionParams , ExpressionParams , FunctionExpressionParams , ConditionalExpressionParams , VariableExpressionParams , BinaryExpressionParams } from 'src/types/ExpressionParamTypes' ; import { NonExecutableStepCall , StepChild , StepFunction , StepConditional , StepBinary , StepVariable } from 'src/types/ExpressionTypes' ; import calculateNumLeafNodes from 'scripts/lib/calculateNumLeafNodes' ; export default function buildExpressionContainer ( expressionParams ) ; export default function buildExpressionContainer ( expressionParams ) ; export default function buildExpressionContainer ( expressionParams ) ; export default function buildExpressionContainer ( expressionParams ) ; export default function buildExpressionContainer ( expressionParams ) ; export default function buildExpressionContainer ( expressionParams ) ; export default function buildExpressionContainer ( expressionParams ) { const expression = buildExpressionFromParams ( expressionParams ) ; return { expression , numLeafNodes : calculateNumLeafNodes ( expression ) , containerState : 'needsPrioritize' , previouslyChangedExpressionState : 'default' } ; }