Spaces:
Running
Running
scratch0-5 / utils /VMMakerJS.package /JSSmartSyntaxPluginCodeGenerator.class /instance /generateAsOop.on.indent..st
| translating builtins | |
| generateAsOop: aNode on: aStream indent: anInteger | |
| | cName class | | |
| cName := aNode args first nameOrValue. | |
| class := Smalltalk | |
| at: (cName asSymbol) | |
| ifAbsent: [nil]. | |
| (class isNil not and: [class isBehavior]) ifFalse: | |
| [^self error: 'first arg must identify class']. | |
| class jscg: self generateCoerceToOopFrom: aNode receiver on: aStream |