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
6ff683eb
Commit
6ff683eb
authored
May 23, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pushing the refactor through the eval/apply functions.
parent
bd841192
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
3 deletions
+5
-3
eval_apply.cpp
eval_apply.cpp
+0
-0
node.hpp
node.hpp
+2
-0
node_factory.cpp
node_factory.cpp
+2
-2
node_factory.hpp
node_factory.hpp
+1
-1
No files found.
eval_apply.cpp
View file @
6ff683eb
This diff is collapsed.
Click to expand it.
node.hpp
View file @
6ff683eb
...
...
@@ -169,6 +169,7 @@ namespace Sass {
bool
empty
()
const
;
Node
&
at
(
size_t
i
)
const
;
Node
&
back
()
const
;
Node
&
operator
[](
size_t
i
)
const
;
void
pop_back
();
Node
&
push_back
(
Node
n
);
...
...
@@ -302,6 +303,7 @@ namespace Sass {
inline
bool
Node
::
empty
()
const
{
return
ip_
->
empty
();
}
inline
Node
&
Node
::
at
(
size_t
i
)
const
{
return
ip_
->
at
(
i
);
}
inline
Node
&
Node
::
back
()
const
{
return
ip_
->
back
();
}
inline
Node
&
Node
::
operator
[](
size_t
i
)
const
{
return
at
(
i
);
}
inline
void
Node
::
pop_back
()
{
ip_
->
pop_back
();
}
inline
Node
&
Node
::
push_back
(
Node
n
)
...
...
node_factory.cpp
View file @
6ff683eb
...
...
@@ -61,9 +61,9 @@ namespace Sass {
// }
// for making nodes representing numbers
Node
Node_Factory
::
operator
()(
string
path
,
size_t
line
,
double
v
)
Node
Node_Factory
::
operator
()(
string
path
,
size_t
line
,
double
v
,
Node
::
Type
type
)
{
Node_Impl
*
ip
=
alloc_Node_Impl
(
Node
::
number
,
path
,
line
);
Node_Impl
*
ip
=
alloc_Node_Impl
(
type
,
path
,
line
);
ip
->
value
.
numeric
=
v
;
return
Node
(
ip
);
}
...
...
node_factory.hpp
View file @
6ff683eb
...
...
@@ -25,7 +25,7 @@ namespace Sass {
// // for making nodes representing boolean values
// Node operator()(Node::Type type, string file, size_t line, bool b);
// for making nodes representing numbers
Node
operator
()(
string
file
,
size_t
line
,
double
v
);
Node
operator
()(
string
file
,
size_t
line
,
double
v
,
Node
::
Type
type
=
Node
::
number
);
// for making nodes representing numeric dimensions (e.g. 5px, 3em)
Node
operator
()(
string
file
,
size_t
line
,
double
v
,
const
Token
&
t
);
// for making nodes representing rgba color quads
...
...
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