file_path stringlengths 3 280 | file_language stringclasses 66
values | content stringlengths 1 1.04M | repo_name stringlengths 5 92 | repo_stars int64 0 154k | repo_description stringlengths 0 402 | repo_primary_language stringclasses 108
values | developer_username stringlengths 1 25 | developer_name stringlengths 0 30 | developer_company stringlengths 0 82 |
|---|---|---|---|---|---|---|---|---|---|
crates/swc_html_parser/tests/recovery/element/image/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<image src="test.png">
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/isindex/input.html | HTML | <isindex> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/main-1/input.html | HTML | <!DOCTYPE html>xxx<svg><x><g><a><main><b> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/main/input.html | HTML | <!doctype html><p>foo<main>bar<p>baz | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/marquee/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<marquee behavior="" direction="">
<div>
</marquee>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/math-1/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<math>
</math>X
</math>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/math-2/input.html | HTML | <!doctype html><math></html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/math/input.html | HTML | <!DOCTYPE html>
<html>
<head>
<title>MathML in HTML5</title>
</head>
<body>
<math>
<semantics>
<!-- Presentation MathML -->
<mrow>
<msup>
<mi>x</mi>
<mn>2</mn>
</msup>
<mo>+</mo>
<mi>y</mi>
</mrow>
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/menuitem/input.html | HTML | <!DOCTYPE html><li><menuitem><li> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/nobr-1/input.html | HTML | <!doctype html><nobr><nobr><nobr> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/nobr/input.html | HTML | <nobr>X | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/noscript-1/input.html | HTML | <head><noscript></br><!--foo--></noscript> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/noscript-2/input.html | HTML | <head><noscript>ABC<!--foo--></noscript> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/noscript/input.html | HTML | <head><noscript><!doctype html><!--foo--></noscript> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/p-1/input.html | HTML | <div><p>a</x> b | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/p-2/input.html | HTML | <p><table>
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/p-3/input.html | HTML | <p id=a><b><p id=b></b>TEST | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/p/input.html | HTML | <p>a<p>b</p></p> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/plaintext/input.html | HTML | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Тег PLAINTEXT</title>
</head>
<body>
<p>Пример программы</p>
<plaintext>
<h1>Демонстрация метода Подборского</h1>
wh... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/rb-1/input.html | HTML | <!doctype html><div><p><rt> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/rb/input.html | HTML | <!doctype html><ruby><div><p><rb> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/rt-1/input.html | HTML | <!doctype html><div><p><rt> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/rt/input.html | HTML | <!doctype html><ruby><div><p><rt> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/ruby/input.html | HTML | <html><ruby>a<rb>b<span></ruby></html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/s/input.html | HTML | <div><table><svg><foreignObject><select><table><s> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/search-1/input.html | HTML | <!DOCTYPE html>xxx<svg><x><g><a><search><b> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/search/input.html | HTML | <!doctype html><p>foo<search>bar<p>baz | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/select-1/input.html | HTML | <select>
<option value="test">
1
<option value="test-2">
2
</option>
</option>
</select> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/select-2/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<select name="test" id="test">
<select name="test-1" id="test-1"></select>
</select>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/select/input.html | HTML | <select><div>foo</div>bar</select>
<select><keygen> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/svg-1/input.html | HTML | <svg><![CDATA[foo
bar]]> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/svg-2/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<svg><!doctype html></svg>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/svg-3/input.html | HTML | <svg></p><foo> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/svg-4/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<svg><p>tes... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/svg/input.html | HTML | <!DOCTYPE html>xxx<svg><x><g><a><main><b> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/table-1/input.html | HTML | <table><td></tbody>A | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/table-2/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<table>
<table>
</table>
<table>
<tr>
</table>
</tr>
</table>
</table>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/table-3/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<table>
<caption></table></caption>
</table>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/table-4/input.html | HTML | <!DOCTYPE html><body><table><tr><td><select><math><mi>foo</mi><mi>bar</mi><p>baz</table><p>quux | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/table-5/input.html | HTML | <!doctype html><table> x </table> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/table-6/input.html | HTML | <table><td><div | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/table/broken-1/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<table><h1>test</h1></table>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/table/broken-2/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<tbody align="right">
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
</tbody>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/table/broken-3/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<table>
<table>
<tr>
<td>
Table
</td>
</tr>
</table>
</table>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/table/broken-4/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<tr>
<td>
Table
</td>
</tr>
</table>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/table/broken-5/input.html | HTML | <table><thead><input type="text"></thead></table> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/table/broken-6/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<table>
<tr>
<td>
<table>
</td>
</tr>
</table>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/table/broken-7/input.html | HTML | <table><tr><td><svg><desc><td></desc><circle>
A<table><tr> B</tr> </em>C</table> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/table/broken-8/input.html | HTML | <body><table><tr><td><svg><td><foreignObject><span></td>Foo | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/table/broken/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<table><h1>test</h1></table>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/table/table-characters-2/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
A<table><tr> B</tr> C</table>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/table/table-characters-3/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
A<table><tr> B</tr> </em>C</table>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/table/table-characters/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
A<table>B<tr>C</tr>D</table>
</body>
</html>
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/td/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<table>
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/template-1/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<div id="tmplParent"><template id="tmpl1"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></template></div>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/template-2/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<div id="tmplParent"><template id="tmpl1"><div id="fosterParent"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></div></template></div>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/template-3/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<div id="tmplParent"><template id="tmpl1"><div id="fosterParent"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></div></template></div>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/template-4/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<template>
</div>
</template>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/template-5/input.html | HTML | <!DOCTYPE HTML><template><tr><td>cell</td></tr>a</template> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/template/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/textarea/input.html | HTML | <textarea><!--</textarea>--></textarea> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/tr-1/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<table><tr>... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/tr/input.html | HTML | <body><template><td></td></tr><td></td></template> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/element/unknown/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
</unkno... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/text/after-body-1/input.html | HTML | <!doctype html> <html lang="en"> <head> <title>Document</title> </head><body> A B </body> C | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/text/after-body/input.html | HTML | <!doctype html> <html lang="en"> <head> <title>Document</title> </head><body> A </body> B </html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/text/after-html/input.html | HTML | <!doctype html> <html lang="en"> <head> <title>Document</title> </head><body> A </body> </html> B | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/text/ambiguous-ampersand/input.html | HTML | <div><a href='?a=b&c=d&a0b=c©=1¬i=n¬=in¬in=∉¬&;& &'>Link</a><p>Text: ?a=b&c=d&a0b=c©=1¬i=n¬=in¬in=∉¬&;& &</p></div>
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/text/cdata/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<p><![CDATA[content]]></p>
<p><![CDATA[&ing]]></p>
<p><![CDATA[&ing ]]]></p>
<p><![CDATA[&ing]] ]]></p>
<p><![CDATA[<message>text</message>]]></p>
<p><![CDATA[</this is malformed!</malformed</malformed & worse>]]></p>
<p><![CDAT... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/text/character-refenrece-outside/input.html | HTML | � | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/text/cr-as-numeric-entity/input.html | HTML | 
 | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/text/cr-charref-novalid/input.html | HTML | <!doctype html><meta charset=utf-8><title>&#x0d;</title><p>There should be an error.
 | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/text/empty-entities/input.html | HTML | &# &#; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/text/entity/input.html | HTML | <!DOCTYPE html>
<html>
<body>
<h1>HTML Entity Example</h1>
<div>®</div>
<div>reg</div>
<div>&#q;</div>
<div>&#qq;</div>
<div>&#qqq;</div>
<div>&#xq;</div>
<div>&#xqq;</div>
<div>&#xqqq;</div>
<div>
€ 0x20AC EURO SIGN (€)
‚ 0x201A SINGLE LOW-9 QUOTATION MARK (‚)
ƒ 0x0192 LATIN SM... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/text/noncharacter/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<div></div... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/text/only-text/input.html | HTML | Text | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/text/range-charref-novalid/input.html | HTML | <!doctype html><meta charset=utf-8><title>&#x110000;</title><p>There should be an error.� | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/text/u000b-charref-novalid/input.html | HTML | <!doctype html><meta charset=utf-8><title>&#x000B;</title><p>There should be an error. | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_parser/tests/recovery/text/unassigned-charref-novalid/input.html | HTML | <!doctype html><meta charset=utf-8><title>&#xfdd0;</title><p>There should be an error. | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_utils/src/lib.rs | Rust | use once_cell::sync::Lazy;
use rustc_hash::FxHashMap;
use serde::{Deserialize, Serialize};
use swc_atoms::Atom;
#[derive(Serialize, Deserialize, Debug)]
pub struct Entity {
pub characters: String,
}
pub static HTML_ENTITIES: Lazy<FxHashMap<String, Entity>> = Lazy::new(|| {
let entities: FxHashMap<String, Enti... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_utils/test.js | JavaScript | "use strict";
const fs = require("fs");
const path = require("path");
let rawdata = fs.readFileSync(
path.resolve(__dirname, "./src/svg_elements_and_attributes.json")
);
let elements = JSON.parse(rawdata);
for (const element_name of Object.keys(elements)) {
const _extends = elements[element_name]["_extends"]... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_visit/src/generated.rs | Rust | #![doc = r" This file is generated by `tools/generate-code`. DO NOT MODIFY."]
#![allow(unused_variables)]
#![allow(clippy::all)]
pub use ::swc_visit::All;
use swc_html_ast::*;
#[doc = r" A visitor trait for traversing the AST."]
pub trait Visit {
#[doc = "Visit a node of type `swc_atoms :: Atom`.\n\nBy default, thi... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_visit/src/lib.rs | Rust | #![cfg_attr(docsrs, feature(doc_cfg))]
#![deny(clippy::all)]
#![allow(clippy::ptr_arg)]
pub use crate::generated::*;
mod generated;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_macros_common/src/binder.rs | Rust | //! # Example
//!
//! `_binded_a`, `_binded_b` and `_binded_0` in below example are
//! `BindedField`.
//!
//! ```rust
//! struct S {
//! a: u8,
//! b: u16,
//! }
//! let s = S { a: 0, b: 0 };
//! match s {
//! S {
//! a: _binded_a,
//! b: _binded_b,
//! } => {}
//! }
//! enum E {
//! ... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_macros_common/src/derive.rs | Rust | use std::iter;
use proc_macro2::TokenStream;
use quote::ToTokens;
use syn::{punctuated::Pair, *};
use crate::def_site;
mod generics;
/// Generics of derived impl item.
#[derive(Debug, Clone)]
pub struct Derive<'a> {
input: &'a DeriveInput,
out: ItemImpl,
}
impl<'a> Derive<'a> {
pub fn new(input: &'a De... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_macros_common/src/derive/generics.rs | Rust | use std::collections::BTreeSet;
use quote::quote;
use syn::visit::Visit;
use super::*;
impl<'a> Derive<'a> {
pub fn all_generic_fields(&self) -> Vec<&'a Field> {
struct TypeVisitor<'a> {
params: &'a BTreeSet<Ident>,
is_generic: bool,
}
impl Visit<'_> for TypeVisit... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_macros_common/src/lib.rs | Rust | //! Internal crate for the swc project.
extern crate proc_macro;
use proc_macro2::{Span, TokenStream};
use quote::ToTokens;
use syn::{punctuated::Pair, *};
pub mod binder;
pub mod derive;
pub mod prelude;
mod syn_ext;
pub fn call_site() -> Span {
Span::call_site()
}
pub fn def_site() -> Span {
call_site()
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_macros_common/src/prelude.rs | Rust | pub use proc_macro2::{Delimiter, Group, Literal, Punct, Span, TokenStream, TokenTree};
pub use quote::ToTokens;
pub use syn::punctuated::{Pair as Element, Punctuated};
pub use super::{
binder::{BindedField, Binder, VariantBinder},
call_site, def_site,
derive::Derive,
doc_str, is_attr_name, print,
s... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_macros_common/src/syn_ext.rs | Rust | use quote::quote;
use syn::{punctuated::Pair, *};
use crate::def_site;
/// Extension trait for `ItemImpl` (impl block).
pub trait ItemImplExt {
/// Instead of
///
/// ```rust,ignore
/// let (impl_generics, ty_generics, where_clause) = input.generics.split_for_impl();
///
/// let item: Item = Q... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_malloc/src/lib.rs | Rust | //! This crate configures memory allocator.
//!
//! The swc crates related to the node binding should depend on this crate.
#[cfg(any(
not(any(
target_os = "linux",
target_family = "wasm",
target_env = "musl",
all(target_os = "linux", any(target_arch = "aarch64", target_arch = "arm... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/build.rs | Rust | //! We need OUT_DIR
fn main() {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/scripts/fixture.sh | Shell | #!/usr/bin/env bash
set -eu
cargo test --lib --all-features
TEST="$(echo "$1" |sed 's/\:\:/\//g' | sed 's/_/-/g')"
export TEST;
cargo test --test fixture pass -- --nocapture | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/src/lib.rs | Rust | #![cfg_attr(test, feature(test))]
#[cfg(test)]
extern crate test;
/// Explicit extern crate to use allocator.
extern crate swc_malloc;
pub mod loaders;
#[cfg(feature = "swc_v1")]
pub mod v1;
#[cfg(feature = "swc_v2")]
pub mod v2;
#[cfg(all(not(feature = "swc_v1"), not(feature = "swc_v2")))]
compile_error!("Please e... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/src/loaders/json.rs | Rust | use std::sync::Arc;
use anyhow::{anyhow, Error};
use swc_common::{SourceFile, DUMMY_SP};
use swc_ecma_ast::*;
use swc_ecma_parser::{parse_file_as_expr, Syntax};
pub(super) fn load_json_as_module(fm: &Arc<SourceFile>) -> Result<Module, Error> {
let expr = parse_file_as_expr(
fm,
Syntax::default(),
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/src/loaders/mod.rs | Rust | mod json;
pub mod swc;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/src/loaders/swc.rs | Rust | use std::{collections::HashMap, env, sync::Arc};
use anyhow::{bail, Context, Error};
use helpers::Helpers;
use rustc_hash::FxHashMap;
use swc::{
config::{GlobalInliningPassEnvs, InputSourceMap, IsModule, JscConfig, TransformConfig},
try_with_handler,
};
use swc_atoms::Atom;
use swc_bundler::{Load, ModuleData};... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/src/v1/mod.rs | Rust | use std::{collections::HashMap, fmt, marker::PhantomData, path::PathBuf};
use rustc_hash::FxHashMap;
use serde::Deserialize;
use string_enum::StringEnum;
use swc_atoms::Atom;
use swc_common::FileName;
use swc_ecma_ast::EsVersion;
use swc_ecma_loader::TargetEnv;
pub use self::{
module::ModuleConfig,
optimizati... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/src/v1/module/mod.rs | Rust | use serde::Deserialize;
#[derive(Debug, Default, Deserialize)]
#[serde(rename = "Module", rename_all = "camelCase")]
pub struct ModuleConfig {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/src/v1/optimization.rs | Rust | use serde::Deserialize;
use crate::v1::JsCallback;
#[derive(Debug, Deserialize)]
#[serde(rename = "Optimization", rename_all = "camelCase")]
pub struct OptimizationConfig {
#[serde(default)]
pub minimize: bool,
#[serde(skip)]
pub minimizer: Option<JsCallback<String, String>>,
#[serde(default)]
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/src/v1/output.rs | Rust | use std::path::PathBuf;
use serde::Deserialize;
#[derive(Debug, Deserialize)]
#[serde(rename = "Output")]
#[serde(rename_all = "camelCase")]
pub struct OutputConfig {
pub path: PathBuf,
#[serde(default)]
pub name: String,
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.