| 98 | } |
| 99 | |
| 100 | Ref<EditorSyntaxHighlighter> EditorSyntaxHighlighter::_create() const { |
| 101 | Ref<EditorSyntaxHighlighter> syntax_highlighter; |
| 102 | if (GDVIRTUAL_IS_OVERRIDDEN(_create)) { |
| 103 | GDVIRTUAL_CALL(_create, syntax_highlighter); |
| 104 | } else { |
| 105 | syntax_highlighter.instantiate(); |
| 106 | if (get_script_instance()) { |
| 107 | syntax_highlighter->set_script(get_script_instance()->get_script()); |
| 108 | } |
| 109 | } |
| 110 | return syntax_highlighter; |
| 111 | } |
| 112 | |
| 113 | void EditorSyntaxHighlighter::_bind_methods() { |
| 114 | ClassDB::bind_method(D_METHOD("_get_edited_resource"), &EditorSyntaxHighlighter::_get_edited_resource); |
no test coverage detected