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
8452dd3c
Commit
8452dd3c
authored
Apr 30, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Looking into reorganizing the Node struct.
parent
6b8405d1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
0 deletions
+48
-0
node_pimpl.cpp
node_pimpl.cpp
+16
-0
node_pimpl.hpp
node_pimpl.hpp
+32
-0
No files found.
node_pimpl.cpp
0 → 100644
View file @
8452dd3c
namespace
Sass
{
inline
bool
Node
::
has_children
()
{
return
ip_
->
has_children
;
}
inline
bool
Node
::
has_statements
()
{
return
ip_
->
has_statements
;
}
inline
bool
Node
::
has_blocks
()
{
return
ip_
->
has_blocks
;
}
inline
bool
Node
::
has_expansions
()
{
return
ip_
->
has_expansions
;
}
inline
bool
Node
::
has_backref
()
{
return
ip_
->
has_backref
;
}
inline
bool
Node
::
from_variable
()
{
return
ip_
->
from_variable
;
}
inline
bool
Node
::
eval_me
()
{
return
ip_
->
eval_me
;
}
inline
bool
Node
::
is_unquoted
()
{
return
ip_
->
is_unquoted
;
}
inline
bool
Node
::
is_numeric
()
{
return
ip_
->
is_numeric
();
}
inline
size_t
Node
::
line_number
()
{
return
ip_
->
line_number
;
}
}
\ No newline at end of file
node_pimpl.hpp
0 → 100644
View file @
8452dd3c
#include <string>
namespace
Sass
{
using
namespace
std
;
class
Node
{
private
:
Node_Impl
*
ip_
;
public
:
bool
has_children
();
bool
has_statements
();
bool
has_blocks
();
bool
has_expansions
();
bool
has_backref
();
bool
from_variable
();
bool
eval_me
();
bool
is_unquoted
();
bool
is_numeric
();
string
file_name
()
const
;
size_t
line_number
()
const
;
size_t
size
()
const
;
Node_Impl
&
at
(
size_t
i
)
const
;
Node_Impl
&
operator
[](
size_t
i
)
const
;
Node_Impl
&
push_back
(
Node
n
);
Node_Impl
&
operator
<<
(
Node
n
);
};
}
\ No newline at end of file
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