Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(493)

Issue 4339045: Refactoring for dynamic JS compilation (Closed)

Can't Edit
Can't Publish+Mail
Start Review
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/
Visibility:
Public.

Description

- Convert logic in ExportJsCompiler to Processor. - Reference to FeatureBundle instead of String. - Avoid FeatureRegistry look-ups. Follow-up: get rid of ExportJsCompiler.

Patch Set 1 : Update #

Patch Set 2 : Update for revert committed in r1088480 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+247 lines, -42 lines) Patch
java/gadgets/src/main/java/org/apache/shindig/gadgets/js/CajaJsSubtractingProcessor.java View 1 1 chunk +0 lines, -1 line 0 comments Download
java/gadgets/src/main/java/org/apache/shindig/gadgets/js/GetJsContentProcessor.java View 1 1 chunk +1 line, -1 line 0 comments Download
java/gadgets/src/main/java/org/apache/shindig/gadgets/js/JsContent.java View 1 3 chunks +12 lines, -12 lines 0 comments Download
java/gadgets/src/main/java/org/apache/shindig/gadgets/js/JsServingPipelineModule.java View 1 2 chunks +2 lines, -0 lines 0 comments Download
java/gadgets/src/main/java/org/apache/shindig/gadgets/js/SeparatorCommentingProcessor.java View 1 chunk +64 lines, -0 lines 1 comment Download
java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/js/DefaultJsCompiler.java View 1 3 chunks +5 lines, -8 lines 0 comments Download
java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/js/ExportJsCompiler.java View 1 3 chunks +2 lines, -7 lines 1 comment Download
java/gadgets/src/main/java16/org/apache/shindig/gadgets/rewrite/js/ClosureJsCompiler.java View 1 1 chunk +1 line, -3 lines 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/js/CajaJsSubtractingProcessorTest.java View 1 1 chunk +1 line, -1 line 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/js/GetJsContentProcessorTest.java View 1 1 chunk +2 lines, -2 lines 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/js/SeparatorCommentingProcessorTest.java View 1 chunk +155 lines, -0 lines 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/js/ExportJsCompilerTest.java View 1 2 chunks +2 lines, -7 lines 0 comments Download

Messages

Total messages: 4
mhermanto
14 years, 11 months ago (2011-04-01 21:41:41 UTC) #1
mhermanto
Update for revert committed in r1088480
14 years, 11 months ago (2011-04-04 18:03:06 UTC) #2
johnfargo
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
mhermanto
14 years, 11 months ago (2011-04-04 22:25:09 UTC) #4
On Mon, Apr 4, 2011 at 3:13 PM, <johnfargo@gmail.com> wrote:

> 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.
>

Yes.


>
>
>
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?


http://codereview.appspot.com/4352049/ does this.

>
>
> http://codereview.appspot.com/4339045/
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b