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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JastAdd
Reusable Analysis
Commits
c958ec21
Commit
c958ec21
authored
5 years ago
by
Johannes Mey
Browse files
Options
Downloads
Patches
Plain Diff
align names of mapping relations to types they refer to
parent
8d2a53d3
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
scope4j/src/main/jastadd/ProgramToScopeTree.jrag
+4
-4
4 additions, 4 deletions
scope4j/src/main/jastadd/ProgramToScopeTree.jrag
scope4j/src/main/jastadd/ProgramToScopeTree.relast
+5
-4
5 additions, 4 deletions
scope4j/src/main/jastadd/ProgramToScopeTree.relast
with
9 additions
and
8 deletions
scope4j/src/main/jastadd/ProgramToScopeTree.jrag
+
4
−
4
View file @
c958ec21
...
...
@@ -24,7 +24,7 @@ aspect ProgramToScopeTree {
}
}
public void Protected
Class
DeclScope.updateInheritance() {
public void Protected
Type
DeclScope.updateInheritance() {
if (getTypeDecl().isClassDecl()) {
ClassDecl classDecl = (ClassDecl)getTypeDecl();
if (classDecl.superclass().isClassDecl() && classDecl.superclass().compilationUnit().fromSource()) {
...
...
@@ -79,20 +79,20 @@ aspect ScopeTreeConstructors {
}
syn lazy TypeDeclScope TypeDecl.asScope() {
TypeDeclScope scope = new Private
Class
DeclScope();
TypeDeclScope scope = new Private
Type
DeclScope();
scope.setTypeDecl(this);
return scope;
}
syn lazy TypeDeclScope TypeDecl.asProtectedScope() {
TypeDeclScope scope = new Protected
Class
DeclScope();
TypeDeclScope scope = new Protected
Type
DeclScope();
scope.setTypeDecl(this);
scope.addElement(packageScope());
return scope;
}
syn lazy TypeDeclScope TypeDecl.asPackageScope() {
TypeDeclScope scope = new Package
Class
DeclScope();
TypeDeclScope scope = new Package
Type
DeclScope();
scope.setTypeDecl(this);
scope.addElement(scope());
return scope;
...
...
This diff is collapsed.
Click to expand it.
scope4j/src/main/jastadd/ProgramToScopeTree.relast
+
5
−
4
View file @
c958ec21
...
...
@@ -2,12 +2,13 @@
rel ScopeTree.Program -> Program;
abstract JavaScope : Scope;
TypeDeclScope : JavaScope;
abstract
TypeDeclScope : JavaScope;
rel TypeDeclScope.typeDecl -> TypeDecl;
ProtectedClassDeclScope : TypeDeclScope;
PackageClassDeclScope : TypeDeclScope;
PrivateClassDeclScope : TypeDeclScope;
PublicTypeDeclScope : TypeDeclScope;
ProtectedTypeDeclScope : TypeDeclScope;
PackageTypeDeclScope : TypeDeclScope;
PrivateTypeDeclScope : TypeDeclScope;
BlockScope : JavaScope;
rel BlockScope.block -> Block;
...
...
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