Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Switch QAST::Regex attributes to use native types.
- Loading branch information
Showing
1 changed file
with
6 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,16 @@ | ||
| class QAST::Regex is QAST::Node { | ||
| has $!rxtype; | ||
| has $!subtype; | ||
| has $!backtrack; | ||
| has $!negate; | ||
| has $!min; | ||
| has $!max; | ||
| has str $!rxtype; | ||
| has str $!subtype; | ||
| has str $!backtrack; | ||
| has int $!negate; | ||
| has int $!min; | ||
| has int $!max; | ||
|
|
||
| method rxtype(*@value) { $!rxtype := @value[0] if @value; $!rxtype } | ||
| method subtype(*@value) { $!subtype := @value[0] if @value; $!subtype } | ||
| method backtrack(*@value) { $!backtrack := @value[0] if @value; $!backtrack } | ||
| method negate(*@value) { $!negate := @value[0] if @value; $!negate } | ||
| method min(*@value) { $!min := @value[0] if @value; $!min } | ||
| method max(*@value) { $!max := @value[0] if @value; $!max } | ||
|
|
||
| } | ||
|
|