module analysis imports statixruntime statix/api pp injections/- libspoofax/term/origin rules // Analysis // single-file analysis editor-analyze = stx-editor-analyze(pre-analyze, post-analyze|"statics", "programOk") // see README.md for details on how to switch to multi-file analysis // multi-file analysis // editor-analyze = stx-editor-analyze(pre-analyze, post-analyze|"statics", "projectOk", "fileOk") pre-analyze = origin-track-forced(explicate-injections-fostr-Start) post-analyze = origin-track-forced(implicate-injections-fostr-Start) rules // Editor Services editor-resolve = stx-editor-resolve editor-hover = stx-editor-hover rules // Debugging // Prints the abstract syntax ATerm of a selection. debug-show-aterm: (selected, _, _, path, project-path) -> (filename, result) with filename := path ; result := selected // Prints the pre-analyzed abstract syntax ATerm of a selection. debug-show-pre-analyzed: (selected, _, _, path, project-path) -> (filename, result) with filename := path ; result := selected // Prints the analyzed annotated abstract syntax ATerm of a selection. debug-show-analyzed: (selected, _, _, path, project-path) -> (filename, result) with filename := path ; result := selected