Changeset View
Changeset View
Standalone View
Standalone View
duchain/builders/usebuilder.cpp
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Line(s) | 57 | { | |||
---|---|---|---|---|---|
59 | // will lead to undefined behavior due to the amount of optimization it has received | 59 | // will lead to undefined behavior due to the amount of optimization it has received | ||
60 | // (esp. in the contextbuilder) | 60 | // (esp. in the contextbuilder) | ||
61 | Q_ASSERT(url != internalFunctionFile()); | 61 | Q_ASSERT(url != internalFunctionFile()); | ||
62 | return UseBuilderBase::build ( url, node, updateContext ); | 62 | return UseBuilderBase::build ( url, node, updateContext ); | ||
63 | } | 63 | } | ||
64 | 64 | | |||
65 | void UseBuilder::visitParameter(ParameterAst *node) | 65 | void UseBuilder::visitParameter(ParameterAst *node) | ||
66 | { | 66 | { | ||
67 | if (node->parameterType) { | 67 | if (node->parameterType && node->parameterType->objectType) { | ||
68 | buildNamespaceUses(node->parameterType); | 68 | buildNamespaceUses(node->parameterType->objectType); | ||
69 | } | 69 | } | ||
70 | } | 70 | } | ||
71 | 71 | | |||
72 | void UseBuilder::visitClassImplements(ClassImplementsAst *node) | 72 | void UseBuilder::visitClassImplements(ClassImplementsAst *node) | ||
73 | { | 73 | { | ||
74 | if (node->implementsSequence) { | 74 | if (node->implementsSequence) { | ||
75 | const KDevPG::ListNode<NamespacedIdentifierAst*> *__it = node->implementsSequence->front(), *__end = __it; | 75 | const KDevPG::ListNode<NamespacedIdentifierAst*> *__it = node->implementsSequence->front(), *__end = __it; | ||
76 | do { | 76 | do { | ||
▲ Show 20 Lines • Show All 199 Lines • Show Last 20 Lines |