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
a1fc4ba9
Commit
a1fc4ba9
authored
Jun 01, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented pure-Sass functions.
parent
f1de297b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
eval_apply.cpp
eval_apply.cpp
+13
-2
No files found.
eval_apply.cpp
View file @
a1fc4ba9
...
@@ -720,11 +720,22 @@ namespace Sass {
...
@@ -720,11 +720,22 @@ namespace Sass {
}
break
;
}
break
;
case
Node
:
:
while_directive
:
{
case
Node
:
:
while_directive
:
{
Node
pred_expr
(
stm
[
0
]);
Node
while_body
(
stm
[
1
]);
Environment
while_env
;
// re-use this env for each iteration
while_env
.
link
(
bindings
);
Node
pred_val
(
eval
(
pred_expr
,
Node
(),
bindings
,
ctx
.
function_env
,
new_Node
,
ctx
));
while
((
pred_val
.
type
()
!=
Node
::
boolean
)
||
pred_val
.
boolean_value
())
{
Node
v
(
function_eval
(
name
,
while_body
,
while_env
,
new_Node
,
ctx
));
if
(
v
.
is_null_ptr
())
{
pred_val
=
eval
(
pred_expr
,
Node
(),
bindings
,
ctx
.
function_env
,
new_Node
,
ctx
);
continue
;
}
else
return
v
;
}
}
break
;
}
break
;
case
Node
:
:
return_directive
:
{
case
Node
:
:
return_directive
:
{
cerr
<<
"blah"
<<
endl
;
return
eval
(
stm
[
0
],
Node
(),
bindings
,
ctx
.
function_env
,
new_Node
,
ctx
);
return
eval
(
stm
[
0
],
Node
(),
bindings
,
ctx
.
function_env
,
new_Node
,
ctx
);
}
break
;
}
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