MethodCallExprAST.py (10075:7322d2b2ec76) | MethodCallExprAST.py (11020:882ce080c9f7) |
---|---|
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; --- 142 unchanged lines hidden (view full) --- 151 obj_type, self.proc_name, methodId, 152 implementedMethodId) 153 154 # Replace the methodId with the implementedMethodId 155 # found in the method list. 156 methodId = implementedMethodId 157 return_type = obj_type.methods[methodId].return_type 158 | 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; --- 142 unchanged lines hidden (view full) --- 151 obj_type, self.proc_name, methodId, 152 implementedMethodId) 153 154 # Replace the methodId with the implementedMethodId 155 # found in the method list. 156 methodId = implementedMethodId 157 return_type = obj_type.methods[methodId].return_type 158 |
159 if return_type.isInterface: 160 prefix = "static_cast<%s &>" % return_type.c_ident 161 | |
162 if str(obj_type) == "AbstractCacheEntry" or \ 163 str(obj_type) == "AbstractEntry" or \ 164 ("interface" in obj_type and ( 165 obj_type["interface"] == "AbstractCacheEntry" or 166 obj_type["interface"] == "AbstractEntry")): 167 prefix = "%s((*(%s))." % (prefix, code) 168 else: 169 prefix = "%s((%s)." % (prefix, code) --- 24 unchanged lines hidden --- | 159 if str(obj_type) == "AbstractCacheEntry" or \ 160 str(obj_type) == "AbstractEntry" or \ 161 ("interface" in obj_type and ( 162 obj_type["interface"] == "AbstractCacheEntry" or 163 obj_type["interface"] == "AbstractEntry")): 164 prefix = "%s((*(%s))." % (prefix, code) 165 else: 166 prefix = "%s((%s)." % (prefix, code) --- 24 unchanged lines hidden --- |