diff options
| author | Yong He <yonghe@outlook.com> | 2022-08-03 12:08:37 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-03 12:08:37 -0700 |
| commit | e81a5fe56f3177fc3c7040e2320ae083e3746eb7 (patch) | |
| tree | 884c15287bc10050e7883897dd266b27e62bff66 /source/slang/slang-ast-support-types.cpp | |
| parent | 260fc5fbe58f2cf976d64993054c638769bc280f (diff) | |
Basic pointer usages. (#2342)
Diffstat (limited to 'source/slang/slang-ast-support-types.cpp')
| -rw-r--r-- | source/slang/slang-ast-support-types.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/slang/slang-ast-support-types.cpp b/source/slang/slang-ast-support-types.cpp new file mode 100644 index 000000000..badb524bb --- /dev/null +++ b/source/slang/slang-ast-support-types.cpp @@ -0,0 +1,13 @@ +#include "slang-ast-support-types.h" +#include "slang-ast-base.h" +#include "slang-ast-type.h" + +Slang::QualType::QualType(Type* type) + : type(type) + , isLeftValue(false) +{ + if (as<RefType>(type)) + { + isLeftValue = true; + } +} |
