| Index: src/ast.h
|
| diff --git a/src/ast.h b/src/ast.h
|
| index 8972f2566734b062c25f31869a754018502069d0..00004791153fd48ed84085d2514dd620f3295dac 100644
|
| --- a/src/ast.h
|
| +++ b/src/ast.h
|
| @@ -1193,6 +1193,7 @@ class ThisFunction: public Expression {
|
| VISIT(Quantifier) \
|
| VISIT(Capture) \
|
| VISIT(Lookahead) \
|
| + VISIT(Backreference) \
|
| VISIT(Empty)
|
|
|
|
|
| @@ -1357,6 +1358,16 @@ class RegExpLookahead: public RegExpTree {
|
| };
|
|
|
|
|
| +class RegExpBackreference: public RegExpTree {
|
| + public:
|
| + explicit RegExpBackreference(int index) : index_(index) { }
|
| + virtual void* Accept(RegExpVisitor* visitor, void* data);
|
| + int index() { return index_; }
|
| + private:
|
| + int index_;
|
| +};
|
| +
|
| +
|
| class RegExpEmpty: public RegExpTree {
|
| public:
|
| RegExpEmpty() { }
|
|
|