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

#include <kernel_binary.h>

Public Member Functions

 PositionScope (Reader *reader)
 
 ~PositionScope ()
 

Detailed Description

Definition at line 589 of file kernel_binary.h.

Constructor & Destructor Documentation

◆ PositionScope()

dart::kernel::PositionScope::PositionScope ( Reader reader)
inlineexplicit

Definition at line 591 of file kernel_binary.h.

592 : reader_(reader),
593 min_(reader->min_position_),
594 max_(reader->max_position_) {
595 reader->min_position_ = reader->max_position_ = TokenPosition::kNoSource;
596 }

◆ ~PositionScope()

dart::kernel::PositionScope::~PositionScope ( )
inline

Definition at line 598 of file kernel_binary.h.

598 {
599 reader_->min_position_ = TokenPosition::Min(reader_->min_position_, min_);
600 reader_->max_position_ = TokenPosition::Max(reader_->max_position_, max_);
601 }
static const TokenPosition & Min(const TokenPosition &a, const TokenPosition &b)
static const TokenPosition & Max(const TokenPosition &a, const TokenPosition &b)

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