V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
v8::internal::ScopeIterator Class Reference

Public Types

enum  ScopeType {
  ScopeTypeGlobal = 0, ScopeTypeLocal, ScopeTypeWith, ScopeTypeClosure,
  ScopeTypeCatch, ScopeTypeBlock, ScopeTypeScript, ScopeTypeEval,
  ScopeTypeModule
}
 
enum  Option { DEFAULT, IGNORE_NESTED_SCOPES, COLLECT_NON_LOCALS }
 
enum  Mode { STACK, ALL }
 

Public Member Functions

 ScopeIterator (Isolate *isolate, FrameInspector *frame_inspector, Option options=DEFAULT)
 
 ScopeIterator (Isolate *isolate, Handle< JSFunction > function)
 
 ScopeIterator (Isolate *isolate, Handle< JSGeneratorObject > generator)
 
Handle< JSObjectMaterializeScopeDetails ()
 
bool Done () const
 
void Next ()
 
void Restart ()
 
ScopeType Type () const
 
Handle< JSObjectScopeObject (Mode mode)
 
bool DeclaresLocals (Mode mode) const
 
bool SetVariableValue (Handle< String > variable_name, Handle< Object > new_value)
 
Handle< StringSetGetNonLocals ()
 
Handle< ObjectGetFunctionDebugName () const
 
Handle< ScriptGetScript () const
 
bool HasPositionInfo ()
 
int start_position ()
 
int end_position ()
 
bool InInnerScope () const
 
bool HasContext () const
 
Handle< ContextCurrentContext () const
 

Static Public Attributes

static const int kScopeDetailsTypeIndex = 0
 
static const int kScopeDetailsObjectIndex = 1
 
static const int kScopeDetailsNameIndex = 2
 
static const int kScopeDetailsStartPositionIndex = 3
 
static const int kScopeDetailsEndPositionIndex = 4
 
static const int kScopeDetailsFunctionIndex = 5
 
static const int kScopeDetailsSize = 6
 

Detailed Description

Definition at line 22 of file debug-scopes.h.


The documentation for this class was generated from the following files: