Commit 21108175 by Aaron Leung

arg resolution

parent e9c828c3
......@@ -611,6 +611,25 @@ namespace Sass {
}
}
bind_parameters(Environment& bindings, const Node params, const Node args, Node prefix, Environment& env, map<string, Function>& f_env, Node_Factory& new_Node, Context& ctx)
{
size_t p_count = params.size();
size_t a_count = args.size();
// if (p_count != a_count) {
// stringstream msg;
// msg << "expected " << p_count << " arguments; invoked with " << a_count;
// throw msg;
// }
for (size_t i = 0, S = args.size(); i < S; ++i) {
Node param(params[i]);
Node arg(args[i]);
if (param.type() == Node::variable &&
arg.type() != Node::assignment) {
bindings
}
}
// Apply a mixin -- bind the arguments in a new environment, link the new
// environment to the current one, then copy the body and eval in the new
// environment.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment