MCPcopy
hub / github.com/rgburke/grv / allowedTypes

Method allowedTypes

cmd/grv/expression_processor.go:108–124  ·  view source on GitHub ↗
(operatorPosition binaryOperatorPosition)

Source from the content-addressed store, hash-verified

106}
107
108func (operator *Operator) allowedTypes(operatorPosition binaryOperatorPosition) (fieldTypes []FieldType) {
109 allowedOperandTypes, ok := operatorAllowedOperandTypes[operator.operator.tokenType]
110 if !ok {
111 return
112 }
113
114 allowedTypes, ok := allowedOperandTypes[operatorPosition]
115 if !ok {
116 return
117 }
118
119 for fieldType := range allowedTypes {
120 fieldTypes = append(fieldTypes, fieldType)
121 }
122
123 return
124}
125
126const (
127 queryDateFormat = "2006-01-02"

Callers 1

ValidateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected