Skip to content

Commit

Permalink
update model string
Browse files Browse the repository at this point in the history
  • Loading branch information
badetitou committed May 2, 2024
1 parent 98fd19b commit 70481c4
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 24 deletions.
9 changes: 9 additions & 0 deletions src/Carrefour-Exporter/CRFExporter.class.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"
I combines `FAMIX2JavaVisitor` and `FASTJavaExportVisitor` to enable the generation of Java code from high level representation combined with AST level.
The basic idea is to modify the way the code of `FamixTMethod` is exported to switch from Famix environement to Fast environment using Carrefour binding.
"
Class {
#name : #CRFExporter,
#superclass : #Object,
#category : #'Carrefour-Exporter'
}
1 change: 1 addition & 0 deletions src/Carrefour-Exporter/package.st
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Package { #name : #'Carrefour-Exporter' }
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ CRFBinderVisitor >> visitFASTJavaClassProperty: aFASTJavaVariableDeclarator [
| classes |
classes := aFASTJavaVariableDeclarator type name = 'this'
ifFalse: [
self sourceFamixEntity mooseModel allClasses
self sourceFamixEntity mooseModel allClasses asOrderedCollection
detect: [ :class |
class name = aFASTJavaVariableDeclarator type name ]
ifFound: [ :class | { class } ]
Expand Down
Loading

0 comments on commit 70481c4

Please sign in to comment.