MCPcopy
hub / github.com/hashicorp/hcl / Expression

Interface Expression

hclsyntax/expression.go:20–30  ·  hclsyntax/expression.go::Expression

Expression is the abstract type for nodes that behave as HCL expressions.

Source from the content-addressed store, hash-verified

18
19// Expression is the abstract type for nodes that behave as HCL expressions.
20type Expression interface {
21 Node
22
23 // The hcl.Expression methods are duplicated here, rather than simply
24 // embedded, because both Node and hcl.Expression have a Range method
25 // and so they conflict.
26
27 Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics)
28 Variables() []hcl.Traversal
29 StartRange() hcl.Range
30}
31
32// Assert that Expression implements hcl.Expression
33var _ hcl.Expression = Expression(nil)

Callers 1

expression.goFile · 0.70

Implementers 15

staticExprstatic_expr.go
fixedExpressiongohcl/decode_test.go
LiteralValueExprhclsyntax/expression.go
ScopeTraversalExprhclsyntax/expression.go
RelativeTraversalExprhclsyntax/expression.go
FunctionCallExprhclsyntax/expression.go
ConditionalExprhclsyntax/expression.go
IndexExprhclsyntax/expression.go
TupleConsExprhclsyntax/expression.go
ObjectConsExprhclsyntax/expression.go
ObjectConsKeyExprhclsyntax/expression.go
ForExprhclsyntax/expression.go

Calls

no outgoing calls

Tested by

no test coverage detected