-
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.
fixed missing rewrap around macro output
- Loading branch information
1 parent
064da04
commit 149bb08
Showing
5 changed files
with
73 additions
and
16 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
### Status: `SyntaxError` | ||
|
||
``` | ||
unbound identifier | ||
unbound identifier 'consoel' | ||
``` | ||
|
||
### Input Program | ||
|
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,27 @@ | ||
## `macro-generating-tmp-binding-1.ts` | ||
|
||
### Status: `DONE` | ||
|
||
### Input Program | ||
|
||
```typescript | ||
define_rewrite_rules( | ||
[define_and_print, define_and_print(v), splice(() => { | ||
const tmp = v; // this is hygienically inserted | ||
console.log(tmp); // and referenced | ||
})], | ||
); | ||
const x = 1; | ||
define_and_print(x); // this will define a tmp | ||
const tmp = 17; // which has nothing to do with this tmp | ||
``` | ||
|
||
### Output Program | ||
|
||
```typescript | ||
const x_3 = 1; | ||
const tmp_6 = x_3; | ||
console.log(tmp_6); | ||
const tmp_8 = 17; | ||
``` | ||
|
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
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,9 @@ | ||
define_rewrite_rules( | ||
[define_and_print, define_and_print(v), splice(() => { | ||
const tmp = v; // this is hygienically inserted | ||
console.log(tmp); // and referenced | ||
})], | ||
); | ||
const x = 1; | ||
define_and_print(x); // this will define a tmp | ||
const tmp = 17; // which has nothing to do with this tmp |