Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Functions
regexp_ast.cc File Reference
#include "vm/regexp_ast.h"
#include "platform/utils.h"
#include "vm/os.h"

Go to the source code of this file.

Classes

class  dart::RegExpUnparser
 

Namespaces

namespace  dart
 

Macros

#define MAKE_ACCEPT(Name)
 
#define MAKE_TYPE_CASE(Name)
 
#define MAKE_TYPE_CASE(Name)
 
#define MAKE_CASE(Name)   virtual void* Visit##Name(RegExp##Name*, void* data);
 

Functions

static Interval dart::ListCaptureRegisters (ZoneGrowableArray< RegExpTree * > *children)
 
static intptr_t dart::IncreaseBy (intptr_t previous, intptr_t increase)
 

Macro Definition Documentation

◆ MAKE_ACCEPT

#define MAKE_ACCEPT (   Name)
Value:
void* RegExp##Name::Accept(RegExpVisitor* visitor, void* data) { \
return visitor->Visit##Name(this, data); \
}

Definition at line 12 of file regexp_ast.cc.

13 { \
14 return visitor->Visit##Name(this, data); \
15 }
ImplicitString Name
Definition DMSrcSink.h:38

◆ MAKE_CASE

#define MAKE_CASE (   Name)    virtual void* Visit##Name(RegExp##Name*, void* data);

Definition at line 139 of file regexp_ast.cc.

◆ MAKE_TYPE_CASE [1/2]

#define MAKE_TYPE_CASE (   Name)
Value:
RegExp##Name* RegExpTree::As##Name() { \
return nullptr; \
} \
bool RegExpTree::Is##Name() const { \
return false; \
}

Definition at line 19 of file regexp_ast.cc.

20 { \
21 return nullptr; \
22 } \
23 bool RegExpTree::Is##Name() const { \
24 return false; \
25 }

◆ MAKE_TYPE_CASE [2/2]

#define MAKE_TYPE_CASE (   Name)
Value:
RegExp##Name* RegExp##Name::As##Name() { \
return this; \
} \
bool RegExp##Name::Is##Name() const { \
return true; \
}

Definition at line 19 of file regexp_ast.cc.

20 { \
21 return nullptr; \
22 } \
23 bool RegExpTree::Is##Name() const { \
24 return false; \
25 }