summaryrefslogtreecommitdiff
path: root/src/parser/contexts.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/contexts.h')
-rw-r--r--src/parser/contexts.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/parser/contexts.h b/src/parser/contexts.h
index 4c15c0308..08cebe33b 100644
--- a/src/parser/contexts.h
+++ b/src/parser/contexts.h
@@ -808,6 +808,11 @@ struct NullInstrParserCtx {
return Ok{};
}
template<typename HeapTypeT>
+ Result<>
+ makeContBind(Index, const std::vector<Annotation>&, HeapTypeT, HeapTypeT) {
+ return Ok{};
+ }
+ template<typename HeapTypeT>
Result<> makeContNew(Index, const std::vector<Annotation>&, HeapTypeT) {
return Ok{};
}
@@ -2547,6 +2552,13 @@ struct ParseDefsCtx : TypeParserCtx<ParseDefsCtx> {
return withLoc(pos, irBuilder.makeStringSliceIter());
}
+ Result<> makeContBind(Index pos,
+ const std::vector<Annotation>& annotations,
+ HeapType contTypeBefore,
+ HeapType contTypeAfter) {
+ return withLoc(pos, irBuilder.makeContBind(contTypeBefore, contTypeAfter));
+ }
+
Result<> makeContNew(Index pos,
const std::vector<Annotation>& annotations,
HeapType type) {