Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fill in some Parameter accessors
  • Loading branch information
Tadeusz Sośnierz committed Aug 2, 2011
1 parent 6d143c5 commit c26878d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/core/Parameter.pm
Expand Up @@ -21,6 +21,18 @@ my class Parameter {
method name() {
$!variable_name
}

method type() {
$!nominal_type.HOW.name($!nominal_type)
}

method named() {
nqp::p6bool(nqp::isnull($!named_names))
}

method named_names() {
pir::perl6ize_type__PP($!named_names) // ().list
}

method positional() {
nqp::p6bool(
Expand Down

0 comments on commit c26878d

Please sign in to comment.