MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / get_edit_state

Method get_edit_state

editor/gui/code_editor.cpp:1417–1429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1415}
1416
1417Variant CodeTextEditor::get_edit_state() {
1418 Dictionary state;
1419 state.merge(get_navigation_state());
1420
1421 state["folded_lines"] = text_editor->get_folded_lines();
1422 state["breakpoints"] = text_editor->get_breakpointed_lines();
1423 state["bookmarks"] = text_editor->get_bookmarked_lines();
1424
1425 Ref<EditorSyntaxHighlighter> syntax_highlighter = text_editor->get_syntax_highlighter();
1426 state["syntax_highlighter"] = syntax_highlighter->_get_name();
1427
1428 return state;
1429}
1430
1431Variant CodeTextEditor::get_previous_state() {
1432 return previous_state;

Callers

nothing calls this directly

Calls 6

get_folded_linesMethod · 0.80
get_bookmarked_linesMethod · 0.80
mergeMethod · 0.45
_get_nameMethod · 0.45

Tested by

no test coverage detected