File size: 370 Bytes
8f3f8db
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
translating builtins
generateAsValue: 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 generateCoerceToValueFrom: aNode receiver on: aStream