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

#include <regexp.h>

Public Member Functions

 GuardedAlternative (RegExpNode *node)
 
void AddGuard (Guard *guard, Zone *zone)
 
RegExpNodenode () const
 
void set_node (RegExpNode *node)
 
ZoneGrowableArray< Guard * > * guards () const
 

Detailed Description

Definition at line 876 of file regexp.h.

Constructor & Destructor Documentation

◆ GuardedAlternative()

dart::GuardedAlternative::GuardedAlternative ( RegExpNode node)
inlineexplicit

Definition at line 878 of file regexp.h.

879 : node_(node), guards_(nullptr) {}
RegExpNode * node() const
Definition: regexp.h:881

Member Function Documentation

◆ AddGuard()

void dart::GuardedAlternative::AddGuard ( Guard guard,
Zone zone 
)

Definition at line 751 of file regexp.cc.

751 {
752 if (guards_ == nullptr) guards_ = new (zone) ZoneGrowableArray<Guard*>(1);
753 guards_->Add(guard);
754}

◆ guards()

ZoneGrowableArray< Guard * > * dart::GuardedAlternative::guards ( ) const
inline

Definition at line 883 of file regexp.h.

883{ return guards_; }

◆ node()

RegExpNode * dart::GuardedAlternative::node ( ) const
inline

Definition at line 881 of file regexp.h.

881{ return node_; }

◆ set_node()

void dart::GuardedAlternative::set_node ( RegExpNode node)
inline

Definition at line 882 of file regexp.h.

882{ node_ = node; }

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