From 20c9d91a758224e59b5c14657c4198ad8f83c6e4 Mon Sep 17 00:00:00 2001 From: Pandurang Patil Date: Fri, 15 Dec 2023 11:58:27 +0530 Subject: [PATCH] Added support for indirect dependency information (#33) --- goastgen/modfileparser.go | 1 + 1 file changed, 1 insertion(+) diff --git a/goastgen/modfileparser.go b/goastgen/modfileparser.go index e4a7cfa..5f8d2c7 100644 --- a/goastgen/modfileparser.go +++ b/goastgen/modfileparser.go @@ -50,6 +50,7 @@ func (mod *ModFile) Parse() (string, error) { node := make(map[string]interface{}) node["Module"] = req.Mod.Path node["Version"] = req.Mod.Version + node["Indirect"] = req.Indirect node["node_line_no"] = req.Syntax.Start.Line node["node_col_no"] = req.Syntax.Start.LineRune node["node_line_no_end"] = req.Syntax.End.Line