-
-
Notifications
You must be signed in to change notification settings - Fork 474
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(codegen): print linked and external legal comment (#7059)
part of #7050
- Loading branch information
Showing
7 changed files
with
137 additions
and
56 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
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
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
35 changes: 35 additions & 0 deletions
35
crates/oxc_codegen/tests/integration/snapshots/legal_linked_comments.snap
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,35 @@ | ||
--- | ||
source: crates/oxc_codegen/tests/integration/main.rs | ||
--- | ||
########## 0 | ||
/* @license */ | ||
/* @license */ | ||
foo;bar; | ||
---------- | ||
foo; | ||
bar; | ||
/*! For license information please see test.js */ | ||
########## 1 | ||
/* @license */ | ||
/* @preserve */ | ||
foo;bar; | ||
---------- | ||
foo; | ||
bar; | ||
/*! For license information please see test.js */ | ||
########## 2 | ||
/* @license */ | ||
//! KEEP | ||
foo;bar; | ||
---------- | ||
foo; | ||
bar; | ||
/*! For license information please see test.js */ | ||
########## 3 | ||
/* @license */ | ||
/*! KEEP */ | ||
foo;bar; | ||
---------- | ||
foo; | ||
bar; | ||
/*! For license information please see test.js */ |