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
ef5be943
Commit
ef5be943
authored
Mar 29, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing some log statements.
parent
31c4d721
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
6 deletions
+0
-6
eval_apply.cpp
eval_apply.cpp
+0
-3
node.cpp
node.cpp
+0
-3
No files found.
eval_apply.cpp
View file @
ef5be943
...
@@ -245,7 +245,6 @@ namespace Sass {
...
@@ -245,7 +245,6 @@ namespace Sass {
{
{
// cerr << "APPLYING MIXIN: " << string(mixin[0].token) << endl;
// cerr << "APPLYING MIXIN: " << string(mixin[0].token) << endl;
Node
params
(
mixin
[
1
]);
Node
params
(
mixin
[
1
]);
if
(
mixin
[
2
][
0
].
has_expansions
)
cerr
<<
"ORIGINAL BODY FOR "
<<
string
(
mixin
[
0
].
token
)
<<
" HAS EXPANSIONS"
<<
endl
;
Node
body
(
mixin
[
2
].
clone
());
Node
body
(
mixin
[
2
].
clone
());
Environment
m_env
;
Environment
m_env
;
// cerr << "CLONED BODY" << endl;
// cerr << "CLONED BODY" << endl;
...
@@ -283,7 +282,6 @@ namespace Sass {
...
@@ -283,7 +282,6 @@ namespace Sass {
for
(
int
i
=
0
;
i
<
body
.
size
();
++
i
)
{
for
(
int
i
=
0
;
i
<
body
.
size
();
++
i
)
{
body
[
i
]
=
eval
(
body
[
i
],
m_env
);
body
[
i
]
=
eval
(
body
[
i
],
m_env
);
}
}
if
(
body
[
0
].
has_expansions
)
cerr
<<
"APPLYING MIXIN CONTAINING EXPANSIONS"
<<
endl
;
return
body
;
return
body
;
}
}
}
}
\ No newline at end of file
node.cpp
View file @
ef5be943
...
@@ -292,7 +292,6 @@ namespace Sass {
...
@@ -292,7 +292,6 @@ namespace Sass {
{
{
case
root
:
case
root
:
if
(
at
(
0
).
has_expansions
)
{
if
(
at
(
0
).
has_expansions
)
{
cerr
<<
"FLATTENING ROOT NODE"
<<
endl
;
flatten
();
flatten
();
}
}
for
(
int
i
=
0
;
i
<
children
->
size
();
++
i
)
{
for
(
int
i
=
0
;
i
<
children
->
size
();
++
i
)
{
...
@@ -441,11 +440,9 @@ namespace Sass {
...
@@ -441,11 +440,9 @@ namespace Sass {
void
Node
::
flatten
()
void
Node
::
flatten
()
{
{
cerr
<<
"FLATTENING A BLOCK"
<<
endl
;
if
(
type
!=
block
&&
type
!=
expansion
&&
type
!=
root
)
return
;
if
(
type
!=
block
&&
type
!=
expansion
&&
type
!=
root
)
return
;
for
(
int
i
=
0
;
i
<
size
();
++
i
)
{
for
(
int
i
=
0
;
i
<
size
();
++
i
)
{
if
(
at
(
i
).
type
==
expansion
)
{
if
(
at
(
i
).
type
==
expansion
)
{
cerr
<<
"FLATTEN: found an expansion node"
<<
endl
;
Node
expn
=
at
(
i
);
Node
expn
=
at
(
i
);
if
(
expn
[
0
].
has_expansions
)
expn
.
flatten
();
if
(
expn
[
0
].
has_expansions
)
expn
.
flatten
();
at
(
0
).
has_rules_or_comments
|=
expn
[
0
].
has_rules_or_comments
;
at
(
0
).
has_rules_or_comments
|=
expn
[
0
].
has_rules_or_comments
;
...
...
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