Skip to content

Commit dae48fe

Browse files
committed
Fix visit methods
They were in the weird state been at the same time extensions and not extensions. + the content of FASTTCharacterLiteral>>accept: was wrong. Fixes #103
1 parent e9cc06e commit dae48fe

10 files changed

Lines changed: 2 additions & 27 deletions

src/FAST-Core-Model/FASTTCharacterLiteral.trait.st

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,6 @@ FASTTCharacterLiteral classSide >> annotation [
4545
^ self
4646
]
4747

48-
{ #category : '*FAST-Core-Visitor' }
49-
FASTTCharacterLiteral >> accept: aVisitor [
50-
^ aVisitor visitCharacterLiteralNode: self
51-
]
52-
5348
{ #category : 'testing' }
5449
FASTTCharacterLiteral >> isCharacterLiteral [
5550

src/FAST-Core-Model/FASTTNumericalLiteral.trait.st

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,6 @@ FASTTNumericalLiteral classSide >> annotation [
4545
^ self
4646
]
4747

48-
{ #category : '*FAST-Core-Visitor' }
49-
FASTTNumericalLiteral >> accept: aVisitor [
50-
^ aVisitor visitFASTTNumericalLiteral: self
51-
]
52-
5348
{ #category : 'testing' }
5449
FASTTNumericalLiteral >> isNumericalLiteral [
5550

src/FAST-Core-Model/FASTTStatement.trait.st

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@ FASTTStatement classSide >> annotation [
4242
^ self
4343
]
4444

45-
{ #category : '*FAST-Core-Visitor' }
46-
FASTTStatement >> accept: aVisitor [
47-
^ aVisitor visitFASTTStatement: self
48-
]
49-
5045
{ #category : 'testing' }
5146
FASTTStatement >> isStatement [
5247

src/FAST-Core-Model/FASTTStringLiteral.trait.st

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,6 @@ FASTTStringLiteral classSide >> annotation [
4545
^ self
4646
]
4747

48-
{ #category : '*FAST-Core-Visitor' }
49-
FASTTStringLiteral >> accept: aVisitor [
50-
^ aVisitor visitFASTTStringLiteral: self
51-
]
52-
5348
{ #category : 'testing' }
5449
FASTTStringLiteral >> isStringLiteral [
5550

src/FAST-Core-Model/FASTTVariableExpression.trait.st

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,6 @@ FASTTVariableExpression classSide >> annotation [
4646
^ self
4747
]
4848

49-
{ #category : '*FAST-Core-Visitor' }
50-
FASTTVariableExpression >> accept: aVisitor [
51-
"Arbitrary use of an accept: available in the used traits (FASTVariable or FASTTExpression)"
52-
^ aVisitor visitFASTTVariableExpression: self
53-
]
54-
5549
{ #category : 'testing' }
5650
FASTTVariableExpression >> isVariableExpression [
5751

src/FAST-Core-Model/FASTTCharacterLiteral.extension.st renamed to src/FAST-Core-Visitor/FASTTCharacterLiteral.extension.st

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ Extension { #name : 'FASTTCharacterLiteral' }
22

33
{ #category : '*FAST-Core-Visitor' }
44
FASTTCharacterLiteral >> accept: aVisitor [
5-
^ aVisitor visitCharacterLiteralNode: self
5+
6+
^ aVisitor visitFASTTCharacterLiteral: self
67
]

src/FAST-Core-Model/FASTTNumericalLiteral.extension.st renamed to src/FAST-Core-Visitor/FASTTNumericalLiteral.extension.st

File renamed without changes.
File renamed without changes.
File renamed without changes.

src/FAST-Core-Model/FASTTVariableExpression.extension.st renamed to src/FAST-Core-Visitor/FASTTVariableExpression.extension.st

File renamed without changes.

0 commit comments

Comments
 (0)