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)
| 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. |
| 113 | func (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 |
no outgoing calls
no test coverage detected