MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / setDeclaration

Method setDeclaration

libs/wxutil/sourceview/DeclarationSourceView.cpp:28–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28void DeclarationSourceView::setDeclaration(const decl::IDeclaration::Ptr& decl)
29{
30 _declChangedConn.disconnect();
31
32 _decl = decl;
33
34 if (_decl)
35 {
36 _declChangedConn = _decl->signal_DeclarationChanged().connect(
37 sigc::mem_fun(*this, &DeclarationSourceView::update)
38 );
39 }
40
41 updateSourceView();
42 update();
43 updateTitle();
44}
45
46void DeclarationSourceView::setDeclaration(decl::Type type, const std::string& declName)
47{

Callers 5

onShowClassDefinitionMethod · 0.80
showDefinitionMethod · 0.80
CreateDeclarationViewMethod · 0.80

Calls 3

disconnectMethod · 0.45
connectMethod · 0.45
findDeclarationMethod · 0.45

Tested by

no test coverage detected