Browse Source

Clarify why we need int constants for expression types.

Change-Id: I053fc5d32c118dbdb204dc8193337f981aff796e
pull/430/head
Julius Volz 10 years ago
parent
commit
2ade9d40cf
  1. 4
      rules/ast/ast.go

4
rules/ast/ast.go

@ -68,7 +68,9 @@ type groupedAggregation struct {
// ExprType is an enum for the rule language expression types.
type ExprType int
// Possible language expression types.
// Possible language expression types. We define these as integer constants
// because sometimes we need to pass around just the type without an object of
// that type.
const (
SCALAR ExprType = iota
VECTOR

Loading…
Cancel
Save