Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scope tree documentation #11

Open
alex-seville opened this issue Mar 22, 2013 · 3 comments
Open

Scope tree documentation #11

alex-seville opened this issue Mar 22, 2013 · 3 comments

Comments

@alex-seville
Copy link
Contributor

Is the scope tree that is output based on a standard or is it custom to this project?

I'm trying to identify the variables that are exported, by parsed code, to the global object.

On a trivial example reading the variables array of the global scope object works.

However, when I parse a file that passes in the context I see an empty variables array in the global object, and I'm not sure how to determine what would be available in the global scope if that code was executed.

i.e.

(function(){
...
}).call(this);

Any thoughts?

@Constellation
Copy link
Member

Thanks!
Sorry, currently I'm attending on AOSD, so I'll reply later.

@RReverser
Copy link
Member

@Constellation Ping. Are there any docs on tree structure and APIs except as for generated ones? They don't feel clear enough as it's hard to find "entry point" and some really basic simple example from which you can start and understand how it works (but maybe I'm just too stupid lazy to dig into it) :/

@ivanbacher
Copy link

ivanbacher commented Oct 27, 2016

+1
@RReverser did you find anything useful?

@Constellation it would also be really helpful to get a short description of the properties the scope tree has.
E.g.

{
  __declaredVariables
  __left
  block
  ...
  set       //what does this mean?
  taints   //what does this mean?
 ... 
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants