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
049916b0
Commit
049916b0
authored
Jun 04, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Working on more inheritance stuff.
parent
edf5bf06
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
5 deletions
+4
-5
eval_apply.cpp
eval_apply.cpp
+0
-0
eval_apply.hpp
eval_apply.hpp
+1
-1
node.hpp
node.hpp
+2
-3
sass_interface.cpp
sass_interface.cpp
+1
-1
No files found.
eval_apply.cpp
View file @
049916b0
This diff is collapsed.
Click to expand it.
eval_apply.hpp
View file @
049916b0
...
...
@@ -20,7 +20,7 @@ namespace Sass {
Node
apply_function
(
const
Function
&
f
,
const
Node
args
,
Node
prefix
,
Environment
&
env
,
map
<
pair
<
string
,
size_t
>
,
Function
>&
f_env
,
Node_Factory
&
new_Node
,
Context
&
ctx
);
Node
expand_selector
(
Node
sel
,
Node
pre
,
Node_Factory
&
new_Node
);
Node
expand_backref
(
Node
sel
,
Node
pre
);
void
extend_selectors
(
vector
<
pair
<
Node
,
Node
>
>&
,
Node_Factory
&
);
void
extend_selectors
(
vector
<
pair
<
Node
,
Node
>
>&
,
multimap
<
Node
,
Node
>&
,
Node_Factory
&
);
Node
generate_extension
(
Node
extendee
,
Node
extender
,
Node_Factory
&
new_Node
);
Node
selector_prefix
(
Node
sel
,
Node_Factory
&
new_Node
);
...
...
node.hpp
View file @
049916b0
...
...
@@ -204,7 +204,8 @@ namespace Sass {
Token
token
()
const
;
Token
unit
()
const
;
bool
is_null_ptr
()
const
;
bool
is_null_ptr
()
const
{
return
!
ip_
;
}
bool
is
(
Node
n
)
const
{
return
ip_
==
n
.
ip_
;
}
void
flatten
();
...
...
@@ -407,6 +408,4 @@ namespace Sass {
inline
Token
Node
::
token
()
const
{
return
ip_
->
value
.
token
;
}
inline
Token
Node
::
unit
()
const
{
return
ip_
->
unit
();
}
inline
bool
Node
::
is_null_ptr
()
const
{
return
!
ip_
;
}
}
sass_interface.cpp
View file @
049916b0
...
...
@@ -45,7 +45,7 @@ extern "C" {
doc
.
context
.
function_env
,
doc
.
context
.
new_Node
,
doc
.
context
);
extend_selectors
(
doc
.
context
.
pending_extensions
,
doc
.
context
.
new_Node
);
extend_selectors
(
doc
.
context
.
pending_extensions
,
doc
.
context
.
extensions
,
doc
.
context
.
new_Node
);
string
output
(
doc
.
emit_css
(
static_cast
<
Document
::
CSS_Style
>
(
style
)));
char
*
c_output
=
(
char
*
)
malloc
(
output
.
size
()
+
1
);
strcpy
(
c_output
,
output
.
c_str
());
...
...
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