diff options
Diffstat (limited to 'source/slang/slang-emit-source-writer.cpp')
| -rw-r--r-- | source/slang/slang-emit-source-writer.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/slang/slang-emit-source-writer.cpp b/source/slang/slang-emit-source-writer.cpp index 5f34afc81..5661a48bb 100644 --- a/source/slang/slang-emit-source-writer.cpp +++ b/source/slang/slang-emit-source-writer.cpp @@ -156,6 +156,12 @@ void SourceWriter::emit(const NameLoc& nameAndLoc) emit(getText(nameAndLoc.name)); } +void SourceWriter::emit(const StringSliceLoc& nameAndLoc) +{ + advanceToSourceLocation(nameAndLoc.loc); + emit(nameAndLoc.name); +} + void SourceWriter::emitName(Name* name, const SourceLoc& locIn) { advanceToSourceLocation(locIn); @@ -167,6 +173,11 @@ void SourceWriter::emitName(const NameLoc& nameAndLoc) emitName(nameAndLoc.name, nameAndLoc.loc); } +void SourceWriter::emitName(const StringSliceLoc& nameAndLoc) +{ + emit(nameAndLoc); +} + void SourceWriter::emitName(Name* name) { emitName(name, SourceLoc()); |
