From e81a5fe56f3177fc3c7040e2320ae083e3746eb7 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 3 Aug 2022 12:08:37 -0700 Subject: Basic pointer usages. (#2342) --- source/slang/slang-ast-support-types.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 source/slang/slang-ast-support-types.cpp (limited to 'source/slang/slang-ast-support-types.cpp') 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(type)) + { + isLeftValue = true; + } +} -- cgit v1.2.3