MethodCallExprAST.py (8341:30daf1dd5c91) MethodCallExprAST.py (8644:acf68e5a8cd7)
1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
2# Copyright (c) 2009 The Hewlett-Packard Development Company
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

--- 148 unchanged lines hidden (view full) ---

157 #
158 methodId = implementedMethodId
159 return_type = obj_type.methods[methodId].return_type
160
161 if return_type.isInterface:
162 prefix = "static_cast<%s &>" % return_type.c_ident
163
164 if str(obj_type) == "AbstractCacheEntry" or \
1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
2# Copyright (c) 2009 The Hewlett-Packard Development Company
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

--- 148 unchanged lines hidden (view full) ---

157 #
158 methodId = implementedMethodId
159 return_type = obj_type.methods[methodId].return_type
160
161 if return_type.isInterface:
162 prefix = "static_cast<%s &>" % return_type.c_ident
163
164 if str(obj_type) == "AbstractCacheEntry" or \
165 ("interface" in obj_type and
166 obj_type["interface"] == "AbstractCacheEntry"):
165 str(obj_type) == "AbstractEntry" or \
166 ("interface" in obj_type and (
167 obj_type["interface"] == "AbstractCacheEntry" or
168 obj_type["interface"] == "AbstractEntry")):
167 prefix = "%s((*(%s))." % (prefix, code)
168 else:
169 prefix = "%s((%s)." % (prefix, code)
170
171 return obj_type, methodId, prefix
172
173
174class ClassMethodCallExprAST(MethodCallExprAST):

--- 19 unchanged lines hidden ---
169 prefix = "%s((*(%s))." % (prefix, code)
170 else:
171 prefix = "%s((%s)." % (prefix, code)
172
173 return obj_type, methodId, prefix
174
175
176class ClassMethodCallExprAST(MethodCallExprAST):

--- 19 unchanged lines hidden ---