From 2ade9d40cf3eea3279c6a268a34dc9ca365a1bf0 Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Thu, 25 Dec 2014 00:45:30 +0100 Subject: [PATCH] Clarify why we need int constants for expression types. Change-Id: I053fc5d32c118dbdb204dc8193337f981aff796e --- rules/ast/ast.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rules/ast/ast.go b/rules/ast/ast.go index b36385ab9d..481cce6158 100644 --- a/rules/ast/ast.go +++ b/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