Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ProB Rodin Plugin
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
ProB Rodin Plugin
Commits
45ca4071
Commit
45ca4071
authored
11 years ago
by
Daniel Plagge
Browse files
Options
Downloads
Patches
Plain Diff
Added comments, made SuppressWarnings annotation more specific
parent
3f9e424d
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
de.prob.core/src/de/prob/eventb/translator/internal/TranslationVisitor.java
+2
-6
2 additions, 6 deletions
...e/prob/eventb/translator/internal/TranslationVisitor.java
with
2 additions
and
6 deletions
de.prob.core/src/de/prob/eventb/translator/internal/TranslationVisitor.java
+
2
−
6
View file @
45ca4071
...
@@ -52,15 +52,10 @@ import org.eventb.core.ast.extension.IExpressionExtension;
...
@@ -52,15 +52,10 @@ import org.eventb.core.ast.extension.IExpressionExtension;
import
de.be4.classicalb.core.parser.node.*
;
import
de.be4.classicalb.core.parser.node.*
;
/**
/**
* The global SuppressWarnings annotation is used because the deprecated code is
* This visitor on an Event-B AST generates an AST in ProB's format.
* used to check if this new implementation computes the same results as the old
* code.
*
* That should be removed after a while.
*
*
* @author plagge
* @author plagge
*/
*/
@SuppressWarnings
(
"deprecation"
)
public
class
TranslationVisitor
implements
ISimpleVisitor
{
public
class
TranslationVisitor
implements
ISimpleVisitor
{
private
static
final
String
UNCOVERED_PREDICATE
=
"Uncovered Predicate"
;
private
static
final
String
UNCOVERED_PREDICATE
=
"Uncovered Predicate"
;
...
@@ -615,6 +610,7 @@ public class TranslationVisitor implements ISimpleVisitor {
...
@@ -615,6 +610,7 @@ public class TranslationVisitor implements ISimpleVisitor {
predicates
.
push
(
result
);
predicates
.
push
(
result
);
}
}
@SuppressWarnings
(
"deprecation"
)
@Override
@Override
public
void
visitUnaryExpression
(
final
UnaryExpression
expression
)
{
public
void
visitUnaryExpression
(
final
UnaryExpression
expression
)
{
final
PExpression
exp
=
getExpression
(
expression
.
getChild
());
final
PExpression
exp
=
getExpression
(
expression
.
getChild
());
...
...
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