mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Added Builder.concat(...)
This commit is contained in:
parent
5bf9f27750
commit
227c1d6a80
@ -102,6 +102,13 @@ class Builder {
|
||||
return new Code({value});
|
||||
}
|
||||
|
||||
concat(left, right) {
|
||||
left = makeNode(left);
|
||||
right = makeNode(right);
|
||||
let operator = '+';
|
||||
return new BinaryExpression({left, operator, right});
|
||||
}
|
||||
|
||||
conditionalExpression(test, consequent, alternate) {
|
||||
return new ConditionalExpression({test, consequent, alternate});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user