Changeset View
Changeset View
Standalone View
Standalone View
duchain/builders/declarationbuilder.cpp
Context not available. | |||||
177 | setComment(m_lastConstComment); | 177 | setComment(m_lastConstComment); | ||
---|---|---|---|---|---|
178 | } | 178 | } | ||
179 | DUChainWriteLocker lock; | 179 | DUChainWriteLocker lock; | ||
180 | Declaration* dec = openDeclaration<Declaration>(identifier.last(), editorFindRange(id, 0)); | 180 | auto dec = openDeclaration<Declaration>(identifier.last(), editorFindRange(id, 0)); | ||
181 | dec->setType<AbstractType>(type); | 181 | if (dec) { | ||
182 | dec->setKind(Declaration::Instance); | 182 | dec->setType<AbstractType>(type); | ||
183 | dec->setKind(Declaration::Instance); | ||||
184 | } | ||||
183 | closeDeclaration(); | 185 | closeDeclaration(); | ||
184 | } | 186 | } | ||
185 | } | 187 | } | ||
Context not available. |