Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
inox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LARA
inox
Commits
6bc489e2
Commit
6bc489e2
authored
10 years ago
by
Emmanouil (Manos) Koukoutos
Browse files
Options
Downloads
Patches
Plain Diff
Make constructors of Expr subclasses with companion .apply methods private
parent
051688f8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/scala/leon/purescala/Trees.scala
+5
-5
5 additions, 5 deletions
src/main/scala/leon/purescala/Trees.scala
with
5 additions
and
5 deletions
src/main/scala/leon/purescala/Trees.scala
+
5
−
5
View file @
6bc489e2
...
...
@@ -305,7 +305,7 @@ object Trees {
if
(
or
==
null
)
None
else
Some
(
or
.
exprs
)
}
class
Or
(
val
exprs
:
Seq
[
Expr
])
extends
Expr
with
FixedType
{
class
Or
private
[
Trees
]
(
val
exprs
:
Seq
[
Expr
])
extends
Expr
with
FixedType
{
val
fixedType
=
BooleanType
assert
(
exprs
.
size
>=
2
)
...
...
@@ -332,7 +332,7 @@ object Trees {
}
}
class
Iff
(
val
left
:
Expr
,
val
right
:
Expr
)
extends
Expr
with
FixedType
{
class
Iff
private
[
Trees
]
(
val
left
:
Expr
,
val
right
:
Expr
)
extends
Expr
with
FixedType
{
val
fixedType
=
BooleanType
override
def
equals
(
that
:
Any
)
:
Boolean
=
(
that
!=
null
)
&&
(
that
match
{
...
...
@@ -356,7 +356,7 @@ object Trees {
if
(
imp
==
null
)
None
else
Some
(
imp
.
left
,
imp
.
right
)
}
class
Implies
(
val
left
:
Expr
,
val
right
:
Expr
)
extends
Expr
with
FixedType
{
class
Implies
private
[
Trees
]
(
val
left
:
Expr
,
val
right
:
Expr
)
extends
Expr
with
FixedType
{
val
fixedType
=
BooleanType
override
def
equals
(
that
:
Any
)
:
Boolean
=
(
that
!=
null
)
&&
(
that
match
{
...
...
@@ -379,7 +379,7 @@ object Trees {
}
}
class
Not
private
(
val
expr
:
Expr
)
extends
Expr
with
FixedType
{
class
Not
private
[
Trees
]
(
val
expr
:
Expr
)
extends
Expr
with
FixedType
{
val
fixedType
=
BooleanType
override
def
equals
(
that
:
Any
)
:
Boolean
=
(
that
!=
null
)
&&
(
that
match
{
...
...
@@ -414,7 +414,7 @@ object Trees {
}
}
class
Equals
(
val
left
:
Expr
,
val
right
:
Expr
)
extends
Expr
with
FixedType
{
class
Equals
private
[
Trees
]
(
val
left
:
Expr
,
val
right
:
Expr
)
extends
Expr
with
FixedType
{
val
fixedType
=
BooleanType
override
def
equals
(
that
:
Any
)
:
Boolean
=
(
that
!=
null
)
&&
(
that
match
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment