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
acb29562
Commit
acb29562
authored
Jun 08, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Even more correct implementation of 'append'.
parent
ed0de292
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
functions.cpp
functions.cpp
+11
-3
No files found.
functions.cpp
View file @
acb29562
...
...
@@ -505,8 +505,17 @@ namespace Sass {
Node
append_impl
(
const
vector
<
Token
>&
parameters
,
map
<
Token
,
Node
>&
bindings
,
bool
has_sep
,
Node_Factory
&
new_Node
)
{
Node
list
(
bindings
[
parameters
[
0
]]);
if
(
list
.
type
()
!=
Node
::
space_list
&&
list
.
type
()
!=
Node
::
comma_list
)
{
list
=
(
new_Node
(
Node
::
space_list
,
list
.
path
(),
list
.
line
(),
1
)
<<
list
);
switch
(
list
.
type
())
{
case
Node
:
:
space_list
:
case
Node
:
:
comma_list
:
case
Node
:
:
nil
:
{
// do nothing
}
break
;
// if the first arg isn't a list, wrap it in a singleton
default:
{
list
=
(
new_Node
(
Node
::
space_list
,
list
.
path
(),
list
.
line
(),
1
)
<<
list
);
}
break
;
}
Node
::
Type
sep_type
=
list
.
type
();
if
(
has_sep
)
{
...
...
@@ -533,7 +542,6 @@ namespace Sass {
Node
append_3
(
const
vector
<
Token
>&
parameters
,
map
<
Token
,
Node
>&
bindings
,
Node_Factory
&
new_Node
)
{
return
append_impl
(
parameters
,
bindings
,
true
,
new_Node
);
}
// Introspection Functions /////////////////////////////////////////////
...
...
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