forked from eunomie/closure-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix soyutils.js so that it compiles with strict settings in the Closu…
…re Compiler. Fixes for explicit Guice binding support in Soy. Revision created by MOE tool push_codebase. MOE_MIGRATION= git-svn-id: http://closure-templates.googlecode.com/svn/trunk@23 ba6e359a-b4f9-11de-880b-11b4e8d67c75
- Loading branch information
bolinfest
committed
Oct 25, 2011
1 parent
fc48ec3
commit d910ccb
Showing
14 changed files
with
440 additions
and
55 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
java/src/com/google/template/soy/sharedpasses/opti/OptiModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright 2011 Google Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.google.template.soy.sharedpasses.opti; | ||
|
||
import com.google.inject.AbstractModule; | ||
|
||
/** | ||
* Guice module for optimization passes. | ||
* | ||
* <p> Important: Do not use outside of Soy code (treat as superpackage-private). | ||
* | ||
* @author Anthony Jawad | ||
*/ | ||
public class OptiModule extends AbstractModule { | ||
@Override protected void configure() { | ||
// Bindings for when explicit dependencies are required. | ||
bind(PreevalVisitorFactory.class); | ||
bind(PrerenderVisitorFactory.class); | ||
bind(SimplifyExprVisitor.class); | ||
bind(SimplifyVisitor.class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
287 changes: 287 additions & 0 deletions
287
javadoc-complete/com/google/template/soy/sharedpasses/opti/OptiModule.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,287 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | ||
<!--NewPage--> | ||
<HTML> | ||
<HEAD> | ||
<TITLE> | ||
OptiModule (Soy Complete) | ||
</TITLE> | ||
|
||
|
||
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style"> | ||
|
||
<SCRIPT type="text/javascript"> | ||
function windowTitle() | ||
{ | ||
if (location.href.indexOf('is-external=true') == -1) { | ||
parent.document.title="OptiModule (Soy Complete)"; | ||
} | ||
} | ||
</SCRIPT> | ||
<NOSCRIPT> | ||
</NOSCRIPT> | ||
|
||
</HEAD> | ||
|
||
<BODY BGCOLOR="white" onload="windowTitle();"> | ||
<HR> | ||
|
||
|
||
<!-- ========= START OF TOP NAVBAR ======= --> | ||
<A NAME="navbar_top"><!-- --></A> | ||
<A HREF="#skip-navbar_top" title="Skip navigation links"></A> | ||
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> | ||
<TR> | ||
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> | ||
<A NAME="navbar_top_firstrow"><!-- --></A> | ||
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> | ||
<TR ALIGN="center" VALIGN="top"> | ||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> | ||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> | ||
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> | ||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> | ||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> | ||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> | ||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> | ||
</TR> | ||
</TABLE> | ||
</TD> | ||
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> | ||
</EM> | ||
</TD> | ||
</TR> | ||
|
||
<TR> | ||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | ||
PREV CLASS | ||
<A HREF="../../../../../../com/google/template/soy/sharedpasses/opti/PreevalVisitorFactory.html" title="class in com.google.template.soy.sharedpasses.opti"><B>NEXT CLASS</B></A></FONT></TD> | ||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | ||
<A HREF="../../../../../../index.html?com/google/template/soy/sharedpasses/opti/OptiModule.html" target="_top"><B>FRAMES</B></A> | ||
<A HREF="OptiModule.html" target="_top"><B>NO FRAMES</B></A> | ||
<SCRIPT type="text/javascript"> | ||
<!-- | ||
if(window==top) { | ||
document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); | ||
} | ||
//--> | ||
</SCRIPT> | ||
<NOSCRIPT> | ||
<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A> | ||
</NOSCRIPT> | ||
|
||
|
||
</FONT></TD> | ||
</TR> | ||
<TR> | ||
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | ||
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> | ||
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | ||
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> | ||
</TR> | ||
</TABLE> | ||
<A NAME="skip-navbar_top"></A> | ||
<!-- ========= END OF TOP NAVBAR ========= --> | ||
|
||
<HR> | ||
<!-- ======== START OF CLASS DATA ======== --> | ||
<H2> | ||
<FONT SIZE="-1"> | ||
com.google.template.soy.sharedpasses.opti</FONT> | ||
<BR> | ||
Class OptiModule</H2> | ||
<PRE> | ||
<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A> | ||
<IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by ">com.google.inject.AbstractModule | ||
<IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><B>com.google.template.soy.sharedpasses.opti.OptiModule</B> | ||
</PRE> | ||
<DL> | ||
<DT><B>All Implemented Interfaces:</B> <DD>com.google.inject.Module</DD> | ||
</DL> | ||
<HR> | ||
<DL> | ||
<DT><PRE>public class <B>OptiModule</B><DT>extends com.google.inject.AbstractModule</DL> | ||
</PRE> | ||
|
||
<P> | ||
Guice module for optimization passes. | ||
|
||
<p> Important: Do not use outside of Soy code (treat as superpackage-private). | ||
<P> | ||
|
||
<P> | ||
<HR> | ||
|
||
<P> | ||
|
||
<!-- ======== CONSTRUCTOR SUMMARY ======== --> | ||
|
||
<A NAME="constructor_summary"><!-- --></A> | ||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | ||
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | ||
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | ||
<B>Constructor Summary</B></FONT></TH> | ||
</TR> | ||
<TR BGCOLOR="white" CLASS="TableRowColor"> | ||
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/sharedpasses/opti/OptiModule.html#OptiModule()">OptiModule</A></B>()</CODE> | ||
|
||
<BR> | ||
</TD> | ||
</TR> | ||
</TABLE> | ||
| ||
<!-- ========== METHOD SUMMARY =========== --> | ||
|
||
<A NAME="method_summary"><!-- --></A> | ||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | ||
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | ||
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | ||
<B>Method Summary</B></FONT></TH> | ||
</TR> | ||
<TR BGCOLOR="white" CLASS="TableRowColor"> | ||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | ||
<CODE>protected void</CODE></FONT></TD> | ||
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/sharedpasses/opti/OptiModule.html#configure()">configure</A></B>()</CODE> | ||
|
||
<BR> | ||
</TD> | ||
</TR> | ||
</TABLE> | ||
<A NAME="methods_inherited_from_class_com.google.inject.AbstractModule"><!-- --></A> | ||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | ||
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | ||
<TH ALIGN="left"><B>Methods inherited from class com.google.inject.AbstractModule</B></TH> | ||
</TR> | ||
<TR BGCOLOR="white" CLASS="TableRowColor"> | ||
<TD><CODE>addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding</CODE></TD> | ||
</TR> | ||
</TABLE> | ||
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> | ||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | ||
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | ||
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> | ||
</TR> | ||
<TR BGCOLOR="white" CLASS="TableRowColor"> | ||
<TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> | ||
</TR> | ||
</TABLE> | ||
| ||
<P> | ||
|
||
<!-- ========= CONSTRUCTOR DETAIL ======== --> | ||
|
||
<A NAME="constructor_detail"><!-- --></A> | ||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | ||
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | ||
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> | ||
<B>Constructor Detail</B></FONT></TH> | ||
</TR> | ||
</TABLE> | ||
|
||
<A NAME="OptiModule()"><!-- --></A><H3> | ||
OptiModule</H3> | ||
<PRE> | ||
public <B>OptiModule</B>()</PRE> | ||
<DL> | ||
</DL> | ||
|
||
<!-- ============ METHOD DETAIL ========== --> | ||
|
||
<A NAME="method_detail"><!-- --></A> | ||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | ||
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | ||
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> | ||
<B>Method Detail</B></FONT></TH> | ||
</TR> | ||
</TABLE> | ||
|
||
<A NAME="configure()"><!-- --></A><H3> | ||
configure</H3> | ||
<PRE> | ||
protected void <B>configure</B>()</PRE> | ||
<DL> | ||
<DD><DL> | ||
<DT><B>Specified by:</B><DD><CODE>configure</CODE> in class <CODE>com.google.inject.AbstractModule</CODE></DL> | ||
</DD> | ||
<DD><DL> | ||
</DL> | ||
</DD> | ||
</DL> | ||
<!-- ========= END OF CLASS DATA ========= --> | ||
<HR> | ||
|
||
|
||
<!-- ======= START OF BOTTOM NAVBAR ====== --> | ||
<A NAME="navbar_bottom"><!-- --></A> | ||
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> | ||
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> | ||
<TR> | ||
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> | ||
<A NAME="navbar_bottom_firstrow"><!-- --></A> | ||
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> | ||
<TR ALIGN="center" VALIGN="top"> | ||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> | ||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> | ||
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> | ||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> | ||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> | ||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> | ||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> | ||
</TR> | ||
</TABLE> | ||
</TD> | ||
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> | ||
</EM> | ||
</TD> | ||
</TR> | ||
|
||
<TR> | ||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | ||
PREV CLASS | ||
<A HREF="../../../../../../com/google/template/soy/sharedpasses/opti/PreevalVisitorFactory.html" title="class in com.google.template.soy.sharedpasses.opti"><B>NEXT CLASS</B></A></FONT></TD> | ||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | ||
<A HREF="../../../../../../index.html?com/google/template/soy/sharedpasses/opti/OptiModule.html" target="_top"><B>FRAMES</B></A> | ||
<A HREF="OptiModule.html" target="_top"><B>NO FRAMES</B></A> | ||
<SCRIPT type="text/javascript"> | ||
<!-- | ||
if(window==top) { | ||
document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); | ||
} | ||
//--> | ||
</SCRIPT> | ||
<NOSCRIPT> | ||
<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A> | ||
</NOSCRIPT> | ||
|
||
|
||
</FONT></TD> | ||
</TR> | ||
<TR> | ||
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | ||
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> | ||
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | ||
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> | ||
</TR> | ||
</TABLE> | ||
<A NAME="skip-navbar_bottom"></A> | ||
<!-- ======== END OF BOTTOM NAVBAR ======= --> | ||
|
||
<HR> | ||
|
||
|
||
<div id="footer"> | ||
<div id="footerlogo" style="float:left"> | ||
<img src="http://www.google.com/images/art.gif" | ||
alt="Google colored balls"> | ||
</div> | ||
<div id="copyright" style="float:left"> | ||
<p> | ||
© 2009 Google - | ||
<a href="http://www.google.com/privacy.html">Privacy Policy</a> - | ||
<a href="http://www.google.com/terms_of_service.html">Terms and Conditions</a> - | ||
<a href="http://www.google.com/about.html">About Google</a> | ||
</p> | ||
</div> | ||
</div> | ||
|
||
|
||
</BODY> | ||
</HTML> |
Oops, something went wrong.