Hi,

How would i revert an ast.Decl (import, var, ect) 
to the file path declaring it ?

Looks like ast.File does not remember its path,
https://golang.org/pkg/go/ast/#File

Also, If i could revert a package path to its location
on the file system, i could glob all the files in the package,
and go with that.
That would not be as precise as my first question, but ok.
I did not find a way to do that either.

The general problem is like this,
I process go files via the loader to produce some results.
But the loader has a lot to do, 
thus it takes a noticeable amount of time, 
so i wish to cache this step using 
the files timestamp, hash (whatever), 
of the files i m interesting in.

Do you have any ideas ?

thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to