Versions in this module Expand all Collapse all v0 v0.6.0 Dec 25, 2019 v0.5.0 Dec 25, 2019 Changes in this version + const AccumulatorName + var AllMacros = []Macro + var NoMacros = []Macro + func Parse(source common.Source) (*exprpb.ParsedExpr, *common.Errors) + func ParseWithMacros(source common.Source, macros []Macro) (*exprpb.ParsedExpr, *common.Errors) + func Unparse(expr *exprpb.Expr, info *exprpb.SourceInfo) (string, error) + type ExprHelper interface + Fold func(iterVar string, iterRange *exprpb.Expr, accuVar string, accuInit *exprpb.Expr, ...) *exprpb.Expr + GlobalCall func(function string, args ...*exprpb.Expr) *exprpb.Expr + Ident func(name string) *exprpb.Expr + LiteralBool func(value bool) *exprpb.Expr + LiteralBytes func(value []byte) *exprpb.Expr + LiteralDouble func(value float64) *exprpb.Expr + LiteralInt func(value int64) *exprpb.Expr + LiteralString func(value string) *exprpb.Expr + LiteralUint func(value uint64) *exprpb.Expr + NewList func(elems ...*exprpb.Expr) *exprpb.Expr + NewMap func(entries ...*exprpb.Expr_CreateStruct_Entry) *exprpb.Expr + NewMapEntry func(key *exprpb.Expr, val *exprpb.Expr) *exprpb.Expr_CreateStruct_Entry + NewObject func(typeName string, fieldInits ...*exprpb.Expr_CreateStruct_Entry) *exprpb.Expr + NewObjectFieldInit func(field string, init *exprpb.Expr) *exprpb.Expr_CreateStruct_Entry + OffsetLocation func(exprID int64) common.Location + PresenceTest func(operand *exprpb.Expr, field string) *exprpb.Expr + ReceiverCall func(function string, target *exprpb.Expr, args ...*exprpb.Expr) *exprpb.Expr + Select func(operand *exprpb.Expr, field string) *exprpb.Expr + type Macro interface + ArgCount func() int + Expander func() MacroExpander + Function func() string + IsReceiverStyle func() bool + MacroKey func() string + func NewGlobalMacro(function string, argCount int, expander MacroExpander) Macro + func NewGlobalVarArgMacro(function string, expander MacroExpander) Macro + func NewReceiverMacro(function string, argCount int, expander MacroExpander) Macro + func NewReceiverVarArgMacro(function string, expander MacroExpander) Macro + type MacroExpander func(eh ExprHelper, target *exprpb.Expr, args []*exprpb.Expr) (*exprpb.Expr, *common.Error)