Changeset View
Changeset View
Standalone View
Standalone View
duchain/builders/typebuilder.cpp
Show First 20 Lines • Show All 279 Lines • ▼ Show 20 Line(s) | 275 | { | |||
---|---|---|---|---|---|
280 | if(node->idOrType && node->fulltype) | 280 | if(node->idOrType && node->fulltype) | ||
281 | buildTypeName(node->idOrType, node->fulltype); | 281 | buildTypeName(node->idOrType, node->fulltype); | ||
282 | TypeBuilderBase::visitParameter(node); | 282 | TypeBuilderBase::visitParameter(node); | ||
283 | } | 283 | } | ||
284 | 284 | | |||
285 | go::GoFunctionType::Ptr TypeBuilder::parseSignature(go::SignatureAst *node, bool declareParameters, DUContext **parametersContext, DUContext **returnArgsContext, | 285 | go::GoFunctionType::Ptr TypeBuilder::parseSignature(go::SignatureAst *node, bool declareParameters, DUContext **parametersContext, DUContext **returnArgsContext, | ||
286 | const QualifiedIdentifier &identifier, const QByteArray &comment) | 286 | const QualifiedIdentifier &identifier, const QByteArray &comment) | ||
287 | { | 287 | { | ||
288 | Q_UNUSED(comment); | ||||
288 | go::GoFunctionType::Ptr type(new go::GoFunctionType()); | 289 | go::GoFunctionType::Ptr type(new go::GoFunctionType()); | ||
289 | openType<go::GoFunctionType>(type); | 290 | openType<go::GoFunctionType>(type); | ||
290 | 291 | | |||
291 | if(declareParameters) | 292 | if(declareParameters) | ||
292 | { | 293 | { | ||
293 | *parametersContext = openContext(node->parameters, editorFindRange(node->parameters, 0), DUContext::ContextType::Function, identifier); | 294 | *parametersContext = openContext(node->parameters, editorFindRange(node->parameters, 0), DUContext::ContextType::Function, identifier); | ||
294 | } | 295 | } | ||
295 | 296 | | |||
▲ Show 20 Lines • Show All 141 Lines • Show Last 20 Lines |