I'm a brand new member here at these forums.
And am relatively new to the Swift programming language also.
Although I do have much coding experience with other languages.
After learning the basics of the language, and coding some practice projects.
I have started my first serious large Swift macOS application project.
Which is a small lightweight Swift code/script editor, much like the MacOS Script Editor application.
But instead of AppleScript, you can write and run Swift code, and get the returned results in an accessory view console.
I've implemented a keyword autocomplete mechanism into the editor, which offers code word suggestions in a pop up view, although at the moment it's only suggesting Swift language keywords, and Foundation and AppKit class type names.
But I would like to explore the options for a more comprehensive word autocomplete solution.
One that would offer property and function suggestions for variables or class types that are written in the code.
I'm aware of the SourceKitten project, but my understanding is that it relies on the SourceKit Framework which is part of the Xcode installation.
So I'm looking for solutions that don't rely on Xcode being installed, and instead can use the installed 'swift' or 'swiftc' command line installations, to offer autocomplete keyword suggestions.
So is there anyway to pass swift or the swift compiler, the code or a code file directly, so that it can analyse the code, and return the class type of any declared constants or variables ?
I'm open to any ideas or suggestions on how to go about tackling this problem.