Home | History | Annotate | Download | only in python2.7

Lines Matching refs:NAME

8 where module is the name of a Python module, and path is an optional
20 module -- the module name
21 name -- the name of the class
28 If the name of a super class is not recognized, the corresponding
30 string giving the name of the super class. Since import statements
36 module -- the module name
37 name -- the name of the class
45 from token import NAME, DEDENT, OP
55 def __init__(self, module, name, super, file, lineno):
57 self.name = name
65 def _addmethod(self, name, lineno):
66 self.methods[name] = lineno
70 def __init__(self, module, name, file, lineno):
72 self.name = name
100 If INPACKAGE is given, it must be the dotted name of the package in
105 # Compute the full module name (prepending inpackage if set)
123 # Check for a dotted module name
167 if tokentype != NAME:
186 if tokentype != NAME:
188 # parse what follows the class name
225 # only use NAME and OP (== dot) tokens for type name
226 elif tokentype in (NAME, OP) and level == 1:
264 # to our name space if they were mentioned in the list
281 # clauses. Return a list of pairs (name, name2) where name2 is
282 # the 'as' name, or None if there is no 'as' clause.
285 name, token = _getname(g)
286 if not name:
292 names.append((name, name2))
300 # Helper to get a dotted name, return a pair (name, token) where
301 # name is the dotted name, or None if there was no dotted name,
305 if tokentype != NAME and token != '*':
313 if tokentype != NAME:
335 print "class", obj.name, obj.super, obj.lineno
337 for name, lineno in methods:
338 if name != "__path__":
339 print " def", name, lineno
341 print "def", obj.name, obj.lineno