MCPcopy Create free account
hub / github.com/google/gapid / Resolve

Method Resolve

gapil/api.go:164–166  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

162// the ast and all included ast's are handed to resolver.Resolve to do semantic
163// processing.
164func (p *Processor) Resolve(apiname string) (*semantic.API, parse.ErrorList) {
165 return p.resolve(file.Abs(apiname))
166}
167
168func (p *Processor) resolve(base file.Path) (*semantic.API, parse.ErrorList) {
169 base = p.Loader.Find(base)

Callers 9

runMethod · 0.95
runMethod · 0.95
resolveAPIsFunction · 0.95
doAnalysisMethod · 0.95
compileFunction · 0.95
compileFunction · 0.95
runFunction · 0.95
RunMethod · 0.95
resolveFunction · 0.95

Calls 1

resolveMethod · 0.95

Tested by 4

runMethod · 0.76
runMethod · 0.76
resolveAPIsFunction · 0.76
compileFunction · 0.76