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
21108175
Commit
21108175
authored
Aug 29, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arg resolution
parent
e9c828c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
eval_apply.cpp
eval_apply.cpp
+19
-0
No files found.
eval_apply.cpp
View file @
21108175
...
...
@@ -611,6 +611,25 @@ namespace Sass {
}
}
bind_parameters
(
Environment
&
bindings
,
const
Node
params
,
const
Node
args
,
Node
prefix
,
Environment
&
env
,
map
<
string
,
Function
>&
f_env
,
Node_Factory
&
new_Node
,
Context
&
ctx
)
{
size_t
p_count
=
params
.
size
();
size_t
a_count
=
args
.
size
();
// if (p_count != a_count) {
// stringstream msg;
// msg << "expected " << p_count << " arguments; invoked with " << a_count;
// throw msg;
// }
for
(
size_t
i
=
0
,
S
=
args
.
size
();
i
<
S
;
++
i
)
{
Node
param
(
params
[
i
]);
Node
arg
(
args
[
i
]);
if
(
param
.
type
()
==
Node
::
variable
&&
arg
.
type
()
!=
Node
::
assignment
)
{
bindings
}
}
// Apply a mixin -- bind the arguments in a new environment, link the new
// environment to the current one, then copy the body and eval in the new
// environment.
...
...
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