On Thursday, December 7, 2017 at 12:22:52 PM UTC-6, Edward K. Ream wrote:

Yes, it is possible to do a prototype in a few hours, with a doctor's 
> appointment in between.
>

I promised a narrative.  Here it is:

1. Here are assignments to c.theTagController, *recognized as such*, with 
kind "c.x=":

   def def onCreate(tag,keys):
  c.x=     c.theTagController=theTagController

class class TagController(object):
   def     def __init__(self,c):
  c.x=         c.theTagController=self

 2. Here is the definition of tc.remove_tag:

 class class TagController(object):
   def     def remove_tag(self,p,tag):


3. And here is the formerly-erroneous call to tc.remove_tag:

 class class LeoTagWidget(QtWidgets.QWidget):
  
   def     def callback_factory(self,tag):
   def         def callback(event):
  call                 tc.remove_tag(p,tag)
  
4. Oops. At present the narrative lacks the following:

class class LeoTagWidget(QtWidgets.QWidget):
   def     def __init__(self,c,parent=None):
   self=       self.tc = self.c.theTagController

It would be easy to add a regex to detect that.

*Summary*

There is a big difference between this kind of prototype and an actual 
convention checker.  The prototype just matches patterns.  Working code 
would create representations of classes, their methods, functions, 
assignments, etc. etc.

Otoh, the narrative I've just provided does, I think, illustrate my point 
of view.

The present prototype suffices for now. I plan no further work in the near 
future, but heh, I've said that before...

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to