-
Notifications
You must be signed in to change notification settings - Fork 64
/
RBProgramNode.extension.st
41 lines (33 loc) · 1.05 KB
/
RBProgramNode.extension.st
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Extension { #name : #RBProgramNode }
{ #category : #'*VMMakerCompatibilityForPharo6-C translation' }
RBProgramNode >> asTranslatorNodeIn: aTMethod [
"Answer a TParseNode subclass equivalent of me"
self subclassResponsibility
]
{ #category : #'*VMMakerCompatibilityForPharo6-C translation' }
RBProgramNode >> commentOrNil [
| comments |
comments := self propertyAt: #comments ifAbsent: [ ^ nil ].
^ comments collect: #contents
]
{ #category : #'*VMMakerCompatibilityForPharo6-testing' }
RBProgramNode >> isBlockNode [
^false
]
{ #category : #'*VMMakerCompatibilityForPharo6-testing' }
RBProgramNode >> isConstantNumber [ "Overridden in RBLiteralValueNode"
^false
]
{ #category : #'*VMMakerCompatibilityForPharo6-testing' }
RBProgramNode >> isNodeNil [
^false
]
{ #category : #'*VMMakerCompatibilityForPharo6-testing' }
RBProgramNode >> isVariableNode [
^false
]
{ #category : #'*VMMakerCompatibilityForPharo6-C translation' }
RBProgramNode >> missingCommentNeededForCTranslation [
"So far the RBProgramNode hierarchy omits/elides comments :-("
^nil
]