remove .Cancel correct merge err set parsing

This commit is contained in:
Vexu 2020-03-15 01:02:33 +02:00
parent 5dd3c8eed6
commit 5e5dee829d
No known key found for this signature in database
GPG Key ID: 59AEB8936E16A6AC
3 changed files with 1 additions and 4 deletions

View File

@ -1591,7 +1591,6 @@ pub const Node = struct {
Await,
BitNot,
BoolNot,
Cancel,
OptionalType,
Negation,
NegationWrap,
@ -1661,7 +1660,6 @@ pub const Node = struct {
Op.Await,
Op.BitNot,
Op.BoolNot,
Op.Cancel,
Op.OptionalType,
Op.Negation,
Op.NegationWrap,

View File

@ -2181,7 +2181,7 @@ fn parseMultiplyOp(arena: *Allocator, it: *TokenIterator, tree: *Tree) !?*Node {
const token = nextToken(it);
const op = switch (token.ptr.id) {
.PipePipe => ops{ .BoolOr = {} },
.PipePipe => ops{ .MergeErrorSets = {} },
.Asterisk => ops{ .Mul = {} },
.Slash => ops{ .Div = {} },
.Percent => ops{ .Mod = {} },

View File

@ -583,7 +583,6 @@ fn renderExpression(
},
.Try,
.Cancel,
.Resume,
=> {
try renderToken(tree, stream, prefix_op_node.op_token, indent, start_col, Space.Space);