pub fn scene_context(db: &dyn Db, file: FileText) -> Option<SceneContext>Expand description
The owning-scene context for the script in file (M1): the scene’s FileId, the parsed
scene, and the attach node, so $Path/%Unique/get_node("…") can resolve (and go-to-def can
jump into the .tscn). None when the project has no scene attaching this script (the
overwhelmingly common single-file / dynamic-UI case → node paths stay Node).