Change 20091129-hqm-P by [email protected] on 2009-11-29 23:25:20 EST
in /Users/hqm/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: fix for 'compiler declares interstitial classnames in the lz namespace'
New Features:
Bugs Fixed: LPP-8637 compiler declares interstitial classnames in the lz
namespace
Technical Reviewer: ptw
QA Reviewer: max
Doc Reviewer: (pending)
Documentation:
Release Notes:
Overview:
Details:
+ ClassModel: if we build interstitial classes, call ViewSchema.addElement with
classdef='false'
(classdef arg should probably be called something else, we're using it to
really mean 'publish as
user-visible tag').
+ ViewSchema: addElement will add any tag name except 'anonymous' to the
mClassMap table.
Note: mClassMap probably is not really the right name for this table, since it
has to keep track of
some tag special forms like 'import' which are not really classes.
Tests:
smoke check,
test/smoke/mixin-simple.lzx
test/mixins.lzx
compile with --script option, look at .lzs file and see that only
real classes are defined on the lz object.
I.e., you should see class defs like
lz["colored_square"] = $lzc$class_colored_square;
lz["black_line"] = $lzc$class_black_line;
But NOT interstitial classes (with '$' in the name), like this
lz["colored_square$view"] = $lzc$class_colored_square$view;
lz["black_line$colored_square$view"] =
$lzc$class_black_line$colored_square$view;
Files:
M WEB-INF/lps/server/src/org/openlaszlo/compiler/ViewSchema.java
M WEB-INF/lps/server/src/org/openlaszlo/compiler/ClassModel.java
Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20091129-hqm-P.tar
_______________________________________________
Laszlo-reviews mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-reviews