summaryrefslogtreecommitdiffstats
path: root/source/slang/syntax.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2019-02-05 18:18:16 -0800
committerGitHub <noreply@github.com>2019-02-05 18:18:16 -0800
commita39fd3d3f67df28b9206c9f08bc7d046f9b0db59 (patch)
treea3971c4c6217914e9dc4c12917f26a7eb6ac28b2 /source/slang/syntax.cpp
parentc198eaba351850fcb3d82c2f5117efc0e2e2bf1e (diff)
parent60cc9f24c4bec54561bea873ee943aa3d0973dc2 (diff)
Merge branch 'master' into gencloser
Diffstat (limited to 'source/slang/syntax.cpp')
-rw-r--r--source/slang/syntax.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/slang/syntax.cpp b/source/slang/syntax.cpp
index 6b58809a6..0af318c9e 100644
--- a/source/slang/syntax.cpp
+++ b/source/slang/syntax.cpp
@@ -1427,7 +1427,7 @@ void Type::accept(IValVisitor* visitor, void* extra)
RefPtr<Substitutions> GlobalGenericParamSubstitution::applySubstitutionsShallow(SubstitutionSet substSet, RefPtr<Substitutions> substOuter, int* ioDiff)
{
- // if we find a GlobalGenericParamSubstitution in subst that references the same __generic_param decl
+ // if we find a GlobalGenericParamSubstitution in subst that references the same type_param decl
// return a copy of that GlobalGenericParamSubstitution
int diff = 0;
@@ -1884,6 +1884,11 @@ void Type::accept(IValVisitor* visitor, void* extra)
return decl->nameAndLoc.name;
}
+ SourceLoc DeclRefBase::getLoc() const
+ {
+ return decl->loc;
+ }
+
DeclRefBase DeclRefBase::GetParent() const
{
// Want access to the free function (the 'as' method by default gets priority)