summaryrefslogtreecommitdiff
path: root/hclsyntax/parser_test.go
diff options
context:
space:
mode:
authorAnsgar Mertens <ansgar@hashicorp.com>2024-03-13 09:17:03 +0100
committerAnsgar Mertens <ansgar@hashicorp.com>2024-03-13 09:17:03 +0100
commit54e4175c12b085892d61aa506b9562a591fde6a7 (patch)
tree66927a682f04a7a3e9933d5b061a522d0c12e50d /hclsyntax/parser_test.go
parent53ee54e0da34370e928b8cf6d72f8d25f24e6ee4 (diff)
add SrcRange to ExprSyntaxError
Diffstat (limited to 'hclsyntax/parser_test.go')
-rw-r--r--hclsyntax/parser_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/hclsyntax/parser_test.go b/hclsyntax/parser_test.go
index 2231fdb..90a7583 100644
--- a/hclsyntax/parser_test.go
+++ b/hclsyntax/parser_test.go
@@ -2583,6 +2583,10 @@ block "valid" {}
},
},
},
+ SrcRange: hcl.Range{
+ Start: hcl.Pos{Line: 1, Column: 5, Byte: 4},
+ End: hcl.Pos{Line: 2, Column: 1, Byte: 24},
+ },
},
SrcRange: hcl.Range{
Filename: "",
@@ -2636,6 +2640,10 @@ block "valid" {}
},
},
},
+ SrcRange: hcl.Range{
+ Start: hcl.Pos{Line: 1, Column: 5, Byte: 4},
+ End: hcl.Pos{Line: 2, Column: 1, Byte: 14},
+ },
},
SrcRange: hcl.Range{
Filename: "",