mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
16 lines
426 B
JavaScript
16 lines
426 B
JavaScript
'use strict';
|
|
|
|
module.exports = function(builder) {
|
|
var program = builder.program;
|
|
var identifier = builder.identifier;
|
|
var functionDeclaration = builder.functionDeclaration;
|
|
var functionCall = builder.functionCall;
|
|
|
|
return program([
|
|
functionDeclaration('foo', ['a', 'b', identifier('c')], [
|
|
functionCall(
|
|
'hello',
|
|
['arg1', 'arg2'])
|
|
])
|
|
]);
|
|
}; |