diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2017-07-07 15:06:16 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-07 15:06:16 -0700 |
| commit | c07a6e6b5f5e0e4839b435ff6c15b821b6dead11 (patch) | |
| tree | 8107b45190a0d8a33d07dcd6500ed0dfa939d530 /source/slang/syntax.h | |
| parent | 975e4b326cd2ef3ef0341d1fb7509315b9dee555 (diff) | |
| parent | f3fe9dddb8c528b4f9955d9105908600b4a8d0c8 (diff) | |
Merge pull request #59 from tfoleyNV/cross-compilation
More work on cross compilation
Diffstat (limited to 'source/slang/syntax.h')
| -rw-r--r-- | source/slang/syntax.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/slang/syntax.h b/source/slang/syntax.h index 4329f6cbd..1704c1224 100644 --- a/source/slang/syntax.h +++ b/source/slang/syntax.h @@ -671,6 +671,11 @@ namespace Slang bool isValid() const { return item.declRef.getDecl() != nullptr; } bool isOverloaded() const { return items.Count() > 1; } + + String const& getName() const + { + return items.Count() > 1 ? items[0].declRef.GetName() : item.declRef.GetName(); + } }; struct SemanticsVisitor; |
