I also had a compiler related description come to me after using Copilot. It allows you to partially generate imperative code declaratively, by writing a comment like
//now I will get rows X, Y, Z from ContentsProvider
then tab tab complete. You can then even tweak the generated code, very useful!
There's the rub: AI coding is like super tab complete. It's a useful tool. Full stop.