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

Function determineFieldType

cmd/grv/expression_processor.go:593–600  ·  view source on GitHub ↗
(expression Expression, fieldTypeDescriptor FieldTypeDescriptor)

Source from the content-addressed store, hash-verified

591}
592
593func determineFieldType(expression Expression, fieldTypeDescriptor FieldTypeDescriptor) (fieldType FieldType, isValueType bool) {
594 if typeDescriptor, ok := expression.(TypeDescriptor); ok {
595 fieldType = typeDescriptor.FieldType(fieldTypeDescriptor)
596 isValueType = true
597 }
598
599 return
600}
601
602func fieldTypeNamesString(fieldTypes []FieldType) string {
603 var typeNames []string

Callers 1

ValidateMethod · 0.85

Calls 1

FieldTypeMethod · 0.65

Tested by

no test coverage detected