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

#include <kernel_to_il.h>

Public Member Functions

 SwitchExpression (intptr_t case_index, TokenPosition position, const Instance &value)
 
intptr_t case_index () const
 
const TokenPositionposition () const
 
const Instancevalue () const
 
const Integerinteger () const
 
void set_integer (const Integer &integer)
 

Detailed Description

Definition at line 927 of file kernel_to_il.h.

Constructor & Destructor Documentation

◆ SwitchExpression()

dart::kernel::SwitchExpression::SwitchExpression ( intptr_t  case_index,
TokenPosition  position,
const Instance value 
)
inline

Definition at line 929 of file kernel_to_il.h.

932 : case_index_(case_index), position_(position), value_(&value) {}
const Instance & value() const
Definition: kernel_to_il.h:937
const TokenPosition & position() const
Definition: kernel_to_il.h:935

Member Function Documentation

◆ case_index()

intptr_t dart::kernel::SwitchExpression::case_index ( ) const
inline

Definition at line 934 of file kernel_to_il.h.

934{ return case_index_; }

◆ integer()

const Integer & dart::kernel::SwitchExpression::integer ( ) const
inline

Definition at line 941 of file kernel_to_il.h.

941 {
942 ASSERT(integer_ != nullptr);
943 return *integer_;
944 }
#define ASSERT(E)

◆ position()

const TokenPosition & dart::kernel::SwitchExpression::position ( ) const
inline

Definition at line 935 of file kernel_to_il.h.

935{ return position_; }

◆ set_integer()

void dart::kernel::SwitchExpression::set_integer ( const Integer integer)
inline

Definition at line 946 of file kernel_to_il.h.

946 {
947 ASSERT(integer_ == nullptr);
948 integer_ = &integer;
949 }
const Integer & integer() const
Definition: kernel_to_il.h:941

◆ value()

const Instance & dart::kernel::SwitchExpression::value ( ) const
inline

Definition at line 937 of file kernel_to_il.h.

937{ return *value_; }

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