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

Function tokenOpensFlushHeredoc

hclsyntax/token.go:171–176  ·  view source on GitHub ↗
(tok Token)

Source from the content-addressed store, hash-verified

169}
170
171func tokenOpensFlushHeredoc(tok Token) bool {
172 if tok.Type != TokenOHeredoc {
173 return false
174 }
175 return bytes.HasPrefix(tok.Bytes, []byte{'<', '<', '-'})
176}
177
178// checkInvalidTokens does a simple pass across the given tokens and generates
179// diagnostics for tokens that should _never_ appear in HCL source. This

Callers 1

parseExpressionTermMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected