I don't really know it from documenation, but it is kind of intuitive. Classes are loaded with all built-in features of Godot, whenever editor is running. All scripts exist, they have their code, but this code is not resolved, no signals received, they are not rooted to scene tree. But You can call their code in the editor, by using tool
keyname script. Another keywords const
and enum
expose variables, so they can be easily referred and autocompleted in other scripts. There is also static
keyword, that exposes a whole function for this purposes. Thanks to this, You can make const variables by combinations of other consts, enums and static functions. And all of this happens before project is even run. Only after You run project, a scene tree and autoload are created, and all scenes are childed to the tree emitting their ready
signals.