@@ -189,7 +189,7 @@ function parse_unary_colon(ps::ParseState, op)
189189end
190190
191191# Parse assignments
192- function parse_operator_eq(ps:: ParseState , ret, op)
192+ function parse_operator_eq(ps:: ParseState , ret:: ANY , op)
193193 # Parsing
194194 @catcherror ps nextarg = @precedence ps AssignmentOp - LtoR(AssignmentOp) parse_expression(ps)
195195
@@ -205,7 +205,7 @@ function parse_operator_eq(ps::ParseState, ret, op)
205205end
206206
207207# Parse conditionals
208- function parse_operator_cond(ps:: ParseState , ret, op)
208+ function parse_operator_cond(ps:: ParseState , ret:: ANY , op)
209209 @catcherror ps nextarg = @closer ps ifop parse_expression(ps)
210210 @catcherror ps op2 = OPERATOR(next(ps))
211211 @catcherror ps nextarg2 = @closer ps comma @precedence ps 0 parse_expression(ps)
@@ -214,7 +214,7 @@ function parse_operator_cond(ps::ParseState, ret, op)
214214end
215215
216216# Parse comparisons
217- function parse_comp_operator(ps:: ParseState , ret, op)
217+ function parse_comp_operator(ps:: ParseState , ret:: ANY , op)
218218 @catcherror ps nextarg = @precedence ps ComparisonOp - LtoR(ComparisonOp) parse_expression(ps)
219219 if ret isa EXPR{Comparison}
220220 push!(ret, op)
@@ -232,7 +232,7 @@ function parse_comp_operator(ps::ParseState, ret, op)
232232end
233233
234234# Parse ranges
235- function parse_operator_colon(ps:: ParseState , ret, op)
235+ function parse_operator_colon(ps:: ParseState , ret:: ANY , op)
236236 @catcherror ps nextarg = @precedence ps ColonOp - LtoR(ColonOp) parse_expression(ps)
237237 if ret isa BinarySyntaxOpCall && is_colon(ret. op)
238238 ret = EXPR{ColonOpCall}(Any[ret. arg1, ret. op, ret. arg2])
248248
249249
250250# Parse power (special case for preceding unary ops)
251- function parse_operator_power(ps:: ParseState , ret, op)
251+ function parse_operator_power(ps:: ParseState , ret:: ANY , op)
252252 @catcherror ps nextarg = @precedence ps PowerOp - LtoR(PowerOp) @closer ps inwhere parse_expression(ps)
253253
254254 # Construction
269269
270270
271271# parse where
272- function parse_operator_where(ps:: ParseState , ret, op)
272+ function parse_operator_where(ps:: ParseState , ret:: ANY , op)
273273 args = Any[]
274274 if ps. nt. kind == Tokens. LBRACE
275275 next(ps)
@@ -290,7 +290,7 @@ function parse_operator_where(ps::ParseState, ret, op)
290290end
291291
292292# parse dot access
293- function parse_operator_dot(ps:: ParseState , ret, op)
293+ function parse_operator_dot(ps:: ParseState , ret:: ANY , op)
294294 if ps. nt. kind == Tokens. LPAREN
295295 @catcherror ps sig = @default ps @closer ps paren parse_call(ps, ret)
296296 args = EXPR{TupleH}(sig. args[2 : end ])
@@ -330,20 +330,20 @@ function parse_operator_dot(ps::ParseState, ret, op)
330330end
331331
332332
333- function parse_operator_dddot(ps:: ParseState , ret, op)
333+ function parse_operator_dddot(ps:: ParseState , ret:: ANY , op)
334334 return UnarySyntaxOpCall(ret, op)
335335end
336336
337- function parse_operator_prime(ps:: ParseState , ret, op)
337+ function parse_operator_prime(ps:: ParseState , ret:: ANY , op)
338338 return UnarySyntaxOpCall(ret, op)
339339end
340340
341- function parse_operator_anon_func(ps:: ParseState , ret, op)
341+ function parse_operator_anon_func(ps:: ParseState , ret:: ANY , op)
342342 @catcherror ps arg = @closer ps comma @precedence ps 0 parse_expression(ps)
343343 return BinarySyntaxOpCall(ret, op, EXPR{Block}(Any[arg]))
344344end
345345
346- function parse_operator(ps:: ParseState , ret, op)
346+ function parse_operator(ps:: ParseState , ret:: ANY , op)
347347 K,dot = op. kind, op. dot
348348 P = precedence(K)
349349
0 commit comments