Changeset View
Changeset View
Standalone View
Standalone View
src/backends/julia/juliacompletionobject.h
Context not available. | |||||
24 | 24 | | |||
---|---|---|---|---|---|
25 | class JuliaSession; | 25 | class JuliaSession; | ||
26 | 26 | | |||
27 | /** | ||||
28 | * Implements code completion for Julia language | ||||
29 | * | ||||
30 | * Uses Julia's Base.REPL.REPLCompletions.completions command to get | ||||
31 | * context-aware completions like in native Julia REPL | ||||
32 | */ | ||||
27 | class JuliaCompletionObject : public Cantor::CompletionObject | 33 | class JuliaCompletionObject : public Cantor::CompletionObject | ||
28 | { | 34 | { | ||
29 | public: | 35 | public: | ||
36 | /** | ||||
37 | * Constructs JuliaCompletionObject | ||||
38 | * | ||||
39 | * @param cmd command piece to generate completion | ||||
40 | * @param index index of cursor in commmand | ||||
41 | * @param session current session | ||||
42 | */ | ||||
30 | JuliaCompletionObject(const QString &cmd, int index, JuliaSession *session); | 43 | JuliaCompletionObject(const QString &cmd, int index, JuliaSession *session); | ||
31 | ~JuliaCompletionObject(); | 44 | ~JuliaCompletionObject(); | ||
32 | 45 | | |||
33 | protected: | 46 | protected: | ||
47 | /** | ||||
48 | * @see Cantor::CompletionObject::mayIdentifierContain | ||||
49 | */ | ||||
34 | virtual bool mayIdentifierContain(QChar c) const; | 50 | virtual bool mayIdentifierContain(QChar c) const; | ||
35 | virtual bool mayIdentifierBeginWith(QChar c) const; | 51 | virtual bool mayIdentifierBeginWith(QChar c) const; | ||
36 | 52 | | |||
53 | /** | ||||
54 | * @see Cantor::CompletionObject::mayIdentifierBeginWith | ||||
55 | */ | ||||
56 | | ||||
37 | protected Q_SLOTS: | 57 | protected Q_SLOTS: | ||
58 | /** | ||||
59 | * @see Cantor::CompletionObject::fetchCompletions | ||||
60 | */ | ||||
38 | void fetchCompletions(); | 61 | void fetchCompletions(); | ||
39 | }; | 62 | }; | ||
Context not available. |