mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +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; |