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

Method FieldType

cmd/grv/expression_processor.go:271–277  ·  view source on GitHub ↗

FieldType returns the data type of the field represented by this identifier

(fieldTypeDescriptor FieldTypeDescriptor)

Source from the content-addressed store, hash-verified

269
270// FieldType returns the data type of the field represented by this identifier
271func (identifier *Identifier) FieldType(fieldTypeDescriptor FieldTypeDescriptor) FieldType {
272 if fieldType, fieldExists := fieldTypeDescriptor.FieldType(identifier.identifier.value); fieldExists {
273 return fieldType
274 }
275
276 return FtInvalid
277}
278
279// Validate that this identifier represents a valid field
280func (identifier *Identifier) Validate(fieldTypeDescriptor FieldTypeDescriptor) (errors []error) {

Callers

nothing calls this directly

Calls 1

FieldTypeMethod · 0.65

Tested by

no test coverage detected