Bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.24.1 to 2.26.0
Bumps [github.com/hashicorp/terraform-plugin-sdk/v2](https://github.com/hashicorp/terraform-plugin-sdk) from 2.24.1 to 2.26.0. - [Release notes](https://github.com/hashicorp/terraform-plugin-sdk/releases) - [Changelog](https://github.com/hashicorp/terraform-plugin-sdk/blob/main/CHANGELOG.md) - [Commits](https://github.com/hashicorp/terraform-plugin-sdk/compare/v2.24.1...v2.26.0) --- updated-dependencies: - dependency-name: github.com/hashicorp/terraform-plugin-sdk/v2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
16
vendor/github.com/hashicorp/hcl/v2/.copywrite.hcl
generated
vendored
Normal file
16
vendor/github.com/hashicorp/hcl/v2/.copywrite.hcl
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
schema_version = 1
|
||||
|
||||
project {
|
||||
license = "MPL-2.0"
|
||||
copyright_year = 2014
|
||||
|
||||
# (OPTIONAL) A list of globs that should not have copyright/license headers.
|
||||
# Supports doublestar glob patterns for more flexibility in defining which
|
||||
# files or folders should be ignored
|
||||
header_ignore = [
|
||||
"hclsyntax/fuzz/testdata/**",
|
||||
"hclwrite/fuzz/testdata/**",
|
||||
"json/fuzz/testdata/**",
|
||||
"specsuite/tests/**",
|
||||
]
|
||||
}
|
26
vendor/github.com/hashicorp/hcl/v2/CHANGELOG.md
generated
vendored
26
vendor/github.com/hashicorp/hcl/v2/CHANGELOG.md
generated
vendored
@ -1,5 +1,31 @@
|
||||
# HCL Changelog
|
||||
|
||||
## v2.16.2 (March 9, 2023)
|
||||
|
||||
### Bugs Fixed
|
||||
|
||||
* ext/typeexpr: Verify type assumptions when applying default values, and ignore input values that do not match type assumptions. ([#594](https://github.com/hashicorp/hcl/pull/594))
|
||||
|
||||
## v2.16.1 (February 13, 2023)
|
||||
|
||||
### Bugs Fixed
|
||||
|
||||
* hclsyntax: Report correct `Range.End` for `FunctionCall` with incomplete argument ([#588](https://github.com/hashicorp/hcl/pull/588))
|
||||
|
||||
## v2.16.0 (January 30, 2023)
|
||||
|
||||
### Enhancements
|
||||
|
||||
* ext/typeexpr: Modify the `Defaults` functionality to implement additional flexibility. HCL will now upcast lists and sets into tuples, and maps into objects, when applying default values if the applied defaults cause the elements within a target collection to have differing types. Previously, this would have resulted in a panic, now HCL will return a modified overall type. ([#574](https://github.com/hashicorp/hcl/pull/574))
|
||||
|
||||
Users should return to the advice provided by v2.14.0, and apply the go-cty convert functionality *after* setting defaults on a given `cty.Value`, rather than before.
|
||||
* hclfmt: Avoid rewriting unchanged files. ([#576](https://github.com/hashicorp/hcl/pull/576))
|
||||
* hclsyntax: Simplify the AST for certain string expressions. ([#584](https://github.com/hashicorp/hcl/pull/584))
|
||||
|
||||
### Bugs Fixed
|
||||
|
||||
* hclwrite: Fix data race in `formatSpaces`. ([#511](https://github.com/hashicorp/hcl/pull/511))
|
||||
|
||||
## v2.15.0 (November 10, 2022)
|
||||
|
||||
### Bugs Fixed
|
||||
|
2
vendor/github.com/hashicorp/hcl/v2/LICENSE
generated
vendored
2
vendor/github.com/hashicorp/hcl/v2/LICENSE
generated
vendored
@ -1,3 +1,5 @@
|
||||
Copyright (c) 2014 HashiCorp, Inc.
|
||||
|
||||
Mozilla Public License, version 2.0
|
||||
|
||||
1. Definitions
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/diagnostic.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/diagnostic.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hcl
|
||||
|
||||
import (
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/diagnostic_text.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/diagnostic_text.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hcl
|
||||
|
||||
import (
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/diagnostic_typeparams.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/diagnostic_typeparams.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
//go:build go1.18
|
||||
// +build go1.18
|
||||
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/didyoumean.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/didyoumean.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hcl
|
||||
|
||||
import (
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/doc.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/doc.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
// Package hcl contains the main modelling types and general utility functions
|
||||
// for HCL.
|
||||
//
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/eval_context.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/eval_context.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hcl
|
||||
|
||||
import (
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/expr_call.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/expr_call.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hcl
|
||||
|
||||
// ExprCall tests if the given expression is a function call and,
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/expr_list.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/expr_list.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hcl
|
||||
|
||||
// ExprList tests if the given expression is a static list construct and,
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/expr_map.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/expr_map.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hcl
|
||||
|
||||
// ExprMap tests if the given expression is a static map construct and,
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/expr_unwrap.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/expr_unwrap.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hcl
|
||||
|
||||
type unwrapExpression interface {
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/ext/customdecode/customdecode.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/ext/customdecode/customdecode.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
// Package customdecode contains a HCL extension that allows, in certain
|
||||
// contexts, expression evaluation to be overridden by custom static analysis.
|
||||
//
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/ext/customdecode/expression_type.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/ext/customdecode/expression_type.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package customdecode
|
||||
|
||||
import (
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/diagnostics.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/diagnostics.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hclsyntax
|
||||
|
||||
import (
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/didyoumean.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/didyoumean.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hclsyntax
|
||||
|
||||
import (
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/doc.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/doc.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
// Package hclsyntax contains the parser, AST, etc for HCL's native language,
|
||||
// as opposed to the JSON variant.
|
||||
//
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/expression.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/expression.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hclsyntax
|
||||
|
||||
import (
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/expression_ops.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/expression_ops.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hclsyntax
|
||||
|
||||
import (
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/expression_template.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/expression_template.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hclsyntax
|
||||
|
||||
import (
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/expression_vars.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/expression_vars.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hclsyntax
|
||||
|
||||
// Generated by expression_vars_get.go. DO NOT EDIT.
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/file.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/file.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hclsyntax
|
||||
|
||||
import (
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/generate.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/generate.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hclsyntax
|
||||
|
||||
//go:generate go run expression_vars_gen.go
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/keywords.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/keywords.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hclsyntax
|
||||
|
||||
import (
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/navigation.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/navigation.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hclsyntax
|
||||
|
||||
import (
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/node.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/node.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hclsyntax
|
||||
|
||||
import (
|
||||
|
10
vendor/github.com/hashicorp/hcl/v2/hclsyntax/parser.go
generated
vendored
10
vendor/github.com/hashicorp/hcl/v2/hclsyntax/parser.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hclsyntax
|
||||
|
||||
import (
|
||||
@ -1174,7 +1177,12 @@ Token:
|
||||
// if there was a parse error in the argument then we've
|
||||
// probably been left in a weird place in the token stream,
|
||||
// so we'll bail out with a partial argument list.
|
||||
p.recover(TokenCParen)
|
||||
recoveredTok := p.recover(TokenCParen)
|
||||
|
||||
// record the recovered token, if one was found
|
||||
if recoveredTok.Type == TokenCParen {
|
||||
closeTok = recoveredTok
|
||||
}
|
||||
break Token
|
||||
}
|
||||
|
||||
|
35
vendor/github.com/hashicorp/hcl/v2/hclsyntax/parser_template.go
generated
vendored
35
vendor/github.com/hashicorp/hcl/v2/hclsyntax/parser_template.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hclsyntax
|
||||
|
||||
import (
|
||||
@ -38,6 +41,7 @@ func (p *parser) parseTemplateInner(end TokenType, flushHeredoc bool) ([]Express
|
||||
if flushHeredoc {
|
||||
flushHeredocTemplateParts(parts) // Trim off leading spaces on lines per the flush heredoc spec
|
||||
}
|
||||
meldConsecutiveStringLiterals(parts)
|
||||
tp := templateParser{
|
||||
Tokens: parts.Tokens,
|
||||
SrcRange: parts.SrcRange,
|
||||
@ -751,6 +755,37 @@ func flushHeredocTemplateParts(parts *templateParts) {
|
||||
}
|
||||
}
|
||||
|
||||
// meldConsecutiveStringLiterals simplifies the AST output by combining a
|
||||
// sequence of string literal tokens into a single string literal. This must be
|
||||
// performed after any whitespace trimming operations.
|
||||
func meldConsecutiveStringLiterals(parts *templateParts) {
|
||||
if len(parts.Tokens) == 0 {
|
||||
return
|
||||
}
|
||||
|
||||
// Loop over all tokens starting at the second element, as we want to join
|
||||
// pairs of consecutive string literals.
|
||||
i := 1
|
||||
for i < len(parts.Tokens) {
|
||||
if prevLiteral, ok := parts.Tokens[i-1].(*templateLiteralToken); ok {
|
||||
if literal, ok := parts.Tokens[i].(*templateLiteralToken); ok {
|
||||
// The current and previous tokens are both literals: combine
|
||||
prevLiteral.Val = prevLiteral.Val + literal.Val
|
||||
prevLiteral.SrcRange.End = literal.SrcRange.End
|
||||
|
||||
// Remove the current token from the slice
|
||||
parts.Tokens = append(parts.Tokens[:i], parts.Tokens[i+1:]...)
|
||||
|
||||
// Continue without moving forward in the slice
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
// Try the next pair of tokens
|
||||
i++
|
||||
}
|
||||
}
|
||||
|
||||
type templateParts struct {
|
||||
Tokens []templateToken
|
||||
SrcRange hcl.Range
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/parser_traversal.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/parser_traversal.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hclsyntax
|
||||
|
||||
import (
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/peeker.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/peeker.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hclsyntax
|
||||
|
||||
import (
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/public.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/public.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hclsyntax
|
||||
|
||||
import (
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/scan_string_lit.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/scan_string_lit.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
//line scan_string_lit.rl:1
|
||||
|
||||
package hclsyntax
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/scan_tokens.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/scan_tokens.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
//line scan_tokens.rl:1
|
||||
|
||||
package hclsyntax
|
||||
|
8
vendor/github.com/hashicorp/hcl/v2/hclsyntax/spec.md
generated
vendored
8
vendor/github.com/hashicorp/hcl/v2/hclsyntax/spec.md
generated
vendored
@ -82,7 +82,7 @@ Comments serve as program documentation and come in two forms:
|
||||
|
||||
- _Inline comments_ start with the `/*` sequence and end with the `*/`
|
||||
sequence, and may have any characters within except the ending sequence.
|
||||
An inline comments is considered equivalent to a whitespace sequence.
|
||||
An inline comment is considered equivalent to a whitespace sequence.
|
||||
|
||||
Comments and whitespace cannot begin within other comments, or within
|
||||
template literals except inside an interpolation sequence or template directive.
|
||||
@ -268,10 +268,10 @@ collection value.
|
||||
```ebnf
|
||||
CollectionValue = tuple | object;
|
||||
tuple = "[" (
|
||||
(Expression ("," Expression)* ","?)?
|
||||
(Expression (("," | Newline) Expression)* ","?)?
|
||||
) "]";
|
||||
object = "{" (
|
||||
(objectelem ("," objectelem)* ","?)?
|
||||
(objectelem (( "," | Newline) objectelem)* ","?)?
|
||||
) "}";
|
||||
objectelem = (Identifier | Expression) ("=" | ":") Expression;
|
||||
```
|
||||
@ -635,7 +635,7 @@ binaryOp = ExprTerm binaryOperator ExprTerm;
|
||||
binaryOperator = compareOperator | arithmeticOperator | logicOperator;
|
||||
compareOperator = "==" | "!=" | "<" | ">" | "<=" | ">=";
|
||||
arithmeticOperator = "+" | "-" | "*" | "/" | "%";
|
||||
logicOperator = "&&" | "||" | "!";
|
||||
logicOperator = "&&" | "||";
|
||||
```
|
||||
|
||||
The unary operators have the highest precedence.
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/structure.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/structure.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hclsyntax
|
||||
|
||||
import (
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/structure_at_pos.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/structure_at_pos.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hclsyntax
|
||||
|
||||
import (
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/token.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/token.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hclsyntax
|
||||
|
||||
import (
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/unicode2ragel.rb
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/unicode2ragel.rb
generated
vendored
@ -1,4 +1,7 @@
|
||||
#!/usr/bin/env ruby
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
#
|
||||
# This scripted has been updated to accept more command-line arguments:
|
||||
#
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/variables.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/variables.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hclsyntax
|
||||
|
||||
import (
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/walk.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/hclsyntax/walk.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hclsyntax
|
||||
|
||||
import (
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/merged.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/merged.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hcl
|
||||
|
||||
import (
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/ops.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/ops.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hcl
|
||||
|
||||
import (
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/pos.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/pos.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hcl
|
||||
|
||||
import "fmt"
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/pos_scanner.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/pos_scanner.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hcl
|
||||
|
||||
import (
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/schema.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/schema.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hcl
|
||||
|
||||
// BlockHeaderSchema represents the shape of a block header, and is
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/static_expr.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/static_expr.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hcl
|
||||
|
||||
import (
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/structure.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/structure.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hcl
|
||||
|
||||
import (
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/structure_at_pos.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/structure_at_pos.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hcl
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
3
vendor/github.com/hashicorp/hcl/v2/traversal.go
generated
vendored
3
vendor/github.com/hashicorp/hcl/v2/traversal.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hcl
|
||||
|
||||
import (
|
||||
|
5
vendor/github.com/hashicorp/hcl/v2/traversal_for_expr.go
generated
vendored
5
vendor/github.com/hashicorp/hcl/v2/traversal_for_expr.go
generated
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package hcl
|
||||
|
||||
// AbsTraversalForExpr attempts to interpret the given expression as
|
||||
@ -13,7 +16,7 @@ package hcl
|
||||
//
|
||||
// In most cases the calling application is interested in the value
|
||||
// that results from an expression, but in rarer cases the application
|
||||
// needs to see the the name of the variable and subsequent
|
||||
// needs to see the name of the variable and subsequent
|
||||
// attributes/indexes itself, for example to allow users to give references
|
||||
// to the variables themselves rather than to their values. An implementer
|
||||
// of this function should at least support attribute and index steps.
|
||||
|
Reference in New Issue
Block a user