myroslavarm / Experimental-Completion

My internship project: improving code completion for Pharo
6 stars 3 forks source link

TypingVisitor: add a #type method as extension in RBProgramNode #90

Closed MarcusDenker closed 4 years ago

MarcusDenker commented 4 years ago

When using the types, we now use the property api directly. This is not that nice, as we have to always first check (hasProperty: #type) or similar...

I think it would be nice to have a #type method on RBProgramNode that return a type if there is one , and nil if not.

MarcusDenker commented 4 years ago

I looked at the users and it seems that we can do without that for now (there are just 2-3 using methods).