V8 Project
v8::internal::PreParserScope Class Reference

#include <preparser.h>

+ Collaboration diagram for v8::internal::PreParserScope:

Public Member Functions

 PreParserScope (PreParserScope *outer_scope, ScopeType scope_type, void *=NULL)
 
ScopeType type ()
 
StrictMode strict_mode () const
 
void SetStrictMode (StrictMode strict_mode)
 
void SetScopeName (PreParserIdentifier name)
 
bool AllowsLazyCompilation () const
 
void set_start_position (int position)
 
void set_end_position (int position)
 
bool IsDeclared (const PreParserIdentifier &identifier) const
 
void DeclareParameter (const PreParserIdentifier &identifier, VariableMode)
 
PreParserScopeoperator-> ()
 

Private Attributes

ScopeType scope_type_
 
StrictMode strict_mode_
 

Detailed Description

Definition at line 939 of file preparser.h.

Constructor & Destructor Documentation

◆ PreParserScope()

v8::internal::PreParserScope::PreParserScope ( PreParserScope outer_scope,
ScopeType  scope_type,
void *  = NULL 
)
inlineexplicit

Definition at line 941 of file preparser.h.

943  : scope_type_(scope_type) {
944  strict_mode_ = outer_scope ? outer_scope->strict_mode() : SLOPPY;
945  }

References v8::internal::SLOPPY, strict_mode(), and strict_mode_.

+ Here is the call graph for this function:

Member Function Documentation

◆ AllowsLazyCompilation()

bool v8::internal::PreParserScope::AllowsLazyCompilation ( ) const
inline

Definition at line 954 of file preparser.h.

954 { return false; }

◆ DeclareParameter()

void v8::internal::PreParserScope::DeclareParameter ( const PreParserIdentifier identifier,
VariableMode   
)
inline

Definition at line 960 of file preparser.h.

960 {}

◆ IsDeclared()

bool v8::internal::PreParserScope::IsDeclared ( const PreParserIdentifier identifier) const
inline

Definition at line 959 of file preparser.h.

959 { return false; }

◆ operator->()

PreParserScope* v8::internal::PreParserScope::operator-> ( )
inline

Definition at line 963 of file preparser.h.

963 { return this; }

◆ set_end_position()

void v8::internal::PreParserScope::set_end_position ( int  position)
inline

Definition at line 957 of file preparser.h.

957 {}

◆ set_start_position()

void v8::internal::PreParserScope::set_start_position ( int  position)
inline

Definition at line 956 of file preparser.h.

956 {}

◆ SetScopeName()

void v8::internal::PreParserScope::SetScopeName ( PreParserIdentifier  name)
inline

Definition at line 950 of file preparser.h.

950 {}

◆ SetStrictMode()

void v8::internal::PreParserScope::SetStrictMode ( StrictMode  strict_mode)
inline

Definition at line 949 of file preparser.h.

StrictMode strict_mode() const
Definition: preparser.h:948

References strict_mode(), and strict_mode_.

+ Here is the call graph for this function:

◆ strict_mode()

StrictMode v8::internal::PreParserScope::strict_mode ( ) const
inline

Definition at line 948 of file preparser.h.

948 { return strict_mode_; }

References strict_mode_.

Referenced by PreParserScope(), and SetStrictMode().

+ Here is the caller graph for this function:

◆ type()

ScopeType v8::internal::PreParserScope::type ( )
inline

Definition at line 947 of file preparser.h.

947 { return scope_type_; }

References scope_type_.

Member Data Documentation

◆ scope_type_

ScopeType v8::internal::PreParserScope::scope_type_
private

Definition at line 966 of file preparser.h.

Referenced by type().

◆ strict_mode_

StrictMode v8::internal::PreParserScope::strict_mode_
private

Definition at line 967 of file preparser.h.

Referenced by PreParserScope(), SetStrictMode(), and strict_mode().


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