Mercurial > lcfOS
comparison python/c3/analyse.py @ 275:6f2423df0675
Fixed serve arm-as
author | Windel Bouwman |
---|---|
date | Sat, 14 Sep 2013 17:29:10 +0200 |
parents | e64bae57cda8 |
children | 1c7c1e619be8 |
comparison
equal
deleted
inserted
replaced
274:ea93e0a7a31e | 275:6f2423df0675 |
---|---|
122 elif type(sym) is Function: | 122 elif type(sym) is Function: |
123 # Checkup function type: | 123 # Checkup function type: |
124 ft = sym.typ | 124 ft = sym.typ |
125 ft.returntype = self.resolveType(ft.returntype, sym.scope) | 125 ft.returntype = self.resolveType(ft.returntype, sym.scope) |
126 ft.parametertypes = [self.resolveType(pt, sym.scope) for pt in ft.parametertypes] | 126 ft.parametertypes = [self.resolveType(pt, sym.scope) for pt in ft.parametertypes] |
127 # Mark local variables: | |
128 for d in sym.declarations: | |
129 if isinstance(d, Variable): | |
130 d.isLocal = True | |
127 elif type(sym) is DefinedType: | 131 elif type(sym) is DefinedType: |
128 sym.typ = self.resolveType(sym.typ, sym.scope) | 132 sym.typ = self.resolveType(sym.typ, sym.scope) |
129 | 133 |
130 def sanity(self, sym): | 134 def sanity(self, sym): |
131 if type(sym) is FunctionType: | 135 if type(sym) is FunctionType: |