We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06d5fe6 commit 80f2fb8Copy full SHA for 80f2fb8
1 file changed
parser.go
@@ -811,6 +811,12 @@ func parseArrayAccess(item celast.Expr) string {
811
return ""
812
}
813
args := item.AsCall().Args()
814
+ if len(args) < 2 {
815
+ return ""
816
+ }
817
+ if args[1].Kind() != celast.LiteralKind {
818
819
820
return fmt.Sprintf("%s[%v]", walkSelect(args[0]), args[1].AsLiteral().Value())
821
822
0 commit comments