
public class JsStringInterner extends Object
| Modifier and Type | Method and Description |
|---|---|
static Map<JsName,String> |
exec(JProgram jprogram,
JsProgram program,
boolean alwaysIntern)
Apply interning of String literals to a JsProgram.
|
static boolean |
exec(JsProgram program,
JsBlock block,
JsScope scope,
boolean alwaysIntern)
Intern String literals that occur within a JsBlock.
|
public static final String PREFIX
public static Map<JsName,String> exec(JProgram jprogram, JsProgram program, boolean alwaysIntern)
jprogram - the JProgram that has fragment dependency data for
programprogram - the JsProgramalwaysIntern - true for browsers like IE which must always intern literalspublic static boolean exec(JsProgram program, JsBlock block, JsScope scope, boolean alwaysIntern)
block - the block to visitscope - the JsScope in which to reserve the new identifiersalwaysIntern - true for browsers like IE which must always intern literalstrue if any changes were made to the blockCopyright © 2018. All rights reserved.