bca573d3d0
This can either be a traversal or a first-class node depending on whether the given expression is a literal. This exception is made to allow applications to conditionally populate only part of a potentially-large collection if the config is only requesting one or two distinct indices. In particular, it allows the following to be considered a single traversal from the scope: foo.bar[0].baz
53 lines
1.0 KiB
Go
Executable File
53 lines
1.0 KiB
Go
Executable File
package zclsyntax
|
|
|
|
// Generated by expression_vars_get.go. DO NOT EDIT.
|
|
// Run 'go generate' on this package to update the set of functions here.
|
|
|
|
import (
|
|
"github.com/zclconf/go-zcl/zcl"
|
|
)
|
|
|
|
func (e *BinaryOpExpr) Variables() []zcl.Traversal {
|
|
return Variables(e)
|
|
}
|
|
|
|
func (e *ConditionalExpr) Variables() []zcl.Traversal {
|
|
return Variables(e)
|
|
}
|
|
|
|
func (e *FunctionCallExpr) Variables() []zcl.Traversal {
|
|
return Variables(e)
|
|
}
|
|
|
|
func (e *IndexExpr) Variables() []zcl.Traversal {
|
|
return Variables(e)
|
|
}
|
|
|
|
func (e *LiteralValueExpr) Variables() []zcl.Traversal {
|
|
return Variables(e)
|
|
}
|
|
|
|
func (e *ObjectConsExpr) Variables() []zcl.Traversal {
|
|
return Variables(e)
|
|
}
|
|
|
|
func (e *RelativeTraversalExpr) Variables() []zcl.Traversal {
|
|
return Variables(e)
|
|
}
|
|
|
|
func (e *ScopeTraversalExpr) Variables() []zcl.Traversal {
|
|
return Variables(e)
|
|
}
|
|
|
|
func (e *TemplateExpr) Variables() []zcl.Traversal {
|
|
return Variables(e)
|
|
}
|
|
|
|
func (e *TupleConsExpr) Variables() []zcl.Traversal {
|
|
return Variables(e)
|
|
}
|
|
|
|
func (e *UnaryOpExpr) Variables() []zcl.Traversal {
|
|
return Variables(e)
|
|
}
|