# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewDiagnosticWriter creates a new diagnostic writer for the given list of HCL2 files.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewParser creates a new HCL2 parser.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewTemplateDelimiter creates a new TemplateDelimiter value with the given delimiter type.
No description provided by the author
No description provided by the author
NewTokenMapForFiles creates a new token map that can be used to look up tokens for nodes in any of the given files.
No description provided by the author
No description provided by the author
No description provided by the author
NewWhitespace returns a new piece of whitespace trivia with the given contents.
No description provided by the author
ParseExpression attempts to parse the given string as an HCL2 expression.
# Variables
None is an HCL syntax node that can be used when a syntax node is required but none is appropriate.
# Structs
AttributeTokens records the tokens associated with an *hclsyntax.Attribute.
BinaryOpTokens records the tokens associated with an *hclsyntax.BinaryOpExpr.
BlockTokens records the tokens associated with an *hclsyntax.Block.
BodyTokens records the tokens associated with an *hclsyntax.Body.
BracketTraverserTokens records the tokens associated with a bracketed traverser (i.e.
Comment is a piece of trivia that represents a line or block comment in a source file.
ConditionalTokens records the tokens associated with an *hclsyntax.ConditionalExpr of the form "a ? t : f".
DotTraverserTokens records the tokens associated with dotted traverser (i.e.
File represents a single parsed HCL2 source file.
ForTokens records the tokens associated with an *hclsyntax.ForExpr.
FunctionCallTokens records the tokens associated with an *hclsyntax.FunctionCallExpr.
IndexTokens records the tokens associated with an *hclsyntax.IndexExpr.
LiteralValueTokens records the tokens associated with an *hclsyntax.LiteralValueExpr.
ObjectConsItemTokens records the tokens associated with an hclsyntax.ObjectConsItem.
ObjectConsTokens records the tokens associated with an *hclsyntax.ObjectConsExpr.
Parentheses records enclosing parenthesis tokens for expressions.
Parser is a parser for HCL2 source files.
RelativeTraversalTokens records the tokens associated with an *hclsyntax.RelativeTraversalExpr.
ScopeTraversalTokens records the tokens associated with an *hclsyntax.ScopeTraversalExpr.
SplatTokens records the tokens associated with an *hclsyntax.SplatExpr.
TemplateConditionalTokens records the tokens associated with an *hclsyntax.ConditionalExpr inside a template expression.
TemplateDelimiter is a piece of trivia that represents a token that demarcates an interpolation or control sequence inside of a template.
TemplateForTokens records the tokens associated with an *hclsyntax.ForExpr inside a template.
TemplateTokens records the tokens associated with an *hclsyntax.TemplateExpr.
Token represents an HCL2 syntax token with attached leading trivia.
TupleConsTokens records the tokens associated with an *hclsyntax.TupleConsExpr.
UnaryOpTokens records the tokens associated with an *hclsyntax.UnaryOpExpr.
Whitespace is a piece of trivia that represents a sequence of whitespace characters in a source file.
# Interfaces
NodeTokens is a closed interface that is used to represent arbitrary *Tokens types in this package.
A TokenMap is used to map from syntax nodes to information about their tokens and leading whitespace/comments.
TraverserTokens is a closed interface implemented by DotTraverserTokens and BracketTraverserTokens.
Trivia represents bytes in a source file that are not syntactically meaningful.
# Type aliases
TriviaList is a list of trivia.