MCPcopy Index your code
hub / github.com/ory/keto / ToAPI

Method ToAPI

schema/parse_errors.go:75–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73}
74
75func (e *ParseError) ToAPI() *ketoapi.ParseError {
76 return &ketoapi.ParseError{
77 Message: e.msg,
78 Start: e.toSrcPos(e.item.Start),
79 End: e.toSrcPos(e.item.End),
80 }
81}
82func (e *ParseError) ToProto() *opl.ParseError {
83 start := e.toSrcPos(e.item.Start)
84 end := e.toSrcPos(e.item.End)

Callers 1

postCheckOplSyntaxMethod · 0.80

Calls 1

toSrcPosMethod · 0.95

Tested by

no test coverage detected