Mercurial > lcfOS
diff 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 |
line wrap: on
line diff
--- a/python/c3/analyse.py Wed Sep 04 17:35:06 2013 +0200 +++ b/python/c3/analyse.py Sat Sep 14 17:29:10 2013 +0200 @@ -124,6 +124,10 @@ ft = sym.typ ft.returntype = self.resolveType(ft.returntype, sym.scope) ft.parametertypes = [self.resolveType(pt, sym.scope) for pt in ft.parametertypes] + # Mark local variables: + for d in sym.declarations: + if isinstance(d, Variable): + d.isLocal = True elif type(sym) is DefinedType: sym.typ = self.resolveType(sym.typ, sym.scope)