Changeset View
Changeset View
Standalone View
Standalone View
duchain/declarationbuilder.h
Show First 20 Lines • Show All 147 Lines • ▼ Show 20 Line(s) | 121 | protected: | |||
---|---|---|---|---|---|
148 | 148 | | |||
149 | /// Represents a single source type in a tuple assignment. | 149 | /// Represents a single source type in a tuple assignment. | ||
150 | struct SourceType { | 150 | struct SourceType { | ||
151 | AbstractType::Ptr type; | 151 | AbstractType::Ptr type; | ||
152 | DeclarationPointer declaration; | 152 | DeclarationPointer declaration; | ||
153 | bool isAlias; | 153 | bool isAlias; | ||
154 | }; | 154 | }; | ||
155 | 155 | | |||
156 | /** @brief If sourceType is a container that can be unpacked into outTypes, do so. */ | ||||
157 | void tryUnpackType(AbstractType::Ptr sourceType, QVector<AbstractType::Ptr>& outTypes, int starred); | ||||
158 | | ||||
156 | /** | 159 | /** | ||
157 | * @brief Handle a variable assignment to @p name and give it the type @p element. | 160 | * @brief Handle a variable assignment to @p name and give it the type @p element. | ||
158 | */ | 161 | */ | ||
159 | void assignToName(NameAst* name, const SourceType& element); | 162 | void assignToName(NameAst* name, const SourceType& element); | ||
160 | 163 | | |||
161 | /** | 164 | /** | ||
162 | * @brief Handle assignment to subscript @p subscript with rhs type @p element. | 165 | * @brief Handle assignment to subscript @p subscript with rhs type @p element. | ||
163 | */ | 166 | */ | ||
▲ Show 20 Lines • Show All 123 Lines • Show Last 20 Lines |