feat($parse): added `constant` and `literal` properties
* `literal` is set to true if the expression's top-level is a JavaScript literal (number, string, boolean, null/undefined, array, object), even if it contains non-literals inside. * `constant` is set to true if the expression is known to be made entirely of constant values, i.e., evaluating it will always yield the same result. A consequence is that a JSON expression is guaranteed to be both literal and constant.
D
Daniel Luz committed
1ed638582d2f2c7f89384d9712f4cfac52cc5b70
Parent: 3b14092
Committed by Misko Hevery <misko@hevery.com>
on 2/14/2013, 10:43:56 PM