diff options
Diffstat (limited to 'source/slang/slang-parser.cpp')
| -rw-r--r-- | source/slang/slang-parser.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang/slang-parser.cpp b/source/slang/slang-parser.cpp index 7447859c7..33f2e251b 100644 --- a/source/slang/slang-parser.cpp +++ b/source/slang/slang-parser.cpp @@ -4858,6 +4858,7 @@ namespace Slang isExpr->value = expr; parser->ReadToken(); isExpr->typeExpr = parser->ParseTypeExp(); + isExpr->loc = opToken.loc; expr = isExpr; continue; } @@ -4867,6 +4868,7 @@ namespace Slang asExpr->value = expr; parser->ReadToken(); asExpr->typeExpr = parser->ParseType(); + asExpr->loc = opToken.loc; expr = asExpr; continue; } |
