diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2019-02-05 16:47:37 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-05 16:47:37 -0800 |
| commit | 13d7e34d8be4316c59bd3d00a1e5526215db6fa4 (patch) | |
| tree | 1a774f323300e72ca2ae66db2d883491f0790d39 /source/slang/syntax.cpp | |
| parent | 43950e2b2f2b1109fe25e67fc678272af6dfb7ef (diff) | |
| parent | 60cc9f24c4bec54561bea873ee943aa3d0973dc2 (diff) | |
Merge branch 'master' into fix-nested-type-conformances
Diffstat (limited to 'source/slang/syntax.cpp')
| -rw-r--r-- | source/slang/syntax.cpp | 7 |
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) |
