Changeset View
Changeset View
Standalone View
Standalone View
duchain/builders/usebuilder.cpp
Show First 20 Lines • Show All 293 Lines • ▼ Show 20 Line(s) | 292 | { | |||
---|---|---|---|---|---|
294 | node->ducontext = currentContext(); | 294 | node->ducontext = currentContext(); | ||
295 | v.visitNode(node); | 295 | v.visitNode(node); | ||
296 | 296 | | |||
297 | if (v.result().hadUnresolvedIdentifiers()) { | 297 | if (v.result().hadUnresolvedIdentifiers()) { | ||
298 | m_hadUnresolvedIdentifiers = true; | 298 | m_hadUnresolvedIdentifiers = true; | ||
299 | } | 299 | } | ||
300 | } | 300 | } | ||
301 | 301 | | |||
302 | void UseBuilder::visitPropertyType(PropertyTypeAst* node) { | ||||
303 | if (node->typehint && isClassTypehint(node->typehint, m_editor)) { | ||||
304 | buildNamespaceUses(node->typehint->genericType); | ||||
305 | } | ||||
306 | } | ||||
307 | | ||||
302 | void UseBuilder::visitReturnType(ReturnTypeAst* node) { | 308 | void UseBuilder::visitReturnType(ReturnTypeAst* node) { | ||
303 | if (node->typehint && isClassTypehint(node->typehint, m_editor)) { | 309 | if (node->typehint && isClassTypehint(node->typehint, m_editor)) { | ||
304 | buildNamespaceUses(node->typehint->genericType); | 310 | buildNamespaceUses(node->typehint->genericType); | ||
305 | } | 311 | } | ||
306 | } | 312 | } | ||
307 | 313 | | |||
308 | } | 314 | } |