Problem
parseReference parses a full expression after & but only stores it if the result is an identifier. For any other expression, ReferenceExpression.Var remains nil and later String/Position can panic.
Tasks
Refs: parser/expr_prefix.go:21, parser/ast.go:328.
Related: #4
Problem
parseReferenceparses a full expression after&but only stores it if the result is an identifier. For any other expression,ReferenceExpression.Varremains nil and laterString/Positioncan panic.Tasks
&is restricted to identifiers or supports broader lvalues.&(x),&p.field,&arr[i], and invalid cases.Refs:
parser/expr_prefix.go:21,parser/ast.go:328.Related: #4