mirror of
https://github.com/marko-js/marko.git
synced 2026-01-25 15:03:04 +00:00
10 lines
309 B
JavaScript
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; |