Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
dart::kernel::ScopeBuildingResult Class Reference

#include <scope_builder.h>

Inheritance diagram for dart::kernel::ScopeBuildingResult:
dart::ZoneAllocated

Public Member Functions

 ScopeBuildingResult ()
 
bool IsClosureWithEmptyContext (intptr_t function_node_offset)
 
- Public Member Functions inherited from dart::ZoneAllocated
 ZoneAllocated ()
 
void * operator new (size_t size)
 
void * operator new (size_t size, Zone *zone)
 
void operator delete (void *pointer)
 

Public Attributes

IntMap< LocalVariable * > locals
 
IntMap< LocalScope * > scopes
 
GrowableArray< FunctionScopefunction_scopes
 
LocalVariabletype_arguments_variable
 
LocalVariableswitch_variable
 
LocalVariablefinally_return_variable
 
LocalVariablesetter_value
 
GrowableArray< LocalVariable * > exception_variables
 
GrowableArray< LocalVariable * > stack_trace_variables
 
GrowableArray< LocalVariable * > catch_context_variables
 
GrowableArray< LocalVariable * > raw_exception_variables
 
GrowableArray< LocalVariable * > raw_stack_trace_variables
 
intptr_t raw_variable_counter_
 
GrowableArray< intptr_t > closure_offsets_without_captures
 

Detailed Description

Definition at line 186 of file scope_builder.h.

Constructor & Destructor Documentation

◆ ScopeBuildingResult()

dart::kernel::ScopeBuildingResult::ScopeBuildingResult ( )
inline

Definition at line 188 of file scope_builder.h.

189 : type_arguments_variable(nullptr),
190 switch_variable(nullptr),
192 setter_value(nullptr),

Member Function Documentation

◆ IsClosureWithEmptyContext()

bool dart::kernel::ScopeBuildingResult::IsClosureWithEmptyContext ( intptr_t  function_node_offset)
inline

Definition at line 195 of file scope_builder.h.

195 {
196 for (intptr_t i = 0; i < closure_offsets_without_captures.length(); ++i) {
197 if (closure_offsets_without_captures[i] == function_node_offset) {
198 return true;
199 }
200 }
201 return false;
202 }
intptr_t length() const
GrowableArray< intptr_t > closure_offsets_without_captures

Member Data Documentation

◆ catch_context_variables

GrowableArray<LocalVariable*> dart::kernel::ScopeBuildingResult::catch_context_variables

Definition at line 224 of file scope_builder.h.

◆ closure_offsets_without_captures

GrowableArray<intptr_t> dart::kernel::ScopeBuildingResult::closure_offsets_without_captures

Definition at line 234 of file scope_builder.h.

◆ exception_variables

GrowableArray<LocalVariable*> dart::kernel::ScopeBuildingResult::exception_variables

Definition at line 222 of file scope_builder.h.

◆ finally_return_variable

LocalVariable* dart::kernel::ScopeBuildingResult::finally_return_variable

Definition at line 215 of file scope_builder.h.

◆ function_scopes

GrowableArray<FunctionScope> dart::kernel::ScopeBuildingResult::function_scopes

Definition at line 206 of file scope_builder.h.

◆ locals

IntMap<LocalVariable*> dart::kernel::ScopeBuildingResult::locals

Definition at line 204 of file scope_builder.h.

◆ raw_exception_variables

GrowableArray<LocalVariable*> dart::kernel::ScopeBuildingResult::raw_exception_variables

Definition at line 228 of file scope_builder.h.

◆ raw_stack_trace_variables

GrowableArray<LocalVariable*> dart::kernel::ScopeBuildingResult::raw_stack_trace_variables

Definition at line 229 of file scope_builder.h.

◆ raw_variable_counter_

intptr_t dart::kernel::ScopeBuildingResult::raw_variable_counter_

Definition at line 230 of file scope_builder.h.

◆ scopes

IntMap<LocalScope*> dart::kernel::ScopeBuildingResult::scopes

Definition at line 205 of file scope_builder.h.

◆ setter_value

LocalVariable* dart::kernel::ScopeBuildingResult::setter_value

Definition at line 218 of file scope_builder.h.

◆ stack_trace_variables

GrowableArray<LocalVariable*> dart::kernel::ScopeBuildingResult::stack_trace_variables

Definition at line 223 of file scope_builder.h.

◆ switch_variable

LocalVariable* dart::kernel::ScopeBuildingResult::switch_variable

Definition at line 212 of file scope_builder.h.

◆ type_arguments_variable

LocalVariable* dart::kernel::ScopeBuildingResult::type_arguments_variable

Definition at line 209 of file scope_builder.h.


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