Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 25 lines (21 sloc) 0.718 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
class QAST::Var is QAST::Node {
    has str $!name;
    has str $!scope;
    has str $!decl;
    has int $!slurpy;
    has $!default;
    
    method name(*@value) { $!name := @value[0] if @value; $!name || "" }
    method scope(*@value) { $!scope := @value[0] if @value; $!scope }
    method decl(*@value) { $!decl := @value[0] if @value; $!decl }
    method slurpy(*@value) { $!slurpy := @value[0] if @value; $!slurpy }
    method default(*@value) { $!default := @value[0] if @value; $!default }
    
    method substitute_inline_placeholders(@fillers) {
        self
    }

    method evaluate_unquotes(@unquotes) {
        self
    }

    method dump_extra_node_info() {
        "$!scope $!name";
    }
}
Something went wrong with that request. Please try again.