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
d639b114
Commit
d639b114
authored
Mar 29, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaning up a bit of code.
parent
ca0690c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
eval_apply.cpp
eval_apply.cpp
+9
-9
No files found.
eval_apply.cpp
View file @
d639b114
...
...
@@ -175,9 +175,9 @@ namespace Sass {
// TO DO: find a way to merge the following two clauses
else
if
(
lhs
.
type
==
Node
::
number
&&
rhs
.
type
==
Node
::
hex_triple
)
{
if
(
op
!=
Node
::
sub
&&
op
!=
Node
::
div
)
{
double
h1
=
operate
(
op
,
lhs
.
numeric_value
,
rhs
.
children
->
at
(
0
)
.
numeric_value
);
double
h2
=
operate
(
op
,
lhs
.
numeric_value
,
rhs
.
children
->
at
(
1
)
.
numeric_value
);
double
h3
=
operate
(
op
,
lhs
.
numeric_value
,
rhs
.
children
->
at
(
2
)
.
numeric_value
);
double
h1
=
operate
(
op
,
lhs
.
numeric_value
,
rhs
[
0
]
.
numeric_value
);
double
h2
=
operate
(
op
,
lhs
.
numeric_value
,
rhs
[
1
]
.
numeric_value
);
double
h3
=
operate
(
op
,
lhs
.
numeric_value
,
rhs
[
2
]
.
numeric_value
);
acc
.
children
->
pop_back
();
acc
<<
Node
(
acc
.
line_number
,
h1
,
h2
,
h3
);
}
...
...
@@ -195,16 +195,16 @@ namespace Sass {
}
}
else
if
(
lhs
.
type
==
Node
::
hex_triple
&&
rhs
.
type
==
Node
::
number
)
{
double
h1
=
operate
(
op
,
lhs
.
children
->
at
(
0
)
.
numeric_value
,
rhs
.
numeric_value
);
double
h2
=
operate
(
op
,
lhs
.
children
->
at
(
1
)
.
numeric_value
,
rhs
.
numeric_value
);
double
h3
=
operate
(
op
,
lhs
.
children
->
at
(
2
)
.
numeric_value
,
rhs
.
numeric_value
);
double
h1
=
operate
(
op
,
lhs
[
0
]
.
numeric_value
,
rhs
.
numeric_value
);
double
h2
=
operate
(
op
,
lhs
[
1
]
.
numeric_value
,
rhs
.
numeric_value
);
double
h3
=
operate
(
op
,
lhs
[
2
]
.
numeric_value
,
rhs
.
numeric_value
);
acc
.
children
->
pop_back
();
acc
<<
Node
(
acc
.
line_number
,
h1
,
h2
,
h3
);
}
else
if
(
lhs
.
type
==
Node
::
hex_triple
&&
rhs
.
type
==
Node
::
hex_triple
)
{
double
h1
=
operate
(
op
,
lhs
.
children
->
at
(
0
).
numeric_value
,
rhs
.
children
->
at
(
0
)
.
numeric_value
);
double
h2
=
operate
(
op
,
lhs
.
children
->
at
(
1
).
numeric_value
,
rhs
.
children
->
at
(
1
)
.
numeric_value
);
double
h3
=
operate
(
op
,
lhs
.
children
->
at
(
2
).
numeric_value
,
rhs
.
children
->
at
(
2
)
.
numeric_value
);
double
h1
=
operate
(
op
,
lhs
[
0
].
numeric_value
,
rhs
[
0
]
.
numeric_value
);
double
h2
=
operate
(
op
,
lhs
[
1
].
numeric_value
,
rhs
[
1
]
.
numeric_value
);
double
h3
=
operate
(
op
,
lhs
[
2
].
numeric_value
,
rhs
[
2
]
.
numeric_value
);
acc
.
children
->
pop_back
();
acc
<<
Node
(
acc
.
line_number
,
h1
,
h2
,
h3
);
}
...
...
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