compiler/PPCInlineAnyNode.st
changeset 438 20598d7ce9fa
parent 437 54b3bc9e3987
child 442 d333233f7ebd
child 452 9f4558b3be66
equal deleted inserted replaced
437:54b3bc9e3987 438:20598d7ce9fa
     1 "{ Package: 'stx:goodies/petitparser/compiler' }"
       
     2 
       
     3 "{ NameSpace: Smalltalk }"
       
     4 
       
     5 PPCAnyNode subclass:#PPCInlineAnyNode
       
     6 	instanceVariableNames:''
       
     7 	classVariableNames:''
       
     8 	poolDictionaries:''
       
     9 	category:'PetitCompiler-Nodes'
       
    10 !
       
    11 
       
    12 !PPCInlineAnyNode methodsFor:'as yet unclassified'!
       
    13 
       
    14 asInlined
       
    15 	^ self
       
    16 !
       
    17 
       
    18 compileWith: compiler effect: effect id: id
       
    19 	compiler startInline: id.
       
    20 	compiler add: 'context next ifNil: [ error := true. ].'.
       
    21  ^ compiler stopInline.
       
    22 !
       
    23 
       
    24 printOn: aStream
       
    25 	aStream nextPutAll: #inlined.
       
    26 	super printOn: aStream.
       
    27 ! !
       
    28