Change 20090526-hqm-s by [email protected] on 2009-05-26 17:07:58 EDT
in /Users/hqm/openlaszlo/trunk-clean
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: make all compiler property definitions visible to <switch> tag
New Features:
Bugs Fixed: LPP-8228
Technical Reviewer: ptw
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
+ we were storing the "runtime constants" (e.g., the vars that says
what runtime is $swf8, $swf9, etc)
in a separate table in the CompilationEnvironment, and that was the
only table being checked by
the switch tag to look up properties.
This change
Tests:
run smoke in all runtimes
compile
lzc -Dfoobar=true foo.lzx
and see if you can select on the 'foobar' property
<switch>
<when property="foobar" value="true">
<script>
Debug.write('conditionally compiled: compile time constant
foobar is true');
</script>
</when>
<otherwise>
<script>
Debug.write('otherwise clause select: foobar was false');
</script>
</otherwise>
</switch>
Files:
M WEB-INF/lps/server/src/org/openlaszlo/compiler/
CompilationEnvironment.java
M WEB-INF/lps/server/src/org/openlaszlo/compiler/Compiler.java
M WEB-INF/lps/server/src/org/openlaszlo/compiler/Parser.java
Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20090526-hqm-s.tar