hcl/hcl
Martin Atkins 6356254632 hcl: Include Expression reference in diagnostics
If a diagnostic occurs while we're evaluating an expression, we'll now
include a reference to that expression in the diagnostic object. We
previously added the corresponding EvalContext here too, and so with these
together it is now possible for a diagnostic renderer to see not only
what was in scope when the problem occurred but also what parts of that
scope the expression was relying on (via method Expression.Variables).
2018-07-28 13:36:55 -07:00
..
hclsyntax hcl: Include Expression reference in diagnostics 2018-07-28 13:36:55 -07:00
integrationtest hclsyntax: "null", "true", "false" AbsTraversalForExpr 2018-02-26 08:38:35 -08:00
json hcl: Include Expression reference in diagnostics 2018-07-28 13:36:55 -07:00
diagnostic.go hcl: Include Expression reference in diagnostics 2018-07-28 13:36:55 -07:00
diagnostic_text.go hcl: highlight the subject when printing a diagnostic source snippet 2018-01-14 12:25:35 -08:00
diagnostic_text_test.go hcl: Simplify the text DiagnosticWriter using new Range functions 2018-01-14 12:07:33 -08:00
didyoumean.go Move the zcl package and its two parsing subpackages to "hcl" names 2017-09-11 16:40:37 -07:00
doc.go Move the zcl package and its two parsing subpackages to "hcl" names 2017-09-11 16:40:37 -07:00
eval_context.go Move the zcl package and its two parsing subpackages to "hcl" names 2017-09-11 16:40:37 -07:00
expr_call.go hcl: ExprCall function 2018-03-04 14:04:54 -08:00
expr_list.go hcl: UnwrapExpression and UnwrapExpressionUntil 2018-01-27 09:10:18 -08:00
expr_map.go hcl: ExprMap function 2018-02-23 08:41:58 -08:00
expr_unwrap.go hcl: UnwrapExpression and UnwrapExpressionUntil 2018-01-27 09:10:18 -08:00
merged.go Fix "attribute" vs "argument" terminology in diagnostics 2018-07-18 15:41:35 -07:00
merged_test.go Move the zcl package and its two parsing subpackages to "hcl" names 2017-09-11 16:40:37 -07:00
ops.go hcl: update stale references to "zcl" 2018-01-27 11:03:05 -08:00
pos.go hcl: Best-effort "what's at this position" helpers 2018-07-28 13:17:51 -07:00
pos_scanner.go hcl: RangeScanner helper 2018-01-14 11:24:19 -08:00
pos_scanner_test.go hcl: RangeScanner helper 2018-01-14 11:24:19 -08:00
pos_test.go hcl: SourceRange.PartitionAround 2018-01-14 11:51:05 -08:00
schema.go Move the zcl package and its two parsing subpackages to "hcl" names 2017-09-11 16:40:37 -07:00
spec.md Fix spec typos 2018-07-01 19:35:20 +02:00
static_expr.go hcl: StaticExpr function for making synthetic expressions 2017-09-20 16:22:05 -07:00
structure.go More miscellaneous renaming of ZCL to HCL. 2017-09-11 18:36:56 -07:00
structure_at_pos.go hcl: Best-effort "what's at this position" helpers 2018-07-28 13:17:51 -07:00
traversal.go hcl: Export the source range for a Traversal 2018-01-13 23:01:11 -08:00
traversal_for_expr.go hcl: ExprAsKeyword function 2018-02-03 08:55:50 -08:00
traversal_for_expr_test.go hcl: ExprAsKeyword function 2018-02-03 08:55:50 -08:00