[parrot/parrot] 487e9d: Eliminate Parrot::Pmc2c::Attribute.
GitHub
noreply at github.com
Sun Jun 10 00:27:06 UTC 2012
Branch: refs/heads/attribute_generate
Home: https://github.com/parrot/parrot
Commit: 487e9d02e5050953028c41cea3edca0aff820541
https://github.com/parrot/parrot/commit/487e9d02e5050953028c41cea3edca0aff820541
Author: jkeenan <jkeenan at cpan.org>
Date: 2012-06-09 (Sat, 09 Jun 2012)
Changed paths:
M MANIFEST
M lib/Parrot/Pmc2c/PMC.pm
M lib/Parrot/Pmc2c/Parser.pm
Log Message:
-----------
Eliminate Parrot::Pmc2c::Attribute.
ack-ing showed that none of this method's packages was invoked more than once.
Hence, we can either move them to the package in which they are invoked or
eliminate them entirely in favor of simply passing their arguments to callers
as needed.
Invocation of name() in Parrot::Pmc2c::PMC re-coded to be a hash dereference
rather than a method call.
generate_start(), generate_declaration(), generate_end() and
generate_accessor() become Parrot::Pmc2c::PMC internal methods.
new() was called only once, within Parrot/Pmc2c/Parser.pm. It never did
anything other than guarantee that all four of its key-value pairs had defined
values. Rework its invocation.
More information about the parrot-commits
mailing list