Skip to content

Commit 54595c8

Browse files
committed
code instead of filename
1 parent 8208165 commit 54595c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/flowkit/arguments.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func ParseArgumentsWithoutType(fileName string, code []byte, args []string) (scr
127127

128128
codes := map[common.LocationID]string{}
129129
location := common.StringLocation(fileName)
130-
program, must := cmd.PrepareProgramFromFile(location, codes)
130+
program, must := cmd.PrepareProgram(string(code), location, codes)
131131
checker, _ := cmd.PrepareChecker(program, location, codes, nil, must)
132132

133133
var parameterList []*ast.Parameter

0 commit comments

Comments
 (0)