Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TypeChecker ¶
type TypeChecker interface { // EvalType produces the type of an expression or an error if the type cannot be evaluated. // TODO: we probably want to use a golang type rather than pb.ValueType (a proto). EvalType(expr string) (dpb.ValueType, error) }
TypeChecker validates a given expression for type safety.
func NewTypeChecker ¶
func NewTypeChecker(finder ast.AttributeDescriptorFinder) TypeChecker
NewTypeChecker returns a new TypeChecker implementation.
Click to show internal directories.
Click to hide internal directories.