Changeset View
Changeset View
Standalone View
Standalone View
duchain/builders/contextbuilder.cpp
Show First 20 Lines • Show All 179 Lines • ▼ Show 20 Line(s) | 174 | { | |||
---|---|---|---|---|---|
180 | { | 180 | { | ||
181 | declaration = go::getTypeOrVarDeclaration(id, currentContext()); | 181 | declaration = go::getTypeOrVarDeclaration(id, currentContext()); | ||
182 | if (!declaration) | 182 | if (!declaration) | ||
183 | { | 183 | { | ||
184 | declaration = go::getDeclaration(id, currentContext()); | 184 | declaration = go::getDeclaration(id, currentContext()); | ||
185 | } | 185 | } | ||
186 | if(declaration && declaration->kind() == Declaration::Type) | 186 | if(declaration && declaration->kind() == Declaration::Type) | ||
187 | { | 187 | { | ||
188 | const RangeInRevision &range = editorFindRange(primaryExprResolveNode->literalValue, 0); | 188 | // const RangeInRevision &range = editorFindRange(primaryExprResolveNode->literalValue, 0); // Unused | ||
189 | openContext(node->id, editorFindRange(primaryExprResolveNode->literalValue, 0), DUContext::Other, id); | 189 | openContext(node->id, editorFindRange(primaryExprResolveNode->literalValue, 0), DUContext::Other, id); | ||
190 | visitPrimaryExprResolve(node->primaryExprResolve); | 190 | visitPrimaryExprResolve(node->primaryExprResolve); | ||
191 | closeContext(); | 191 | closeContext(); | ||
192 | return; | 192 | return; | ||
193 | } | 193 | } | ||
194 | } | 194 | } | ||
195 | primaryExprResolveNode = primaryExprResolveNode->primaryExprResolve; | 195 | primaryExprResolveNode = primaryExprResolveNode->primaryExprResolve; | ||
196 | } | 196 | } | ||
197 | } | 197 | } | ||
198 | } | 198 | } | ||
199 | go::DefaultVisitor::visitPrimaryExpr(node); | 199 | go::DefaultVisitor::visitPrimaryExpr(node); | ||
200 | } | 200 | } | ||
201 | 201 | |