MCPcopy Index your code
hub / github.com/sqlc-dev/sqlc / convertCallStmt

Method convertCallStmt

internal/engine/dolphin/convert.go:1607–1629  ·  view source on GitHub ↗
(n *pcast.CallStmt)

Source from the content-addressed store, hash-verified

1605}
1606
1607func (c *cc) convertCallStmt(n *pcast.CallStmt) ast.Node {
1608 var funcname ast.List
1609 for _, s := range []string{n.Procedure.Schema.L, n.Procedure.FnName.L} {
1610 if s != "" {
1611 funcname.Items = append(funcname.Items, NewIdentifier(s))
1612 }
1613 }
1614 var args ast.List
1615 for _, a := range n.Procedure.Args {
1616 args.Items = append(args.Items, c.convert(a))
1617 }
1618 return &ast.CallStmt{
1619 FuncCall: &ast.FuncCall{
1620 Func: &ast.FuncName{
1621 Schema: n.Procedure.Schema.L,
1622 Name: n.Procedure.FnName.L,
1623 },
1624 Funcname: &funcname,
1625 Args: &args,
1626 Location: n.OriginTextPosition(),
1627 },
1628 }
1629}
1630
1631func (c *cc) convertProcedureInfo(n *pcast.ProcedureInfo) ast.Node {
1632 var params ast.List

Callers 1

convertMethod · 0.95

Calls 2

convertMethod · 0.95
NewIdentifierFunction · 0.70

Tested by

no test coverage detected