summaryrefslogtreecommitdiff
path: root/source/slang/syntax.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/syntax.h')
-rw-r--r--source/slang/syntax.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/source/slang/syntax.h b/source/slang/syntax.h
index 66eddc536..5eb62462e 100644
--- a/source/slang/syntax.h
+++ b/source/slang/syntax.h
@@ -632,7 +632,7 @@ namespace Slang
class Decl : public DeclBase
{
public:
- ContainerDecl* ParentDecl;
+ ContainerDecl* ParentDecl = nullptr;
Token Name;
String const& getName() { return Name.Content; }
@@ -1883,12 +1883,16 @@ namespace Slang
bool isOverloaded() const { return items.Count() > 1; }
};
+ class SemanticsVisitor;
+
struct LookupRequest
{
- RefPtr<Scope> scope = nullptr;
- RefPtr<Scope> endScope = nullptr;
+ SemanticsVisitor* semantics = nullptr;
+
+ RefPtr<Scope> scope = nullptr;
+ RefPtr<Scope> endScope = nullptr;
- LookupMask mask = LookupMask::All;
+ LookupMask mask = LookupMask::All;
};
// An expression that references an overloaded set of declarations