-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from moosetechnology/cleaning
Cleaning
- Loading branch information
Showing
37 changed files
with
451 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Extension { #name : #FamixJavaClass } | ||
|
||
{ #category : #'*FAST-Java-SmaCC-Importer' } | ||
FamixJavaClass >> generateFastIfNotDoneAndBind [ | ||
|
||
self fastDeclaration ifNotEmpty: [ | ||
^ self fastDeclaration anyOne mooseModel ]. | ||
self fastTypeDefinition ifNotNil: [ | ||
^ self fastTypeDefinition mooseModel ]. | ||
^ self isAnonymousClass | ||
ifFalse: [ self bindFASTModel ] | ||
ifTrue: [ | ||
((self | ||
allAtScope: FamixTClass | ||
until: [ :c | | ||
(c isKindOf: FamixJavaClass) and: [ c isAnonymousClass not ] ]) | ||
asOrderedCollection \ { self }) anyOne bindFASTModel ] | ||
] |
18 changes: 18 additions & 0 deletions
18
src/FAST-Java-SmaCC-Importer/FamixJavaException.extension.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Extension { #name : #FamixJavaException } | ||
|
||
{ #category : #'*FAST-Java-SmaCC-Importer' } | ||
FamixJavaException >> generateFastIfNotDoneAndBind [ | ||
|
||
self fastDeclaration ifNotEmpty: [ | ||
^ self fastDeclaration anyOne mooseModel ]. | ||
self fastTypeDefinition ifNotNil: [ | ||
^ self fastTypeDefinition mooseModel ]. | ||
^ self isAnonymousClass | ||
ifFalse: [ self bindFASTModel ] | ||
ifTrue: [ | ||
((self | ||
allAtScope: FamixTClass | ||
until: [ :c | | ||
(c isKindOf: FamixJavaClass) and: [ c isAnonymousClass not ] ]) | ||
asOrderedCollection \ { self }) anyOne bindFASTModel ] | ||
] |
18 changes: 18 additions & 0 deletions
18
src/FAST-Java-SmaCC-Importer/FamixJavaInterface.extension.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Extension { #name : #FamixJavaInterface } | ||
|
||
{ #category : #'*FAST-Java-SmaCC-Importer' } | ||
FamixJavaInterface >> generateFastIfNotDoneAndBind [ | ||
|
||
self fastDeclaration ifNotEmpty: [ | ||
^ self fastDeclaration anyOne mooseModel ]. | ||
self fastTypeDefinition ifNotNil: [ | ||
^ self fastTypeDefinition mooseModel ]. | ||
^ self isAnonymousClass | ||
ifFalse: [ self bindFASTModel ] | ||
ifTrue: [ | ||
((self | ||
allAtScope: FamixTClass | ||
until: [ :c | | ||
(c isKindOf: FamixJavaClass) and: [ c isAnonymousClass not ] ]) | ||
asOrderedCollection \ { self }) anyOne bindFASTModel ] | ||
] |
9 changes: 9 additions & 0 deletions
9
src/FAST-Java-SmaCC-Importer/FamixJavaInvocation.extension.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Extension { #name : #FamixJavaInvocation } | ||
|
||
{ #category : #'*FAST-Java-SmaCC-Importer' } | ||
FamixJavaInvocation >> generateFastIfNotDoneAndBind [ | ||
|
||
^ self sender isInitializer | ||
ifTrue: [ self sender parentType generateFastIfNotDoneAndBind ] | ||
ifFalse: [ self sender generateFastIfNotDoneAndBind ] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Extension { #name : #FamixJavaMethod } | ||
|
||
{ #category : #'*FAST-Java-SmaCC-Importer' } | ||
FamixJavaMethod >> generateFastIfNotDoneAndBind [ | ||
self fast ifNotNil: [ ^ self fast mooseModel ]. | ||
^ self bindFASTModel | ||
] |
6 changes: 6 additions & 0 deletions
6
src/FAST-Java-SmaCC-Importer/FamixJavaParameterizedType.extension.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Extension { #name : #FamixJavaParameterizedType } | ||
|
||
{ #category : #'*FAST-Java-SmaCC-Importer' } | ||
FamixJavaParameterizedType >> generateFastIfNotDoneAndBind [ | ||
^ self parameterizableClass generateFastIfNotDoneAndBind | ||
] |
18 changes: 18 additions & 0 deletions
18
src/FAST-Java-SmaCC-Importer/FamixRepTestClass.extension.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Extension { #name : #FamixRepTestClass } | ||
|
||
{ #category : #'*FAST-Java-SmaCC-Importer' } | ||
FamixRepTestClass >> generateFastIfNotDoneAndBind [ | ||
|
||
self fastDeclaration ifNotEmpty: [ | ||
^ self fastDeclaration anyOne mooseModel ]. | ||
self fastTypeDefinition ifNotNil: [ | ||
^ self fastTypeDefinition mooseModel ]. | ||
^ self isAnonymousClass | ||
ifFalse: [ self bindFASTModel ] | ||
ifTrue: [ | ||
((self | ||
allAtScope: FamixTClass | ||
until: [ :c | | ||
(c isKindOf: FamixJavaClass) and: [ c isAnonymousClass not ] ]) | ||
asOrderedCollection \ { self }) anyOne bindFASTModel ] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Extension { #name : #FamixRepTestMethod } | ||
|
||
{ #category : #'*FAST-Java-SmaCC-Importer' } | ||
FamixRepTestMethod >> generateFastIfNotDoneAndBind [ | ||
self fast ifNotNil: [ ^ self fast mooseModel ]. | ||
^ self bindFASTModel | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Extension { #name : #FamixStClass } | ||
|
||
{ #category : #'*FAST-Java-SmaCC-Importer' } | ||
FamixStClass >> generateFastIfNotDoneAndBind [ | ||
|
||
self fastDeclaration ifNotEmpty: [ | ||
^ self fastDeclaration anyOne mooseModel ]. | ||
self fastTypeDefinition ifNotNil: [ | ||
^ self fastTypeDefinition mooseModel ]. | ||
^ self isAnonymousClass | ||
ifFalse: [ self bindFASTModel ] | ||
ifTrue: [ | ||
((self | ||
allAtScope: FamixTClass | ||
until: [ :c | | ||
(c isKindOf: FamixJavaClass) and: [ c isAnonymousClass not ] ]) | ||
asOrderedCollection \ { self }) anyOne bindFASTModel ] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Extension { #name : #FamixStInvocation } | ||
|
||
{ #category : #'*FAST-Java-SmaCC-Importer' } | ||
FamixStInvocation >> generateFastIfNotDoneAndBind [ | ||
|
||
^ self sender isInitializer | ||
ifTrue: [ self sender parentType generateFastIfNotDoneAndBind ] | ||
ifFalse: [ self sender generateFastIfNotDoneAndBind ] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Extension { #name : #FamixStMethod } | ||
|
||
{ #category : #'*FAST-Java-SmaCC-Importer' } | ||
FamixStMethod >> generateFastIfNotDoneAndBind [ | ||
self fast ifNotNil: [ ^ self fast mooseModel ]. | ||
^ self bindFASTModel | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
Extension { #name : #FamixTClass } | ||
|
||
{ #category : #'*FAST-Java-SmaCC-Importer' } | ||
FamixTClass >> generateFastJava [ | ||
^ JavaSmaCCProgramNodeImporterVisitor new parseCodeString: self sourceAnchor sourceText | ||
FamixTClass >> generateFastIfNotDoneAndBind [ | ||
|
||
self fastDeclaration ifNotEmpty: [ | ||
^ self fastDeclaration anyOne mooseModel ]. | ||
self fastTypeDefinition ifNotNil: [ | ||
^ self fastTypeDefinition mooseModel ]. | ||
^ self isAnonymousClass | ||
ifFalse: [ self bindFASTModel ] | ||
ifTrue: [ | ||
((self | ||
allAtScope: FamixTClass | ||
until: [ :c | | ||
(c isKindOf: FamixJavaClass) and: [ c isAnonymousClass not ] ]) | ||
asOrderedCollection \ { self }) anyOne bindFASTModel ] | ||
] |
18 changes: 18 additions & 0 deletions
18
src/FAST-Java-SmaCC-Importer/FamixTClassWithVisibility.extension.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Extension { #name : #FamixTClassWithVisibility } | ||
|
||
{ #category : #'*FAST-Java-SmaCC-Importer' } | ||
FamixTClassWithVisibility >> generateFastIfNotDoneAndBind [ | ||
|
||
self fastDeclaration ifNotEmpty: [ | ||
^ self fastDeclaration anyOne mooseModel ]. | ||
self fastTypeDefinition ifNotNil: [ | ||
^ self fastTypeDefinition mooseModel ]. | ||
^ self isAnonymousClass | ||
ifFalse: [ self bindFASTModel ] | ||
ifTrue: [ | ||
((self | ||
allAtScope: FamixTClass | ||
until: [ :c | | ||
(c isKindOf: FamixJavaClass) and: [ c isAnonymousClass not ] ]) | ||
asOrderedCollection \ { self }) anyOne bindFASTModel ] | ||
] |
9 changes: 9 additions & 0 deletions
9
src/FAST-Java-SmaCC-Importer/FamixTDereferencedInvocation.extension.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Extension { #name : #FamixTDereferencedInvocation } | ||
|
||
{ #category : #'*FAST-Java-SmaCC-Importer' } | ||
FamixTDereferencedInvocation >> generateFastIfNotDoneAndBind [ | ||
|
||
^ self sender isInitializer | ||
ifTrue: [ self sender parentType generateFastIfNotDoneAndBind ] | ||
ifFalse: [ self sender generateFastIfNotDoneAndBind ] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Extension { #name : #FamixTException } | ||
|
||
{ #category : #'*FAST-Java-SmaCC-Importer' } | ||
FamixTException >> generateFastIfNotDoneAndBind [ | ||
|
||
self fastDeclaration ifNotEmpty: [ | ||
^ self fastDeclaration anyOne mooseModel ]. | ||
self fastTypeDefinition ifNotNil: [ | ||
^ self fastTypeDefinition mooseModel ]. | ||
^ self isAnonymousClass | ||
ifFalse: [ self bindFASTModel ] | ||
ifTrue: [ | ||
((self | ||
allAtScope: FamixTClass | ||
until: [ :c | | ||
(c isKindOf: FamixJavaClass) and: [ c isAnonymousClass not ] ]) | ||
asOrderedCollection \ { self }) anyOne bindFASTModel ] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Extension { #name : #FamixTInvocation } | ||
|
||
{ #category : #'*FAST-Java-SmaCC-Importer' } | ||
FamixTInvocation >> generateFastIfNotDoneAndBind [ | ||
|
||
^ self sender isInitializer | ||
ifTrue: [ self sender parentType generateFastIfNotDoneAndBind ] | ||
ifFalse: [ self sender generateFastIfNotDoneAndBind ] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
Extension { #name : #FamixTMethod } | ||
|
||
{ #category : #'*FAST-Java-SmaCC-Importer' } | ||
FamixTMethod >> generateFastJava [ | ||
FamixTMethod >> generateFastIfNotDoneAndBind [ | ||
self fast ifNotNil: [ ^ self fast mooseModel ]. | ||
^ self bindFASTModel | ||
] | ||
|
||
{ #category : #'*FAST-Java-SmaCC-Importer' } | ||
FamixTMethod >> getFASTModel [ | ||
^ JavaSmaCCProgramNodeImporterVisitor new parseCodeMethodString: self sourceAnchor sourceText | ||
] |
6 changes: 6 additions & 0 deletions
6
src/FAST-Java-SmaCC-Importer/FamixTParameterizedType.extension.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Extension { #name : #FamixTParameterizedType } | ||
|
||
{ #category : #'*FAST-Java-SmaCC-Importer' } | ||
FamixTParameterizedType >> generateFastIfNotDoneAndBind [ | ||
^ self parameterizableClass generateFastIfNotDoneAndBind | ||
] |
18 changes: 18 additions & 0 deletions
18
src/FAST-Java-SmaCC-Importer/FamixTSourceEntity.extension.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Extension { #name : #FamixTSourceEntity } | ||
|
||
{ #category : #'*FAST-Java-SmaCC-Importer' } | ||
FamixTSourceEntity >> bindFASTModel [ | ||
"ask for the FAST model of the Famix receiver entity, if found, put it in Carrefour and | ||
bind it to the Famix model of the receiver" | ||
| fastModel | | ||
fastModel := self getFASTModel. | ||
fastModel ifNotNil: [ | ||
fastModel metamodel: CRFModel metamodel. | ||
self bindFastModel: fastModel usingBinder: CRFBinderVisitor new ]. | ||
^ fastModel | ||
] | ||
|
||
{ #category : #'*FAST-Java-SmaCC-Importer' } | ||
FamixTSourceEntity >> getFASTModel [ | ||
self explicitRequirement | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Extension { #name : #FamixTType } | ||
|
||
{ #category : #'*FAST-Java-SmaCC-Importer' } | ||
FamixTType >> getFASTModel [ | ||
^ JavaSmaCCProgramNodeImporterVisitor new parseCodeString: self sourceAnchor sourceText | ||
] |
18 changes: 18 additions & 0 deletions
18
src/FAST-Java-SmaCC-Importer/FamixTagTestClass.extension.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Extension { #name : #FamixTagTestClass } | ||
|
||
{ #category : #'*FAST-Java-SmaCC-Importer' } | ||
FamixTagTestClass >> generateFastIfNotDoneAndBind [ | ||
|
||
self fastDeclaration ifNotEmpty: [ | ||
^ self fastDeclaration anyOne mooseModel ]. | ||
self fastTypeDefinition ifNotNil: [ | ||
^ self fastTypeDefinition mooseModel ]. | ||
^ self isAnonymousClass | ||
ifFalse: [ self bindFASTModel ] | ||
ifTrue: [ | ||
((self | ||
allAtScope: FamixTClass | ||
until: [ :c | | ||
(c isKindOf: FamixJavaClass) and: [ c isAnonymousClass not ] ]) | ||
asOrderedCollection \ { self }) anyOne bindFASTModel ] | ||
] |
9 changes: 9 additions & 0 deletions
9
src/FAST-Java-SmaCC-Importer/FamixTagTestInvocation.extension.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Extension { #name : #FamixTagTestInvocation } | ||
|
||
{ #category : #'*FAST-Java-SmaCC-Importer' } | ||
FamixTagTestInvocation >> generateFastIfNotDoneAndBind [ | ||
|
||
^ self sender isInitializer | ||
ifTrue: [ self sender parentType generateFastIfNotDoneAndBind ] | ||
ifFalse: [ self sender generateFastIfNotDoneAndBind ] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Extension { #name : #FamixTagTestMethod } | ||
|
||
{ #category : #'*FAST-Java-SmaCC-Importer' } | ||
FamixTagTestMethod >> generateFastIfNotDoneAndBind [ | ||
self fast ifNotNil: [ ^ self fast mooseModel ]. | ||
^ self bindFASTModel | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Extension { #name : #FamixTest1Class } | ||
|
||
{ #category : #'*FAST-Java-SmaCC-Importer' } | ||
FamixTest1Class >> generateFastIfNotDoneAndBind [ | ||
|
||
self fastDeclaration ifNotEmpty: [ | ||
^ self fastDeclaration anyOne mooseModel ]. | ||
self fastTypeDefinition ifNotNil: [ | ||
^ self fastTypeDefinition mooseModel ]. | ||
^ self isAnonymousClass | ||
ifFalse: [ self bindFASTModel ] | ||
ifTrue: [ | ||
((self | ||
allAtScope: FamixTClass | ||
until: [ :c | | ||
(c isKindOf: FamixJavaClass) and: [ c isAnonymousClass not ] ]) | ||
asOrderedCollection \ { self }) anyOne bindFASTModel ] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Extension { #name : #FamixTest1Method } | ||
|
||
{ #category : #'*FAST-Java-SmaCC-Importer' } | ||
FamixTest1Method >> generateFastIfNotDoneAndBind [ | ||
self fast ifNotNil: [ ^ self fast mooseModel ]. | ||
^ self bindFASTModel | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Extension { #name : #FamixTest2Class } | ||
|
||
{ #category : #'*FAST-Java-SmaCC-Importer' } | ||
FamixTest2Class >> generateFastIfNotDoneAndBind [ | ||
|
||
self fastDeclaration ifNotEmpty: [ | ||
^ self fastDeclaration anyOne mooseModel ]. | ||
self fastTypeDefinition ifNotNil: [ | ||
^ self fastTypeDefinition mooseModel ]. | ||
^ self isAnonymousClass | ||
ifFalse: [ self bindFASTModel ] | ||
ifTrue: [ | ||
((self | ||
allAtScope: FamixTClass | ||
until: [ :c | | ||
(c isKindOf: FamixJavaClass) and: [ c isAnonymousClass not ] ]) | ||
asOrderedCollection \ { self }) anyOne bindFASTModel ] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Extension { #name : #FamixTest3Class } | ||
|
||
{ #category : #'*FAST-Java-SmaCC-Importer' } | ||
FamixTest3Class >> generateFastIfNotDoneAndBind [ | ||
|
||
self fastDeclaration ifNotEmpty: [ | ||
^ self fastDeclaration anyOne mooseModel ]. | ||
self fastTypeDefinition ifNotNil: [ | ||
^ self fastTypeDefinition mooseModel ]. | ||
^ self isAnonymousClass | ||
ifFalse: [ self bindFASTModel ] | ||
ifTrue: [ | ||
((self | ||
allAtScope: FamixTClass | ||
until: [ :c | | ||
(c isKindOf: FamixJavaClass) and: [ c isAnonymousClass not ] ]) | ||
asOrderedCollection \ { self }) anyOne bindFASTModel ] | ||
] |
9 changes: 9 additions & 0 deletions
9
src/FAST-Java-SmaCC-Importer/FamixTest3Invocation.extension.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Extension { #name : #FamixTest3Invocation } | ||
|
||
{ #category : #'*FAST-Java-SmaCC-Importer' } | ||
FamixTest3Invocation >> generateFastIfNotDoneAndBind [ | ||
|
||
^ self sender isInitializer | ||
ifTrue: [ self sender parentType generateFastIfNotDoneAndBind ] | ||
ifFalse: [ self sender generateFastIfNotDoneAndBind ] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Extension { #name : #FamixTest3Method } | ||
|
||
{ #category : #'*FAST-Java-SmaCC-Importer' } | ||
FamixTest3Method >> generateFastIfNotDoneAndBind [ | ||
self fast ifNotNil: [ ^ self fast mooseModel ]. | ||
^ self bindFASTModel | ||
] |
Oops, something went wrong.