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
82a7e91e
Commit
82a7e91e
authored
May 24, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactoring the node emitter functions.
parent
ca5286a7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
node.hpp
node.hpp
+12
-4
node_emitters.cpp
node_emitters.cpp
+0
-0
No files found.
node.hpp
View file @
82a7e91e
...
...
@@ -183,7 +183,7 @@ namespace Sass {
vector
<
Node
>::
iterator
first
,
vector
<
Node
>::
iterator
last
);
bool
&
boolean_value
()
const
;
bool
boolean_value
()
const
;
double
numeric_value
()
const
;
Token
token
()
const
;
Token
unit
()
const
;
...
...
@@ -196,6 +196,13 @@ namespace Sass {
bool
operator
<=
(
Node
rhs
)
const
;
bool
operator
>
(
Node
rhs
)
const
;
bool
operator
>=
(
Node
rhs
)
const
;
string
to_string
(
const
string
&
prefix
)
const
;
void
emit_nested_css
(
stringstream
&
buf
,
size_t
depth
,
const
vector
<
string
>&
prefixes
);
void
emit_nested_css
(
stringstream
&
buf
,
size_t
depth
);
void
emit_propset
(
stringstream
&
buf
,
size_t
depth
,
const
string
&
prefix
);
};
struct
Node_Impl
{
...
...
@@ -340,9 +347,9 @@ namespace Sass {
vector
<
Node
>::
iterator
last
)
{
ip_
->
children
.
insert
(
position
,
first
,
last
);
}
inline
bool
&
Node
::
boolean_value
()
const
{
return
ip_
->
boolean_value
();
}
inline
bool
Node
::
boolean_value
()
const
{
return
ip_
->
boolean_value
();
}
inline
double
Node
::
numeric_value
()
const
{
return
ip_
->
numeric_value
();
}
inline
Token
Node
::
token
()
const
{
return
ip_
->
value
.
token
;
}
inline
Token
Node
::
unit
()
const
{
return
ip_
->
unit
();
}
inline
Token
Node
::
token
()
const
{
return
ip_
->
value
.
token
;
}
inline
Token
Node
::
unit
()
const
{
return
ip_
->
unit
();
}
}
\ No newline at end of file
node_emitters.cpp
0 → 100644
View file @
82a7e91e
This diff is collapsed.
Click to expand it.
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