MCPcopy Create free account
hub / github.com/bytebase/bytebase / convertToPosition

Function convertToPosition

backend/api/v1/common_converter.go:8–17  ·  view source on GitHub ↗
(position *storepb.Position)

Source from the content-addressed store, hash-verified

6)
7
8func convertToPosition(position *storepb.Position) *v1pb.Position {
9 if position == nil {
10 return nil
11 }
12
13 return &v1pb.Position{
14 Line: position.Line,
15 Column: position.Column,
16 }
17}

Callers 5

QueryMethod · 0.85
validateQueryRequestFunction · 0.85
convertToV1AdviceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected