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

Method setRecovery

hclsyntax/parser.go:2072–2074  ·  view source on GitHub ↗

setRecovery turns on recovery mode without actually doing any recovery. This can be used when a parser knowingly leaves the peeker in a useless place and wants to suppress errors that might result from that decision.

()

Source from the content-addressed store, hash-verified

2070// This can be used when a parser knowingly leaves the peeker in a useless
2071// place and wants to suppress errors that might result from that decision.
2072func (p *parser) setRecovery() {
2073 p.recovery = true
2074}
2075
2076// recover seeks forward in the token stream until it finds TokenType "end",
2077// then returns with the peeker pointed at the following token.

Callers 2

parseExpressionTermMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected