summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-syntax.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-syntax.cpp')
-rw-r--r--source/slang/slang-syntax.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/slang/slang-syntax.cpp b/source/slang/slang-syntax.cpp
index 24ccfa4a4..957d4e661 100644
--- a/source/slang/slang-syntax.cpp
+++ b/source/slang/slang-syntax.cpp
@@ -930,7 +930,10 @@ Index getFilterCountImpl(const ReflectClassInfo& clsInfo, MemberFilterStyle filt
{
return decl->nameAndLoc.name;
}
-
+ SourceLoc DeclRefBase::getNameLoc() const
+ {
+ return decl->nameAndLoc.loc;
+ }
SourceLoc DeclRefBase::getLoc() const
{
return decl->loc;