Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楚学文
node-sass
Commits
dc2eeef0
Commit
dc2eeef0
authored
Mar 28, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing some commented code.
parent
305b07a5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
40 deletions
+0
-40
document_eval_pending.cpp
document_eval_pending.cpp
+0
-40
No files found.
document_eval_pending.cpp
View file @
dc2eeef0
...
...
@@ -42,48 +42,8 @@ namespace Sass {
Token
name
(
n
[
0
].
token
);
Node
args
(
n
[
1
]);
Node
mixin
(
context
.
global_env
[
name
]);
// Node params(mixin[1]);
// Node body(mixin[2].clone());
n
.
children
->
pop_back
();
n
.
children
->
pop_back
();
// Environment m_env;
// // bind arguments
// for (int i = 0, j = 0; i < args.size(); ++i) {
// if (args[i].type == Node::assignment) {
// Node arg(args[i]);
// Token name(arg[0].token);
// if (!m_env.query(name)) {
// m_env[name] = eval(arg[1], context.global_env);
// }
// }
// else {
// // TO DO: ensure (j < params.size())
// Node param(params[j]);
// Token name(param.type == Node::variable ? param.token : param[0].token);
// m_env[name] = eval(args[i], context.global_env);
// ++j;
// }
// }
// // plug the holes with default arguments if any
// for (int i = 0; i < params.size(); ++i) {
// if (params[i].type == Node::assignment) {
// Node param(params[i]);
// Token name(param[0].token);
// if (!m_env.query(name)) {
// m_env[name] = eval(param[1], context.global_env);
// }
// }
// }
// m_env.link(context.global_env);
//
// for (int i = 0; i < body.size(); ++i) {
// body[i] = eval(body[i], m_env);
// }
//
// n += body;
n
+=
apply
(
mixin
,
args
,
context
.
global_env
);
}
break
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment