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
a9c08780
Commit
a9c08780
authored
Mar 27, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more environment methods
parent
ed37f80d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
10 deletions
+18
-10
context.hpp
context.hpp
+18
-10
No files found.
context.hpp
View file @
a9c08780
...
@@ -3,7 +3,7 @@ namespace Sass {
...
@@ -3,7 +3,7 @@ namespace Sass {
struct
Context
{
struct
Context
{
map
<
Token
,
Node
>
environment
;
map
<
Token
,
Node
>
environment
;
Environment
environment
;
//
Environment environment;
// map<Token, Node> mixins;
// map<Token, Node> mixins;
vector
<
Node
>
pending
;
vector
<
Node
>
pending
;
vector
<
char
*>
source_refs
;
vector
<
char
*>
source_refs
;
...
@@ -25,13 +25,20 @@ namespace Sass {
...
@@ -25,13 +25,20 @@ namespace Sass {
}
}
};
};
// struct Environment {
struct
Environment
{
// vector< map<Token, Node> > stack;
vector
<
map
<
Token
,
Node
>
>
stack
;
//
// Environment()
Environment
()
// : stack(vector< map<Token, Node> >(1, ))
:
stack
(
vector
<
map
<
Token
,
Node
>
>
())
// {
{
// stack.reserve
stack
.
reserve
(
2
);
//
stack
.
push_back
(
map
<
Token
,
Node
>
());
// };
}
void
extend
()
{
stack
.
push_back
(
map
<
Token
,
Node
>
());
}
};
}
}
\ 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