Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
scratchpad [2009/10/19 20:55] aspectscript |
scratchpad [2010/05/11 23:08] (current) aspectscript |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Scratchpad ====== | ====== Scratchpad ====== | ||
| - | In this page you can interactively try AspectScript. | + | In this page you can interactively try AspectScript. |
| ======= Type your code in this text area... ======= | ======= Type your code in this text area... ======= | ||
| Line 7: | Line 7: | ||
| | | ||
| <form action="/ | <form action="/ | ||
| - | < | + | < |
| var pc = function(){ | var pc = function(){ | ||
| | | ||
| Line 17: | Line 17: | ||
| AspectScript.before(pc, | AspectScript.before(pc, | ||
| - | //all the following | + | //all the jps generated from here are seen by the aspect |
| pc(); | pc(); | ||
| var x = 0; | var x = 0; | ||
| - | var obj = {f: 1} | + | var obj = {f: 1}; |
| + | var fun = function(){}; | ||
| </ | </ | ||
| - | < | + | < |
| - | <body> | + | <b>Sequences matched:</b> |
| - | This is the list of join points seen by the aspect: | + | |
| <div id=" | <div id=" | ||
| - | </ | ||
| </ | </ | ||
| <br> | <br> | ||
| <div style=" | <div style=" | ||
| - | <input type=" | + | < |
| </ | </ | ||
| </ | </ | ||