diff options
author | metagn <metagngn@gmail.com> | 2022-08-23 20:44:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-23 19:44:37 +0200 |
commit | f6eb1d4d7d09eee1c366eff44437034e12bbb099 (patch) | |
tree | 25ccd3d20b839ee46fd83cd456c75aaddc51434e /compiler/pragmas.nim | |
parent | 3dbf2ac9469bdaaf876f902242a883fe1847adf0 (diff) | |
download | Nim-f6eb1d4d7d09eee1c366eff44437034e12bbb099.tar.gz |
remove {.this.} pragma, deprecated since 0.19 (#20201)
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
Diffstat (limited to 'compiler/pragmas.nim')
-rw-r--r-- | compiler/pragmas.nim | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/compiler/pragmas.nim b/compiler/pragmas.nim index 8c7d75024..2e86b6c44 100644 --- a/compiler/pragmas.nim +++ b/compiler/pragmas.nim @@ -1216,15 +1216,6 @@ proc singlePragma(c: PContext, sym: PSym, n: PNode, i: var int, if not isTopLevel(c): localError(c.config, n.info, "'experimental' pragma only valid as toplevel statement or in a 'push' environment") processExperimental(c, it) - of wThis: - if it.kind in nkPragmaCallKinds and it.len == 2: - c.selfName = considerQuotedIdent(c, it[1]) - message(c.config, n.info, warnDeprecated, "'.this' pragma is deprecated") - elif it.kind == nkIdent or it.len == 1: - c.selfName = getIdent(c.cache, "self") - message(c.config, n.info, warnDeprecated, "'.this' pragma is deprecated") - else: - localError(c.config, it.info, "'this' pragma is allowed to have zero or one arguments") of wNoRewrite: noVal(c, it) of wBase: |