~dpm/giraffe/giraffeapp

« back to all changes in this revision

Viewing changes to giraffe/languages/python/__init__.py

  • Committer: Mikkel Kamstrup Erlandsen
  • Date: 2011-02-26 14:13:48 UTC
  • Revision ID: mikkel.kamstrup@gmail.com-20110226141348-jixcpwrmk1j65ee8
Start adding type links to the C output - still not done, but a good start

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
def type_list (nodes, klass=""):
24
24
        """Build a list of strings - possibly with markup - for a list of giraffe.ast.TypedNodes"""
25
25
        result = []
26
 
        for n in nodes:         
 
26
        for n in nodes:
27
27
                if n.type.namespaced_name in n.namespace.repository:
28
28
                        result.append(n.type.html_link(type_label (n.type), klass="type %s" % klass))
29
29
                else: