summaryrefslogtreecommitdiff
path: root/source/slang/expr-defs.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2018-01-18 12:49:59 -0800
committerGitHub <noreply@github.com>2018-01-18 12:49:59 -0800
commit2079b941bc5849b6ab33774fb90cefe9c2d624cb (patch)
tree6bba14a93d90a251c4e2f75381ddf71ea9a3bbca /source/slang/expr-defs.h
parent68f529af8d0eb8ec45a2d73e82c4ee372015ce01 (diff)
parent9eb8b4e187e8b4fc5394668d476ada0512ae4ccc (diff)
Merge pull request #371 from csyonghe/master
All compiler fixes to get ir branch work with falcor feature demo.
Diffstat (limited to 'source/slang/expr-defs.h')
-rw-r--r--source/slang/expr-defs.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/slang/expr-defs.h b/source/slang/expr-defs.h
index e3c16a674..4b47cc883 100644
--- a/source/slang/expr-defs.h
+++ b/source/slang/expr-defs.h
@@ -30,6 +30,18 @@ SYNTAX_CLASS(OverloadedExpr, Expr)
FIELD(LookupResult, lookupResult2)
END_SYNTAX_CLASS()
+// An expression that references an overloaded set of declarations
+// having the same name.
+SYNTAX_CLASS(OverloadedExpr2, Expr)
+
+ // Optional: the base expression is this overloaded result
+ // arose from a member-reference expression.
+ SYNTAX_FIELD(RefPtr<Expr>, base)
+
+ // The lookup result that was ambiguous
+ FIELD(List<RefPtr<Expr>>, candidiateExprs)
+END_SYNTAX_CLASS()
+
SYNTAX_CLASS(ConstantExpr, Expr)
FIELD(Token, token)