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
db8123f0
Commit
db8123f0
authored
Jun 07, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Need to eval the list in an @each directive.
parent
a8ca4ab9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
eval_apply.cpp
eval_apply.cpp
+5
-2
node.hpp
node.hpp
+2
-1
No files found.
eval_apply.cpp
View file @
db8123f0
...
...
@@ -377,7 +377,7 @@ namespace Sass {
Node
fake_mixin
(
new_Node
(
Node
::
mixin
,
expr
.
path
(),
expr
.
line
(),
3
));
Node
fake_param
(
new_Node
(
Node
::
parameters
,
expr
.
path
(),
expr
.
line
(),
1
));
fake_mixin
<<
new_Node
(
Node
::
none
,
""
,
0
,
0
)
<<
(
fake_param
<<
expr
[
0
])
<<
expr
[
2
];
Node
list
(
e
xpr
[
1
]
);
Node
list
(
e
val
(
expr
[
1
],
prefix
,
env
,
f_env
,
new_Node
,
ctx
)
);
// If the list isn't really a list, make a singleton out of it.
if
(
list
.
type
()
!=
Node
::
space_list
&&
list
.
type
()
!=
Node
::
comma_list
)
{
list
=
(
new_Node
(
Node
::
space_list
,
list
.
path
(),
list
.
line
(),
1
)
<<
list
);
...
...
@@ -730,7 +730,10 @@ namespace Sass {
case
Node
:
:
each_directive
:
{
Node
iter_var
(
stm
[
0
]);
Node
list
(
stm
[
1
]);
Node
list
(
eval
(
stm
[
1
],
Node
(),
bindings
,
ctx
.
function_env
,
new_Node
,
ctx
));
if
(
list
.
type
()
!=
Node
::
comma_list
&&
list
.
type
()
!=
Node
::
space_list
)
{
list
=
(
new_Node
(
Node
::
space_list
,
list
.
path
(),
list
.
line
(),
1
)
<<
list
);
}
Node
each_body
(
stm
[
2
]);
Environment
each_env
;
// re-use this env for each iteration
each_env
.
link
(
bindings
);
...
...
node.hpp
View file @
db8123f0
...
...
@@ -265,7 +265,8 @@ namespace Sass {
has_backref
(
false
),
from_variable
(
false
),
should_eval
(
false
),
is_unquoted
(
false
)
is_unquoted
(
false
),
has_been_extended
(
false
)
{
}
bool
is_numeric
()
...
...
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