summaryrefslogtreecommitdiff
path: root/source/slang/syntax.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2017-11-05 16:39:38 -0500
committerGitHub <noreply@github.com>2017-11-05 16:39:38 -0500
commit296e89ca4f3d6d99126bf2ee59666bc946add431 (patch)
treebff41e36c9b6843d83a5ca5e83645310be6687f3 /source/slang/syntax.h
parentc6fb1de9547bd24a693915b758cc35499f1d949f (diff)
parentff7c46a11787ca6ecebf0a224772a41efef33fc0 (diff)
Merge pull request #243 from csyonghe/master
Adding associated types
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 0b5a38631..bda43b336 100644
--- a/source/slang/syntax.h
+++ b/source/slang/syntax.h
@@ -439,6 +439,7 @@ namespace Slang
// Apply substitutions to this declaration reference
DeclRefBase SubstituteImpl(Substitutions* subst, int* ioDiff);
+
// Check if this is an equivalent declaration reference to another
bool Equals(DeclRefBase const& declRef) const;
bool operator == (const DeclRefBase& other) const
@@ -1155,6 +1156,11 @@ namespace Slang
Session* session,
Decl* decl);
+ RefPtr<ThisTypeSubstitution> getNewThisTypeSubst(DeclRefBase & declRef);
+ RefPtr<ThisTypeSubstitution> getThisTypeSubst(DeclRefBase & declRef, bool insertSubstEntry);
+ void removeSubstitution(DeclRefBase & declRef, RefPtr<Substitutions> subst);
+ bool hasGenericSubstitutions(RefPtr<Substitutions> subst);
+
} // namespace Slang
#endif \ No newline at end of file