Changeset View
Changeset View
Standalone View
Standalone View
duchain/helpers.h
Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Line(s) | 51 | public: | |||
---|---|---|---|---|---|
94 | static AbstractType::Ptr resolveAliasType(const AbstractType::Ptr eventualAlias); | 94 | static AbstractType::Ptr resolveAliasType(const AbstractType::Ptr eventualAlias); | ||
95 | 95 | | |||
96 | /** | 96 | /** | ||
97 | * @brief Get the content type(s) of something that is an iterable. | 97 | * @brief Get the content type(s) of something that is an iterable. | ||
98 | * | 98 | * | ||
99 | * @param iterable Type to get the contents of. Can be an unsure. | 99 | * @param iterable Type to get the contents of. Can be an unsure. | ||
100 | * @return KDevelop::AbstractType::Ptr Content type. Might be an unsure. | 100 | * @return KDevelop::AbstractType::Ptr Content type. Might be an unsure. | ||
101 | */ | 101 | */ | ||
102 | static AbstractType::Ptr contentOfIterable(const AbstractType::Ptr iterable); | 102 | static AbstractType::Ptr contentOfIterable(const AbstractType::Ptr iterable, const TopDUContext* topContext); | ||
103 | 103 | | |||
104 | /** | 104 | /** | ||
105 | * @brief Get a list of types inside the passed type which match the specified filter. | 105 | * @brief Get a list of types inside the passed type which match the specified filter. | ||
106 | * The filter will be matched against the type only if it is not an unsure type, | 106 | * The filter will be matched against the type only if it is not an unsure type, | ||
107 | * or else against all types inside that unsure type. | 107 | * or else against all types inside that unsure type. | ||
108 | * @param type The type to search | 108 | * @param type The type to search | ||
109 | * @param accept Filter function, return true if you want the type. | 109 | * @param accept Filter function, return true if you want the type. | ||
110 | * @return QList< KDevelop::AbstractType::Ptr > list of types accepted by the filter. | 110 | * @return QList< KDevelop::AbstractType::Ptr > list of types accepted by the filter. | ||
▲ Show 20 Lines • Show All 123 Lines • Show Last 20 Lines |