@@ -120,7 +120,7 @@ Use --csv to export unresolved calls with file, line, target, and reason.`,
120120
121121 // Export call sites JSON for validation against ground truth
122122 if dumpJSON != "" {
123- if err := dumpCallSitesJSON (cg , projectInput , dumpJSON ); err != nil {
123+ if err := dumpCallSitesJSON (cg , dumpJSON ); err != nil {
124124 fmt .Printf ("Error writing call sites JSON: %v\n " , err )
125125 } else {
126126 fmt .Printf ("\n Exported call sites to %s\n " , dumpJSON )
@@ -559,17 +559,17 @@ type callSiteRecord struct {
559559 File string `json:"file"`
560560 Line int `json:"line"`
561561 Col int `json:"col"`
562- CallerFQN string `json:"caller_fqn "`
562+ CallerFQN string `json:"callerFqn "`
563563 Target string `json:"target"`
564- OurFQN string `json:"our_fqn "`
564+ OurFQN string `json:"ourFqn "`
565565 Resolved bool `json:"resolved"`
566- TypeSource string `json:"type_source ,omitempty"` // e.g., "go_variable_binding", "thirdparty_local"
567- IsStdlib bool `json:"is_stdlib ,omitempty"`
566+ TypeSource string `json:"typeSource ,omitempty"` // e.g., "go_variable_binding", "thirdparty_local"
567+ IsStdlib bool `json:"isStdlib ,omitempty"`
568568}
569569
570570// dumpCallSitesJSON writes all Go call sites (resolved + unresolved) to a JSONL file
571571// so they can be compared against a ground-truth extractor (e.g., go/packages).
572- func dumpCallSitesJSON (cg * core.CallGraph , projectRoot , outputPath string ) error {
572+ func dumpCallSitesJSON (cg * core.CallGraph , outputPath string ) error {
573573 f , err := os .Create (outputPath )
574574 if err != nil {
575575 return fmt .Errorf ("failed to create JSON file: %w" , err )
0 commit comments