summaryrefslogtreecommitdiff
path: root/source/slang/syntax.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2017-10-30 19:31:52 -0400
committerGitHub <noreply@github.com>2017-10-30 19:31:52 -0400
commit832d9c708891b10145c6648d893b04ca4a0b879a (patch)
treee1f44fc27bf80d94de5ac0e866c7409b2adcec22 /source/slang/syntax.h
parentc24c173101c2c124401af77d8c513a23efac3b7e (diff)
parent3ffdf610d05a9318731bd7237da530c3d312a9a9 (diff)
Merge pull request #235 from tfoleyNV/explicit-this-expr
Support `this` expressions (explicit and implicit)
Diffstat (limited to 'source/slang/syntax.h')
-rw-r--r--source/slang/syntax.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/slang/syntax.h b/source/slang/syntax.h
index d32c4de15..0b5a38631 100644
--- a/source/slang/syntax.h
+++ b/source/slang/syntax.h
@@ -859,6 +859,12 @@ namespace Slang
// lookup was able to find a member through type `U`
// instead.
Constraint,
+
+ // The lookup process considered a member of an
+ // enclosing type as being in scope, so that any
+ // reference to that member needs to use a `this`
+ // expression as appropriate.
+ This,
};
// The kind of lookup step that was performed