Home | History | Annotate | Download | only in parser

Lines Matching defs:Expression

42 	Value      Expression
43 OrigValue Expression
94 Value Expression
110 // An Expression is a Value in a Property or Assignment. It can be a literal (String or Bool), a
113 type Expression interface {
115 // Copy returns a copy of the Expression that will not affect the original if mutated
116 Copy() Expression
118 // Type returns the underlying Type enum of the Expression if it were to be evalutated
120 // Eval returns an expression that is fully evaluated to a simple type (List, Map, String, or
122 Eval() Expression
125 // ExpressionsAreSame tells whether the two values are the same Expression.
126 // This includes the symbolic representation of each Expression but not their positions in the original source tree.
129 func ExpressionsAreSame(a Expression, b Expression) (equal bool, err error) {
133 // TODO(jeffrygaston) once positions are removed from Expression stucts,
135 func hackyExpressionsAreSame(a Expression, b Expression) (equal bool, err error) {
151 func hackyFingerprint(expression Expression) (fingerprint []byte, err error) {
152 assignment := &Assignment{"a", noPos, expression, expression, noPos, "=", false}
187 Args [2]Expression
190 Value Expression
193 func (x *Operator) Copy() Expression {
200 func (x *Operator) Eval() Expression {
219 Value Expression
225 func (x *Variable) Copy() Expression {
230 func (x *Variable) Eval() Expression {
249 func (x *Map) Copy() Expression {
258 func (x *Map) Eval() Expression {
301 Values []Expression
307 func (x *List) Copy() Expression {
309 ret.Values = make([]Expression, len(x.Values))
316 func (x *List) Eval() Expression {
339 func (x *String) Copy() Expression {
344 func (x *String) Eval() Expression {
365 func (x *Int64) Copy() Expression {
370 func (x *Int64) Eval() Expression {
391 func (x *Bool) Copy() Expression {
396 func (x *Bool) Eval() Expression {