Author: bernhard
Date: Fri Jan 16 13:12:34 2009
New Revision: 35647
Modified:
trunk/languages/pipp/src/pct/actions.pm
Log:
[Pipp] get rid of special case in the 'constant' action
Modified: trunk/languages/pipp/src/pct/actions.pm
==============================================================================
--- trunk/languages/pipp/src/pct/actions.pm (original)
+++ trunk/languages/pipp/src/pct/actions.pm Fri Jan 16 13:12:34 2009
@@ -262,24 +262,11 @@
method constant($/) {
our $?NS;
- if $?NS eq '' {
- make
- PAST::Op.new(
- :name('constant'),
- PAST::Val.new(
- :returns('PhpString'),
- :value( ~$<CONSTANT_NAME> ),
- )
- );
- }
- else {
- make
- PAST::Var.new(
- :name(~$<CONSTANT_NAME>),
- :scope('package'),
- :namespace($?NS)
- );
- }
+ make PAST::Var.new(
+ :name(~$<CONSTANT_NAME>),
+ :scope('package'),
+ :namespace($?NS)
+ );
}
# TODO: merge with rule 'constant'
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.