On 2013/08/10 04:18:02, gri wrote:
> It's trivial to add the information if you need it. The importer
allocates
> all maps in one place, and you just add a additional line for a Scopes
map
> and copy the pattern used for the other maps.
> The main difference is that now the information provided is from nodes
to
> scopes, while before the information was from scopes to nodes. But
it's
> trivially inverted if there is need for it.
> I'll leave it to Alan to make the respective changes in importer - my
> primary goal at the moment is to get go/types completed.
What is on the roadmap for getting go/types completed?
In the last month or so there have been a lot of changes such the
addition of scopes, which was much needed for things like writing a
debugger. When you had mentioned that this was going to change, I said
I'd wait for the changes before starting to fill out aspects around
handling scopes. When you said you thought everything was there
complete, although it was just a small matter of programming to add
whatever else was needed, I resumed.
In general understanding what's contemplated and what is likely to
change helps me or anyone else who is seriously trying to use this.
> Alan will be back
> by the middle of next week, I believe.
Ok. Thanks for the information. I won't try then to code around the
recent changes but instead will wait for importer to get revised.
> - gri
> On Fri, Aug 9, 2013 at 6:33 PM, <mailto:
rocky.b...@gmail.com>
> <mailto:
rocky.bernstein@gmail.**com<
rocky.b...@gmail.com>
> >> >
> >>
> > wrote:
> >
> > > What changes (if any) need to be made in the ssa-interpreter need
to
> >> > allow it access to the ast as it was before this change?
> >> >
> >> > I see the Scopes field (map[ast.Node]*Scope) added now to
types.Info
> >>
> > and
> >
> >> > field "node" removed from the Scopes type and some sort of make()
> >>
> > needed
> >
> >> > after types.Info is created, but ssa uses
> >> > importer.****CreatePackageFromArgs.
> >> >
> >> >
> >>
> >
> >
https://codereview.appspot.****com/12552047/%253Chttps://codere**
> >
view.appspot.com/12552047/
<
http://codereview.appspot.com/12552047/>>