Mercurial > lcfOS
comparison python/c3/analyse.py @ 227:82dfe6a32717
Fixed tests
author | Windel Bouwman |
---|---|
date | Fri, 12 Jul 2013 17:42:39 +0200 |
parents | 240111e0456f |
children | 521567d17388 |
comparison
equal
deleted
inserted
replaced
226:240111e0456f | 227:82dfe6a32717 |
---|---|
82 for mem in t.mems: | 82 for mem in t.mems: |
83 mem.typ = self.resolveType(mem.typ, scope) | 83 mem.typ = self.resolveType(mem.typ, scope) |
84 return t | 84 return t |
85 elif type(t) is Designator: | 85 elif type(t) is Designator: |
86 t = self.resolveDesignator(t, scope) | 86 t = self.resolveDesignator(t, scope) |
87 return self.resolveType(t) | 87 return self.resolveType(t, scope) |
88 elif isinstance(t, Type): | 88 elif isinstance(t, Type): |
89 # Already resolved?? | 89 # Already resolved?? |
90 return t | 90 return t |
91 else: | 91 else: |
92 raise Exception('Error resolving type {} {}'.format(t, type(t))) | 92 raise Exception('Error resolving type {} {}'.format(t, type(t))) |