Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
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
abdullh.alsoleman
Front-End
Commits
d29a0b52
Commit
d29a0b52
authored
Jul 08, 2015
by
Chinmay Garde
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address initial code review concerns
parent
99dc91eb
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
80 additions
and
80 deletions
+80
-80
constant_member.dart
packages/cassowary/lib/constant_member.dart
+1
-1
param.dart
packages/cassowary/lib/param.dart
+2
-2
result.dart
packages/cassowary/lib/result.dart
+11
-11
symbol.dart
packages/cassowary/lib/symbol.dart
+1
-1
variable.dart
packages/cassowary/lib/variable.dart
+2
-2
cassowary_test.dart
packages/cassowary/test/cassowary_test.dart
+63
-63
No files found.
packages/cassowary/lib/constant_member.dart
View file @
d29a0b52
...
...
@@ -14,6 +14,6 @@ class ConstantMember extends _EquationMember {
Expression
asExpression
()
=>
new
Expression
([],
this
.
value
);
}
ConstantMember
CM
(
num
value
)
{
ConstantMember
cm
(
double
value
)
{
return
new
ConstantMember
(
value
);
}
packages/cassowary/lib/param.dart
View file @
d29a0b52
...
...
@@ -12,8 +12,8 @@ class Param extends _EquationMember {
variable
.
_owner
=
this
;
}
Param
.
withContext
(
ctx
)
:
variable
=
new
Variable
(
0.0
),
Param
.
withContext
(
ctx
,
[
double
value
=
0.0
]
)
:
variable
=
new
Variable
(
value
),
context
=
ctx
{
variable
.
_owner
=
this
;
}
...
...
packages/cassowary/lib/result.dart
View file @
d29a0b52
...
...
@@ -5,25 +5,25 @@
part of
cassowary
;
class
Result
{
final
bool
error
;
final
String
message
;
final
bool
error
;
const
Result
(
this
.
message
,
this
.
error
)
;
const
Result
(
this
.
message
,
{
bool
isError:
true
})
:
error
=
isError
;
static
final
Result
success
=
const
Result
(
"Success"
,
false
);
static
final
Result
unimplemented
=
const
Result
(
"Unimplemented"
,
true
);
static
final
Result
success
=
const
Result
(
"Success"
,
isError:
false
);
static
final
Result
unimplemented
=
const
Result
(
"Unimplemented"
);
static
final
Result
duplicateConstraint
=
const
Result
(
"Duplicate Constraint"
,
true
);
const
Result
(
"Duplicate Constraint"
);
static
final
Result
unsatisfiableConstraint
=
const
Result
(
"Unsatisfiable Constraint"
,
true
);
const
Result
(
"Unsatisfiable Constraint"
);
static
final
Result
unknownConstraint
=
const
Result
(
"Unknown Constraint"
,
true
);
const
Result
(
"Unknown Constraint"
);
static
final
Result
duplicateEditVariable
=
const
Result
(
"Duplicate Edit Variable"
,
true
);
const
Result
(
"Duplicate Edit Variable"
);
static
final
Result
badRequiredStrength
=
const
Result
(
"Bad Required Strength"
,
true
);
const
Result
(
"Bad Required Strength"
);
static
final
Result
unknownEditVariable
=
const
Result
(
"Unknown Edit Variable"
,
true
);
const
Result
(
"Unknown Edit Variable"
);
static
final
Result
internalSolverError
=
const
Result
(
"Internal Solver Error"
,
true
);
const
Result
(
"Internal Solver Error"
);
}
packages/cassowary/lib/symbol.dart
View file @
d29a0b52
...
...
@@ -8,7 +8,7 @@ enum _SymbolType { invalid, external, slack, error, dummy, }
class
_Symbol
{
final
_SymbolType
type
;
int
tick
;
final
int
tick
;
_Symbol
(
this
.
type
,
this
.
tick
);
...
...
packages/cassowary/lib/variable.dart
View file @
d29a0b52
...
...
@@ -5,12 +5,12 @@
part of
cassowary
;
class
Variable
{
double
value
=
0.0
;
double
value
;
String
name
;
Param
_owner
;
int
_tick
;
final
int
_tick
;
static
int
_total
=
0
;
Variable
(
this
.
value
)
:
_tick
=
_total
++;
...
...
packages/cassowary/test/cassowary_test.dart
View file @
d29a0b52
This diff is collapsed.
Click to expand it.
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