mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:38:10 +00:00
HackStudio: Rename & move DeclarationsModel::Suggestion -> Declaration
This commit is contained in:
parent
28e4e351cb
commit
44033415bc
3 changed files with 25 additions and 25 deletions
|
@ -11,22 +11,22 @@
|
|||
|
||||
namespace HackStudio {
|
||||
|
||||
DeclarationsModel::Suggestion DeclarationsModel::Suggestion::create_filename(ByteString const& filename)
|
||||
Declaration Declaration::create_filename(ByteString const& filename)
|
||||
{
|
||||
DeclarationsModel::Suggestion s;
|
||||
Declaration s;
|
||||
s.as_filename = filename;
|
||||
return s;
|
||||
}
|
||||
DeclarationsModel::Suggestion DeclarationsModel::Suggestion::create_symbol_declaration(CodeComprehension::Declaration const& decl)
|
||||
Declaration Declaration::create_symbol_declaration(CodeComprehension::Declaration const& decl)
|
||||
{
|
||||
DeclarationsModel::Suggestion s;
|
||||
Declaration s;
|
||||
s.as_symbol_declaration = decl;
|
||||
return s;
|
||||
}
|
||||
|
||||
GUI::Variant DeclarationsModel::data(GUI::ModelIndex const& index, GUI::ModelRole role) const
|
||||
{
|
||||
auto& suggestion = m_suggestions.at(index.row());
|
||||
auto& suggestion = m_declarations.at(index.row());
|
||||
if (role != GUI::ModelRole::Display)
|
||||
return {};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue