• Evaluates the given expression to a constant value and checks if it satisfies the predicate.

    Parameters

    • expr: AstExpression

      The expression to evaluate.

    • predicate: ((lit: any) => boolean)

      The predicate to check.

        • (lit): boolean
        • Parameters

          • lit: any

          Returns boolean

    Returns boolean

    True if the expression can be evaluated to a constant value that satisfies the predicate, false otherwise.