[apps/code] Refactoring

This commit is contained in:
Léa Saviot
2020-04-01 15:22:52 +02:00
committed by Émilie Feral
parent d2bfe01cd4
commit b11bab4045
2 changed files with 48 additions and 27 deletions

View File

@@ -66,6 +66,10 @@ private:
bool selectLeaf(int rowIndex) override;
void insertTextInCaller(const char * text, int textLength = -1);
void addNodesFromImportMaybe(mp_parse_node_struct_t * parseNode, const char * textToAutocomplete, int textToAutocompleteLength);
/* Add a node if it completes the text to autocomplete and if it is not
* already contained in the variable box. */
bool shouldAddNode(const char * textToAutocomplete, int textToAutocompleteLength, const char * name, int nameLength);
void checkAndAddNode(const char * textToAutocomplete, int textToAutocompleteLength, ScriptNode::Type type, NodeOrigin origin, const char * name, int nameLength, int scriptIndex = 0);
void addNode(ScriptNode::Type type, NodeOrigin origin, const char * name, int nameLength, int scriptIndex = 0);
bool contains(const char * name, int nameLength);