Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Reusable Analysis
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
JastAdd
Reusable Analysis
Commits
735b53ed
Commit
735b53ed
authored
5 years ago
by
Johannes Mey
Browse files
Options
Downloads
Patches
Plain Diff
move method to correct aspect
parent
d6611357
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
reusablecfg/src/main/jastadd/AlreadyClosedAnalysis.jrag
+4
-0
4 additions, 0 deletions
reusablecfg/src/main/jastadd/AlreadyClosedAnalysis.jrag
reusablecfg/src/main/jastadd/VariableDeclarationScope.jrag
+0
-4
0 additions, 4 deletions
reusablecfg/src/main/jastadd/VariableDeclarationScope.jrag
with
4 additions
and
4 deletions
reusablecfg/src/main/jastadd/AlreadyClosedAnalysis.jrag
+
4
−
0
View file @
735b53ed
...
@@ -87,4 +87,8 @@ aspect AlreadyClosedAnalysis {
...
@@ -87,4 +87,8 @@ aspect AlreadyClosedAnalysis {
/** Check if this is a Reader or Writer. */
/** Check if this is a Reader or Writer. */
syn boolean TypeDecl.isCloseable() =
syn boolean TypeDecl.isCloseable() =
!isUnknown() && instanceOf(lookupType("java.io", "Closeable"));
!isUnknown() && instanceOf(lookupType("java.io", "Closeable"));
/** @return {@code true} if this method access has the given variable as receiver. */
syn boolean MethodAccess.hasReceiver(Variable receiver) =
hasPrevExpr() && prevExpr().isVariable(receiver);
}
}
This diff is collapsed.
Click to expand it.
reusablecfg/src/main/jastadd/VariableDeclarationScope.jrag
+
0
−
4
View file @
735b53ed
...
@@ -20,10 +20,6 @@
...
@@ -20,10 +20,6 @@
*/
*/
aspect VariableDeclarationScope {
aspect VariableDeclarationScope {
/** @return {@code true} if this method access has the given variable as receiver. */
syn boolean MethodAccess.hasReceiver(Variable receiver) =
hasPrevExpr() && prevExpr().isVariable(receiver);
/**
/**
* Test if the CFG node is tied to a statement that declares the variable,
* Test if the CFG node is tied to a statement that declares the variable,
* or if the declaration of the variable is somewhere inside the statement this
* or if the declaration of the variable is somewhere inside the statement this
...
...
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