MCPcopy Create free account
hub / github.com/cockscomb/cel2sql / FindType

Method FindType

bq/provider.go:53–59  ·  view source on GitHub ↗
(typeName string)

Source from the content-addressed store, hash-verified

51}
52
53func (p *typeProvider) FindType(typeName string) (*exprpb.Type, bool) {
54 _, found := p.findSchema(typeName)
55 if !found {
56 return nil, false
57 }
58 return decls.NewTypeType(decls.NewObjectType(typeName)), true
59}
60
61func (p *typeProvider) FindFieldType(messageType string, fieldName string) (*ref.FieldType, bool) {
62 schema, found := p.findSchema(messageType)

Callers 1

Calls 1

findSchemaMethod · 0.95

Tested by 1