|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface HotSwapCompilerPass
Interface for compiler passes that can be used in a hot-swap fashion.
The only method is hotSwapScript which runs this pass on
a subtree of the AST. Each pass that is intended to support hot-swap
style should implement this interface.
It is assumed that Node argument of hotSwapScript is the
root of a sub-tree in AST that represents a js file and so is of type
Token.SCRIPT. Also the global-scope is supposed to be updated based
on new js file prior to this call.
| Method Summary | |
|---|---|
void |
hotSwapScript(Node root,
Scope globalScope)
Process the JS with root node root. |
| Method Detail |
|---|
void hotSwapScript(Node root,
Scope globalScope)
root - Root node corresponding to the file that is modified, should be
of type Token.SCRIPT.globalScope - The global scope which is not necessarily types.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||