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
6bfbe20d
Commit
6bfbe20d
authored
8 years ago
by
Nicolas Voirol
Browse files
Options
Downloads
Patches
Plain Diff
Moved the Identifier alias to the root package
parent
fecfef7f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/scala/inox/ast/Trees.scala
+0
-15
0 additions, 15 deletions
src/main/scala/inox/ast/Trees.scala
src/main/scala/inox/package.scala
+12
-2
12 additions, 2 deletions
src/main/scala/inox/package.scala
with
12 additions
and
17 deletions
src/main/scala/inox/ast/Trees.scala
+
0
−
15
View file @
6bfbe20d
...
@@ -15,21 +15,6 @@ trait Trees
...
@@ -15,21 +15,6 @@ trait Trees
with
Printers
with
Printers
with
TreeOps
{
with
TreeOps
{
/** We provide aliases to [[ast.Identifier]] and [[ast.FreshIdentifier]] here in
* order for {{{import trees._}}} to also provide these. Note that this DOES NOT
* mean that [[Identifier]] or [[FreshIdentifier]] become dependent types!!
*
* I (@nv) feel it makes sense for all types necessary for expression/tree
* construction to be available from a single import. It would be rather
* counter-intuitive for an Inox user to have to go in search of the
* [[ast.Identifier]] type in the [[ast]] package when all other expression and
* definitions have been imported.
*/
type
Identifier
=
ast
.
Identifier
/** @see [[Identifier]] for a discussion about why this is here. */
val
FreshIdentifier
=
ast
.
FreshIdentifier
class
Unsupported
(
t
:
Tree
,
msg
:
String
)(
implicit
ctx
:
Context
)
class
Unsupported
(
t
:
Tree
,
msg
:
String
)(
implicit
ctx
:
Context
)
extends
Exception
(
s
"${t.asString(PrinterOptions.fromContext(ctx))}@${t.getPos} $msg"
)
extends
Exception
(
s
"${t.asString(PrinterOptions.fromContext(ctx))}@${t.getPos} $msg"
)
...
...
This diff is collapsed.
Click to expand it.
src/main/scala/inox/package.scala
+
12
−
2
View file @
6bfbe20d
/* Copyright 2009-2016 EPFL, Lausanne */
/* Copyright 2009-2016 EPFL, Lausanne */
import
inox.ast.Identifier
/** Core package of the Inox solving interface
/** Core package of the Inox solving interface
*
*
* == Structure ==
* == Structure ==
...
@@ -23,6 +21,18 @@ package object inox {
...
@@ -23,6 +21,18 @@ package object inox {
case
class
FatalError
(
msg
:
String
)
extends
Exception
(
msg
)
case
class
FatalError
(
msg
:
String
)
extends
Exception
(
msg
)
/** We provide aliases to [[ast.Identifier]] and [[ast.FreshIdentifier]] here
* for a more natural import experience.
*
* Indeed, as Inox typically follows a pattern of nesting package clauses with
* the outer-most being {{{package inox}}}, including these basic definitions
* in the default imports makes my (@nv) life easier.
*/
type
Identifier
=
ast
.
Identifier
/** @see [[Identifier]] for why this is here */
val
FreshIdentifier
=
ast
.
FreshIdentifier
type
InoxProgram
=
Program
{
val
trees
:
inox.trees.
type
}
type
InoxProgram
=
Program
{
val
trees
:
inox.trees.
type
}
object
InoxProgram
{
object
InoxProgram
{
...
...
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