summaryrefslogtreecommitdiffstats
path: root/overloaddata.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2009-11-20 15:14:19 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-11-23 11:46:58 -0300
commit68dab51ea3e835b6739385a9e415e0093f397392 (patch)
tree425b542c139a594503de74959096adc4bb843714 /overloaddata.h
parentc476a59f4f8709723bceaa1973251ee0c3032ecc (diff)
downloadshiboken-68dab51ea3e835b6739385a9e415e0093f397392.tar.gz
shiboken-68dab51ea3e835b6739385a9e415e0093f397392.tar.xz
shiboken-68dab51ea3e835b6739385a9e415e0093f397392.zip
Renamed OverloadData::hasDefaultValue to OverloadData::getFunctionWithDefaultValue
and modified it to return a pointer to the actual AbstractMetaFunction with the default value (or NULL if it doesn't has the value), instead of just returning a boolean. The overload decisor writer makes use of this new behavior to get the correct function for a method call with default values.
Diffstat (limited to 'overloaddata.h')
-rw-r--r--overloaddata.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/overloaddata.h b/overloaddata.h
index 4e01e3d5..a0970a2c 100644
--- a/overloaddata.h
+++ b/overloaddata.h
@@ -60,7 +60,9 @@ public:
/// Returns the root OverloadData object that represents all the overloads.
OverloadData* headOverloadData() const { return m_headOverloadData; }
- bool hasDefaultValue() const;
+ /// Returns the function that has a default value at the current OverloadData argument position, otherwise returns null.
+ const AbstractMetaFunction* getFunctionWithDefaultValue() const;
+
bool nextArgumentHasDefaultValue() const;
/// Returns the nearest occurrence, including this instance, of an argument with a default value.
OverloadData* findNextArgWithDefault();