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

Method AddFile

hclparse/parser.go:113–115  ·  view source on GitHub ↗

AddFile allows a caller to record in a parser a file that was parsed some other way, thus allowing it to be included in the registry of sources.

(filename string, file *hcl.File)

Source from the content-addressed store, hash-verified

111// AddFile allows a caller to record in a parser a file that was parsed some
112// other way, thus allowing it to be included in the registry of sources.
113func (p *Parser) AddFile(filename string, file *hcl.File) {
114 p.files[filename] = file
115}
116
117// Sources returns a map from filenames to the raw source code that was
118// read from them. This is intended to be used, for example, to print

Callers 2

runTestMethod · 0.80
runTestInputMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected