- parse tree nodes are no longer shared
authorJan Vrany <jan.vrany@fit.cvut.cz>
Tue, 19 Jul 2011 21:17:45 +0200
changeset 2565 918b43d03a00
parent 2564 43f35a40884d
child 2566 a39e9ce2610f
- parse tree nodes are no longer shared - initial support for rembembering positions in code, not yet finished
PrimitiveNode.st
--- a/PrimitiveNode.st	Tue Jul 19 21:17:28 2011 +0200
+++ b/PrimitiveNode.st	Tue Jul 19 21:17:45 2011 +0200
@@ -68,6 +68,12 @@
     ^ self basicNew primitiveNumber:anInteger
 ! !
 
+!PrimitiveNode class methodsFor:'others'!
+
+version_CVS
+    ^ '$Header: /cvs/stx/stx/libcomp/PrimitiveNode.st,v 1.23 2011-07-19 19:17:45 vrany Exp $'
+! !
+
 !PrimitiveNode methodsFor:'accessing'!
 
 code:aString
@@ -139,6 +145,15 @@
 
 !PrimitiveNode methodsFor:'queries'!
 
+containsReturn
+
+    "/JV@2011-07-19: I'm not quite sure that this is OK..."
+    ^(code includesString: 'return') 
+        or: [code includesString: 'RETURN']
+
+    "Created: / 19-07-2011 / 18:47:30 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
 isConstant
     ^ false
 !
@@ -162,5 +177,5 @@
 !PrimitiveNode class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libcomp/PrimitiveNode.st,v 1.22 2008-07-25 12:45:50 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libcomp/PrimitiveNode.st,v 1.23 2011-07-19 19:17:45 vrany Exp $'
 ! !