And yes, you are correct. I just wondering if yii translate the whole source code at runtime. We had use "@xxxx" at our source code in many function calls. And it just works.
No, it does not. It inits an array of root aliases bound to dirs. Then when getAlias() is used it’s looking up this array and replaces first part of the alias starting with @ with what’s in the aliases array.