1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

parser,checker: support @METHOD, replaced by 'ReceiverType.MethodName'

This commit is contained in:
Delyan Angelov
2021-02-05 16:30:58 +02:00
parent d30f94507c
commit 25a3873019
5 changed files with 17 additions and 3 deletions

View File

@ -3516,6 +3516,7 @@ V also gives your code access to a set of pseudo string variables,
that are substituted at compile time:
- `@FN` => replaced with the name of the current V function
- `@METHOD` => replaced with ReceiverType.MethodName
- `@MOD` => replaced with the name of the current V module
- `@STRUCT` => replaced with the name of the current V struct
- `@FILE` => replaced with the path of the V source file