Changeset View
Changeset View
Standalone View
Standalone View
duchain/builders/declarationbuilder.cpp
Show First 20 Lines • Show All 672 Lines • ▼ Show 20 Line(s) | |||||
673 | } | 673 | } | ||
674 | 674 | | |||
675 | go::GoFunctionDefinition* DeclarationBuilder::declareMethod(go::IdentifierAst *id, const go::GoFunctionType::Ptr &type, | 675 | go::GoFunctionDefinition* DeclarationBuilder::declareMethod(go::IdentifierAst *id, const go::GoFunctionType::Ptr &type, | ||
676 | DUContext *paramContext, DUContext *retparamContext, | 676 | DUContext *paramContext, DUContext *retparamContext, | ||
677 | const QByteArray &comment, DUContext *bodyContext, | 677 | const QByteArray &comment, DUContext *bodyContext, | ||
678 | go::GoFunctionDeclaration *declaration, | 678 | go::GoFunctionDeclaration *declaration, | ||
679 | const QualifiedIdentifier &identifier) | 679 | const QualifiedIdentifier &identifier) | ||
680 | { | 680 | { | ||
681 | (void)declaration; | ||||
681 | setComment(comment); | 682 | setComment(comment); | ||
682 | DUChainWriteLocker lock; | 683 | DUChainWriteLocker lock; | ||
683 | auto dec = openDefinition<go::GoFunctionDefinition>(identifier, editorFindRange(id, 0)); | 684 | auto dec = openDefinition<go::GoFunctionDefinition>(identifier, editorFindRange(id, 0)); | ||
684 | dec->setType<go::GoFunctionType>(type); | 685 | dec->setType<go::GoFunctionType>(type); | ||
685 | dec->setKind(Declaration::Instance); | 686 | dec->setKind(Declaration::Instance); | ||
686 | dec->setInternalContext(bodyContext); | 687 | dec->setInternalContext(bodyContext); | ||
687 | 688 | | |||
688 | if(bodyContext) | 689 | if(bodyContext) | ||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |