Skip to content

Commit

Permalink
Rename a the builtin function and correct it.
Browse files Browse the repository at this point in the history
  • Loading branch information
LABSARI committed May 5, 2021
1 parent 3024d88 commit ba84904
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions smalltalksrc/Slang/CCodeGenerator.class.st
Expand Up @@ -1934,17 +1934,15 @@ CCodeGenerator >> generateCASTEqual: tast [
]
{ #category : #utilities }
CCodeGenerator >> generateCASTForBuiltinConstructAsArgumentFor: msgNode [
CCodeGenerator >> generateCASTForBuiltinConstructFor: msgNode [
"Generate CAST for a message node assuming it is a built in construct.
If the message node can not be translated as a built in construct, return nil.
"
| action |
(self shouldGenerateAsInterpreterProxySend: msgNode) ifTrue:
[^nil].
action := castAsArgumentTranslationDict
at: msgNode selector
ifAbsent: [castTranslationDict at: msgNode selector ifAbsent: [ ^nil ]].
action := castTranslationDict at: msgNode selector ifAbsent: [ ^nil ].
^ self perform: action with: msgNode
]
Expand Down
2 changes: 1 addition & 1 deletion smalltalksrc/Slang/TSendNode.class.st
Expand Up @@ -93,7 +93,7 @@ TSendNode >> asCASTIn: aCCodeGenerator [

| construct |
construct := aCCodeGenerator
generateCASTForBuiltinConstructAsArgumentFor: self.
generateCASTForBuiltinConstructFor: self.
construct ifNil: [
construct := (self asCASTAsFieldReferenceIn: aCCodeGenerator) ifNotNil: [ :e | e] ifNil: [
self asCASTAsFunctionCallIn: aCCodeGenerator ]].
Expand Down

0 comments on commit ba84904

Please sign in to comment.