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

Issue 109081: Add some methods to Expression that make it easier to generate JS code. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 7 months ago by MikeSamuel
Modified:
16 years, 7 months ago
Reviewers:
metaweta
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Adds two methods, simplifyForSideEffect, and conditionResult to the base Expression interface. Please see that class for detail first, and ExpressionTest for uses. Submitted @3659

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -7 lines) Patch
M src/com/google/caja/parser/js/AbstractExpression.java View 1 chunk +4 lines, -0 lines 0 comments Download
M src/com/google/caja/parser/js/ArrayConstructor.java View 1 chunk +3 lines, -0 lines 0 comments Download
M src/com/google/caja/parser/js/Expression.java View 1 chunk +15 lines, -0 lines 0 comments Download
M src/com/google/caja/parser/js/FunctionConstructor.java View 1 chunk +3 lines, -0 lines 0 comments Download
M src/com/google/caja/parser/js/Literal.java View 1 chunk +6 lines, -0 lines 0 comments Download
M src/com/google/caja/parser/js/NullLiteral.java View 2 chunks +7 lines, -4 lines 0 comments Download
M src/com/google/caja/parser/js/ObjectConstructor.java View 1 chunk +3 lines, -0 lines 0 comments Download
M src/com/google/caja/parser/js/Operation.java View 1 chunk +68 lines, -0 lines 0 comments Download
A tests/com/google/caja/parser/js/ExpressionTest.java View 1 chunk +118 lines, -0 lines 0 comments Download
M tests/com/google/caja/parser/js/JsFunFuzz.java View 2 chunks +3 lines, -3 lines 0 comments Download
MM tests/com/google/caja/parser/js/parsertest4.js View 1 chunk +1 line, -0 lines 0 comments Download
MM tests/com/google/caja/parser/js/rendergolden4.txt View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 2
MikeSamuel
16 years, 7 months ago (2009-08-26 01:34:30 UTC) #1
metaweta
16 years, 7 months ago (2009-08-27 00:00:00 UTC) #2
LGTM
Sign in to reply to this message.

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