marko/compiler/util/isCompoundExpression.js
Patrick Steele-Idem 1bf6838c2c Lot's of improvements
All string expressions are now parsed using esprima when using the builder API
2015-12-23 16:47:42 -07:00

10 lines
309 B
JavaScript

function isCompoundExpression(expression) {
if (typeof expression === 'string') {
// TBD: Should we use Esprima to parse the expression string to see if it is a compount expression?
return true;
}
return expression.isCompoundExpression();
}
module.exports = isCompoundExpression;