SmallSense__SmalltalkInferencer.st
changeset 121 6fc2c58db318
parent 120 4fefce92f5bb
child 123 1b949542c4b2
--- a/SmallSense__SmalltalkInferencer.st	Fri Oct 04 08:25:15 2013 +0100
+++ b/SmallSense__SmalltalkInferencer.st	Fri Oct 04 08:31:58 2013 +0100
@@ -125,12 +125,16 @@
 
 class: cls source: src
 
+    type isNil ifTrue:[ 
+        "/ Guess...
+        type := cls notNil ifTrue:[ #method ] ifFalse:[ #expression ]
+    ].
     class := cls ? UndefinedObject.
     classInfo := self manager infoForClass: class.
     source := src.
 
     "Created: / 26-11-2011 / 14:46:55 / Jan Vrany <jan.vrany@fit.cvut.cz>"
-    "Modified: / 04-10-2013 / 08:19:43 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 04-10-2013 / 08:31:11 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
 expression: expression