mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:57:43 +00:00
HackStudio: Port to Core::Stream::File
:^)
This commit is contained in:
parent
697d6ffb1d
commit
4784ad66b2
8 changed files with 72 additions and 66 deletions
|
@ -10,6 +10,7 @@
|
|||
#include <AK/HashMap.h>
|
||||
#include <AK/NonnullRefPtr.h>
|
||||
#include <LibCodeComprehension/FileDB.h>
|
||||
#include <LibCore/Stream.h>
|
||||
#include <LibGUI/TextDocument.h>
|
||||
|
||||
namespace LanguageServers {
|
||||
|
@ -31,9 +32,9 @@ public:
|
|||
bool is_open(DeprecatedString const& filename) const;
|
||||
|
||||
private:
|
||||
RefPtr<GUI::TextDocument> create_from_filesystem(DeprecatedString const& filename) const;
|
||||
RefPtr<GUI::TextDocument> create_from_fd(int fd) const;
|
||||
RefPtr<GUI::TextDocument> create_from_file(Core::File&) const;
|
||||
ErrorOr<NonnullRefPtr<GUI::TextDocument>> create_from_filesystem(DeprecatedString const& filename) const;
|
||||
ErrorOr<NonnullRefPtr<GUI::TextDocument>> create_from_fd(int fd) const;
|
||||
ErrorOr<NonnullRefPtr<GUI::TextDocument>> create_from_file(NonnullOwnPtr<Core::Stream::File>) const;
|
||||
static RefPtr<GUI::TextDocument> create_with_content(DeprecatedString const&);
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue