scratch0-5 / utils /VMMakerJS.package /JSCodeGenerator.class /instance /emitBuiltinConstructAsArgumentFor.on.level..st
soiz1's picture
Upload folder using huggingface_hub
8f3f8db verified
raw
history blame contribute delete
455 Bytes
utilities
emitBuiltinConstructAsArgumentFor: msgNode on: aStream level: level
"If the given selector is in the translation dictionary, translate it into a target code construct and return true. Otherwise, do nothing and return false."
| action |
action := asArgumentTranslationDict
at: msgNode selector
ifAbsent: [translationDict at: msgNode selector ifAbsent: [ ^false ]].
self perform: action with: msgNode with: aStream with: level.
^true