- Convert logic in ExportJsCompiler to Processor.
- Reference to FeatureBundle instead of String.
- Avoid FeatureRegistry look-ups.
Follow-up: get rid of ExportJsCompiler.
Looks like this CL's description was a little overstated. Which is fine -- this is ...
14 years, 11 months ago
(2011-04-04 22:13:21 UTC)
#3
Looks like this CL's description was a little overstated. Which is fine -- this
is a good step function to the desc :)
http://codereview.appspot.com/4339045/diff/5005/java/gadgets/src/main/java/or...
File
java/gadgets/src/main/java/org/apache/shindig/gadgets/js/SeparatorCommentingProcessor.java
(right):
http://codereview.appspot.com/4339045/diff/5005/java/gadgets/src/main/java/or...
java/gadgets/src/main/java/org/apache/shindig/gadgets/js/SeparatorCommentingProcessor.java:44:
jsBuilder.add(newComment(lastFeature, false));
we might consider creating a sentinel "feature" represented by a static
FeatureBundle for text-created input. This Processor still wouldn't change -- it
would simply ensure that we can determine the size of text-added js.
http://codereview.appspot.com/4339045/diff/5005/java/gadgets/src/main/java/or...
File
java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/js/ExportJsCompiler.java
(right):
http://codereview.appspot.com/4339045/diff/5005/java/gadgets/src/main/java/or...
java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/js/ExportJsCompiler.java:57:
public ExportJsCompiler(FeatureRegistry featureRegistry) {
not a problem per se, but I'd understood from the CL desc that the purpose here
is to turn the exports into a Processor rather than compiler?
Issue 4339045: Refactoring for dynamic JS compilation
(Closed)
Created 14 years, 11 months ago by mhermanto
Modified 14 years, 10 months ago
Reviewers: johnfargo
Base URL: http://svn.apache.org/repos/asf/shindig/trunk/
Comments: 2