Resolve returns a semantic.API that represents the supplied api file name. If the file has already been resolved, the cached semantic tree is returned, otherwise the file and all dependant files are parsed using Processor.Parse. Recursive calls are made to Resolve for all named imports, and then fin
(apiname string)
| 162 | // the ast and all included ast's are handed to resolver.Resolve to do semantic |
| 163 | // processing. |
| 164 | func (p *Processor) Resolve(apiname string) (*semantic.API, parse.ErrorList) { |
| 165 | return p.resolve(file.Abs(apiname)) |
| 166 | } |
| 167 | |
| 168 | func (p *Processor) resolve(base file.Path) (*semantic.API, parse.ErrorList) { |
| 169 | base = p.Loader.Find(base) |