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
2ac2924f
Commit
2ac2924f
authored
May 31, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing a bug in the flattener.
parent
4613579c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletions
+14
-1
node.cpp
node.cpp
+14
-1
No files found.
node.cpp
View file @
2ac2924f
...
...
@@ -13,7 +13,20 @@ namespace Sass {
void
Node
::
flatten
()
{
if
(
type
()
!=
block
&&
type
()
!=
expansion
&&
type
()
!=
root
&&
type
()
!=
for_through_directive
&&
type
()
!=
for_to_directive
)
return
;
switch
(
type
())
{
case
block
:
case
expansion
:
case
root
:
case
for_through_directive
:
case
for_to_directive
:
case
each_directive
:
case
while_directive
:
break
;
default
:
return
;
}
// size can change during flattening, so we need to call size() on each pass
for
(
size_t
i
=
0
;
i
<
size
();
++
i
)
{
switch
(
at
(
i
).
type
())
...
...
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