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_ecma_parser/tests/js/import-attributes/valid-export-class/input.js | JavaScript | export class Foo {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/import-attributes/valid-export-function/input.js | JavaScript | export function foo() {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/import-attributes/valid-export-variable/input.js | JavaScript | export const foo = "";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/import-attributes/valid-export-without-from/input.js | JavaScript | const foo = "";
export { foo };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/import-attributes/valid-string-attribute-key/input.js | JavaScript | import "foo" with { "type": "json" };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-star-as-with-attributes/input.js | JavaScript | export * as foo from "foo.json" with { type: "json" };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-star-with-attributes/input.js | JavaScript | export * from "foo.json" with { type: "json" };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-and-attributes-multiple-lines/input.js | JavaScript | export { default as x } from "foo" with
{ type: "json" }
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-attributes-and-value/input.js | JavaScript | export { "default" as x } from "foo" with { type: "json" }
[0]
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-attributes/input.js | JavaScript | export { default as foo } from "foo.json" with { type: "json" };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-invalid-value/input.js | JavaScript | export { default } from "foo.json" with { type: "json", lazy: true, startAtLine: 1 };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-no-type-attribute/input.js | JavaScript | export { default } from "foo.json" with { lazy: "true" };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-object-method-attribute/input.js | JavaScript | export { default } from "foo.json" with { type: "json", hasOwnProperty: "true" };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-without-attributes/input.js | JavaScript | export { foo } from "foo.json";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-attributes-and-value/input.js | JavaScript | import "x" with { type: "json" }
[0]
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-attributes-multiple-lines/input.js | JavaScript | import "x" with
{ type: "json" }
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-attributes/input.js | JavaScript | import foo from "foo.json" with { type: "json" };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-invalid-value/input.js | JavaScript | import foo from "foo.json" with { type: "json", lazy: true, startAtLine: 1 };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-no-type-attribute/input.js | JavaScript | import foo from "foo.json" with { lazy: "true" };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-object-method-attribute/input.js | JavaScript | import foo from "foo.json" with { type: "json", hasOwnProperty: "true" };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-without-attributes/input.js | JavaScript | import foo from "foo.json";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/import-attributes/without-plugin/input.js | JavaScript | import foo from "foo.json" with { type: "json" };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/issue-4176/1/input.js | JavaScript | const module = 'left-pad'
module | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/issue-5276/input.js | JavaScript | export class MyClass {
@MyDecorator()
export = true;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/issue-8482/input.js | JavaScript | export let a = '' | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/jssue-7428/1/input.js | JavaScript | class T {
f() { arguments }
static f = class extends T {
x() { arguments }
}
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/optional-chaining/1/input.js | JavaScript | obj?.a?.b?.c() | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/optional-chaining/2/input.js | JavaScript | a?.b()()?.c()();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/optional-chaining/3/input.js | JavaScript | missing?.thing.name | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/optional-chaining/4/input.js | JavaScript | obj?.b.b | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/optional-chaining/5/input.js | JavaScript | obj.a?.() | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/source-phase-imports/attributes-declaration/input.js | JavaScript | import source s from "x" with { attr: "val" }; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/source-phase-imports/attributes-expression/input.js | JavaScript | import.source("x", { with: { attr: "val" } });
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/source-phase-imports/dynamic-import-no-createImportExpressions/input.js | JavaScript | import.source("foo"); | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/source-phase-imports/dynamic-import/input.js | JavaScript | import.source("foo"); | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/source-phase-imports/import-default-binding-source/input.js | JavaScript | import source from "x"; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/source-phase-imports/import-source-binding-from/input.js | JavaScript | import source from from "x";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/source-phase-imports/import-source-binding-source/input.js | JavaScript | import source source from "x"; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/source-phase-imports/import-source/input.js | JavaScript | import source x from "x";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/source-phase-imports/no-named/input.js | JavaScript | import source { x } from "x"; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/source-phase-imports/no-namespace/input.js | JavaScript | import source * as x from "x"; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/js/stack-overflow/1.js | JavaScript | if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
console.log(true);
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx.rs | Rust | use std::{
fs::read_to_string,
path::{Path, PathBuf},
};
use pretty_assertions::assert_eq;
use swc_common::{errors::Handler, sync::Lrc, SourceMap};
use swc_ecma_ast::*;
use swc_ecma_parser::{lexer::Lexer, PResult, Parser};
use swc_ecma_visit::{Fold, FoldWith};
use testing::{run_test, StdErr};
fn parse_module(cm: Lrc<SourceMap>, handler: &Handler, file_name: &Path) -> Result<Module, ()> {
with_parser(cm, handler, file_name, |p| p.parse_module())
}
fn with_parser<F, Ret>(
cm: Lrc<SourceMap>,
handler: &Handler,
file_name: &Path,
f: F,
) -> Result<Ret, ()>
where
F: FnOnce(&mut Parser<Lexer>) -> PResult<Ret>,
{
let fm = cm
.load_file(file_name)
.unwrap_or_else(|e| panic!("failed to load {}: {}", file_name.display(), e));
let mut p = Parser::new(
::swc_ecma_parser::Syntax::Es(::swc_ecma_parser::EsSyntax {
jsx: true,
..Default::default()
}),
(&*fm).into(),
None,
);
let res = f(&mut p).map_err(|e| e.into_diagnostic(handler).emit());
for e in p.take_errors() {
e.into_diagnostic(handler).emit();
}
res
}
#[testing::fixture("tests/jsx/basic/**/*.js")]
fn references(entry: PathBuf) {
run_test(false, |cm, handler| {
let input = read_to_string(&entry).unwrap();
eprintln!(
"\n\n========== Running reference test \nSource:\n{}\n",
input
);
// Parse source
let module = parse_module(cm, handler, &entry)?.fold_with(&mut Normalizer);
let json =
serde_json::to_string_pretty(&module).expect("failed to serialize module as json");
if StdErr::from(json.clone())
.compare_to_file(format!("{}.json", entry.display()))
.is_err()
{
panic!()
}
let deser = serde_json::from_str::<Module>(&json)
.unwrap_or_else(|err| {
panic!(
"failed to deserialize json back to module: {}\n{}",
err, json
)
})
.fold_with(&mut Normalizer);
assert_eq!(module, deser, "JSON:\n{}", json);
Ok(())
})
.unwrap();
}
#[cfg(feature = "verify")]
#[testing::fixture("tests/jsx/errors/**/*.js")]
fn error(entry: PathBuf) {
let input = read_to_string(&entry).unwrap();
eprintln!(
"\n\n========== Running error reporting test \nSource:\n{}\n",
input
);
let err = run_test(false, |cm, handler| {
if false {
// Type annotation
return Ok(());
}
// Parse source
let _ = parse_module(cm, handler, &entry);
if !handler.has_errors() {
panic!("should emit error, but parsed without error")
}
Err(())
})
.expect_err("should fail, but parsed as");
if err
.compare_to_file(format!("{}.swc-stderr", entry.display()))
.is_err()
{
panic!()
}
}
struct Normalizer;
impl Fold for Normalizer {
fn fold_pat(&mut self, mut node: Pat) -> Pat {
node = node.fold_children_with(self);
if let Pat::Expr(expr) = node {
match *expr {
Expr::Ident(i) => return i.into(),
_ => {
node = expr.into();
}
}
}
node
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/1/input.js | JavaScript | <a /> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/10/input.js | JavaScript | <a>{/* this is a comment */}</a> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/11/input.js | JavaScript | <div>@test content</div> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/12/input.js | JavaScript | <div><br />7x invalid-js-identifier</div> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/13/input.js | JavaScript | <LeftRight left=<a /> right=<b>monkeys /> gorillas</b> /> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/14/input.js | JavaScript | <a.b></a.b> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/15/input.js | JavaScript | <a.b.c></a.b.c> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/16/input.js | JavaScript | (<div />) < x; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/17/input.js | JavaScript | <div {...props} /> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/18/input.js | JavaScript | <div {...props} post="attribute" /> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/19/input.js | JavaScript | <div pre="leading" pre2="attribute" {...props}></div> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/2/input.js | JavaScript | <n:a n:v /> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/20/input.js | JavaScript | <A aa={aa.bb.cc} bb={bb.cc.dd}><div>{aa.b}</div></A> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/21/input.js | JavaScript | <div {...c}> {...children}{a}{...b}</div>
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/22/input.js | JavaScript | <div>this should not parse as unicode: \u00a0</div>; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/3/input.js | JavaScript | <a n:foo="bar"> {value} <b><c /></b></a> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/4/input.js | JavaScript | <a b={" "} c=" " d="&" e="&r;" /> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/5/input.js | JavaScript | <a
/> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/6/input.js | JavaScript | <日本語></日本語> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/7/input.js | JavaScript | <AbC-def
test="&&">
bar
baz
</AbC-def> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/8/input.js | JavaScript | <a b={x ? <c /> : <d />} /> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/asi/input.js | JavaScript | function x() {
let x
<div />
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/custom/issue-517/input.js | JavaScript | <div>Hello World</div> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/custom/issue-542/input.js | JavaScript | let page = <p>Click <em>New melody</em> listen to a randomly generated melody</p>
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/custom/issue-612-async-generator/issue.js | JavaScript | async function* agf() {} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/custom/issue-614/input.js | JavaScript | const t = <test test = "5" other = {4}/>
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/custom/issue-615/input.js | JavaScript | let c = <Test attrib="5" />;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/custom/issue-720/input.js | JavaScript | async function* main() {
yield await 0;
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/custom/tpl-space/input.js | JavaScript | `${foo} <bar>` | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/custom/tpl/input.js | JavaScript | `${foo}<bar>` | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/custom/unary-paren/input.js | JavaScript | import React from 'react';
function App() {
const isLoading = true;
return (
<div>
<h1>works </h1>
{
isLoading ? (
<div>loading </div>
) : (
<div>naaaaaaaaaaaaffffffffffffffff </div>
)
}
</div>
);
}
export default App; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/custom/unary/input.js | JavaScript | import React from 'react';
function App() {
const isLoading = true;
return (
<div>
<h1>works </h1>
{
isLoading ? <div>loading </div> : <div>naaaaaaaaaaaaffffffffffffffff </div>
}
</div>
);
}
export default App; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/empty-expression-container/input.js | JavaScript | <a>{}</a> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/entity/input.js | JavaScript | <A>💩</A> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/fragment-1/input.js | JavaScript | <></>
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/fragment-2/input.js | JavaScript | <>Hi, I'm a string!</>
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/fragment-3/input.js | JavaScript | < >
<span>
hi
</span>
<div>bye</div>
</>
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/fragment-4/input.js | JavaScript | <>
<>
<>
super deep
</>
</>
</>
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/fragment-5/input.js | JavaScript | <
// comment1
/* comment2 */
>
<div></div>
<div></div>
</>
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/fragment-6/input.js | JavaScript | <><div>JSXElement</div>JSXText{'JSXExpressionContainer'}</>
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/issue-2075/case1/input.js | JavaScript | const x = <div onclick={{ function: 123 }}></div>; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/issue-2075/not-keyword/input.js | JavaScript | const x = <div onclick={{ foo: 123 }}></div>; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/issue-2264/input.js | JavaScript | const t = <Switch>
// 1
/* 2 */
</Switch> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/issue-6522/input.js | JavaScript | let x
<Comp></Comp>
let x
<Comp></Comp>
let x;
<Comp></Comp>
var x
<Comp></Comp>
var x;
<Comp></Comp>
function x() {
let x
<div />
}
{ foo: 'test' }
<Comp></Comp>
function test1() {}
<Comp></Comp>
class Foo {}
<>
<Comp></Comp>
<Comp></Comp>
</>
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/issue-812/input.js | JavaScript | class A {
declare() {}
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/keyword-tag/input.js | JavaScript | <var></var>;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/namespace-tag/input.js | JavaScript | <Foo:Bar />;
<Foo:Bar></Foo:Bar>
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/nonentity-decimal/input.js | JavaScript | <A>f4a9;</A> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/nonentity/input.js | JavaScript | <A>g4q9;</A> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/string/input.js | JavaScript | const x = <div onclick={{ s: "\uD800" }}></div>;
const x = <div onclick={{ s: "\u{D800}" }}></div>;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/template/input.js | JavaScript | const x = <div onclick={{ t: `\uD800` }}></div>;
const x = <div onclick={{ t: `\u{D800}` }}></div>;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/basic/yield-tag/input.js | JavaScript | function*it(){
yield <a></a>;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/errors/adjacent-tags/input.js | JavaScript | var x = <div>one</div><div>two</div>;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/errors/attribute-arbitrary-expression/input.js | JavaScript | <Foo bar=bar() />
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/errors/attribute-empty-expression/input.js | JavaScript | <foo bar={} />
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/errors/attributes-in-fragment/input.js | JavaScript | < key="nope"></>
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/jsx/errors/html-comment/input.js | JavaScript | <!--a
| 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.