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_estree_compat/tests/fixtures/class-public-fields/input.js | JavaScript | class Rectangle {
height = 0;
width;
constructor(height, width) {
this.height = height;
this.width = width;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/class-simple/input.js | JavaScript | class Rectangle {
constructor(height, width) {
this.height = height;
this.width = width;
}
}
const rect = new Rectangle(2, 3);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/class-static/input.js | JavaScript | class Point {
constructor(x, y) {
this.x = x;
this.y = y;
}
static displayName = "Point";
static distance(a, b) {
const dx = a.x - b.x;
const dy = a.y - b.y;
return Math.hypot(dx, dy);
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/class-unnamed/input.js | JavaScript | let Rectangle = class {
constructor(height, width) {
this.height = height;
this.width = width;
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/comments-block-first-line/input.js | JavaScript | /*
A block comment.
*/
let a = false;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/comments-block/input.js | JavaScript | function x() {
/*
This is a
block comment.
*/
let a = false;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/comments-first-line/input.js | JavaScript | // a top level comment
let a = false;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/comments-line/input.js | JavaScript | function x() {
// some comment
let a = true; // trailing comment
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/delete-operator/input.js | JavaScript | let obj = {a: 10};
delete obj.a;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/exponentiation-operator/input.js | JavaScript | const x = 2 ** 3;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/function-anonymous/input.js | JavaScript | const square = function(number) { return number * number }
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/function-arrow/input.js | JavaScript | var a = [
'Hydrogen',
'Helium',
'Lithium',
'Beryllium'
];
var a3 = a.map(s => s.length);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/function-default-parameters/input.js | JavaScript | function multiply(a, b = 1) {
return a * b;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/function-rest-parameters/input.js | JavaScript | function multiply(multiplier, ...theArgs) {
return theArgs.map(x => multiplier * x);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/function-simple/input.js | JavaScript | function square(number) {
return number * number;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/jsx-and-expr/input.jsx | JavaScript (JSX) | const App = () => {
let t = true;
return <div>
{ t && <span>t</span> }
</div>
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/jsx-children/input.jsx | JavaScript (JSX) | const App = () => {
return <div>
<div>testing</div>
</div>
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/jsx-map/input.jsx | JavaScript (JSX) | const App = () => {
let a = [1, 2, 3];
return <ul>
{a.map(item => <li key={item}>{item}</li>)}
</ul>
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/jsx-props-spread/input.jsx | JavaScript (JSX) | const App = props => {
return <div id="app" { ...props } />
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/jsx-props/input.jsx | JavaScript (JSX) | const App = () => {
let name = "thing";
return <div id="app" className={ "a " + name } />
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/jsx-self-closing/input.jsx | JavaScript (JSX) | const App = () => {
return <div />
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/jsx-simple/input.jsx | JavaScript (JSX) | const Component = () => {
return <span>hello</span>
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/jsx-ternary-expr/input.jsx | JavaScript (JSX) | const App = () => {
let t = "a";
return <div>
{ t === "a" ? <span>a</span> : <span>b</span> }
</div>
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/module-commonjs/input.js | JavaScript | const fs = require("fs");
const s = fs.readFileSync("_placeholder");
module.exports = s;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/module-export-default/input.mjs | JavaScript | const a = 1;
export default a;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/module-export-individual-items/input.mjs | JavaScript | export const name = "a";
export function functionName() {}
export class ClassName {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/module-export-named/input.mjs | JavaScript | const a = 1;
export { a };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/module-export-renamed/input.mjs | JavaScript | const x = 1;
export { x as y };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/module-import-default/input.mjs | JavaScript | import a from "b";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/module-import-multiple/input.mjs | JavaScript | import a, {
b,
c,
} from "d";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/module-import-named/input.mjs | JavaScript | import { a } from "b";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/module-import-renamed/input.mjs | JavaScript | import { a as b } from "c";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/module-import-star-renamed/input.mjs | JavaScript | import * as name from "module-name";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/object-destructuring/input.js | JavaScript | const obj = {
a: true,
b: false,
c: null,
};
const { a, b, ...other } = obj;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/object-simple/input.js | JavaScript | let obj = {
a: 1,
b: false,
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/object-spread/input.js | JavaScript | const a = {
name: "a",
};
const b = {
...a,
name: "b",
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/regex-flags/input.js | JavaScript | let r = /[0-9]+/im;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/regex-simple/input.js | JavaScript | let r = /[0-9]+/;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/shebang/input.js | JavaScript | #! /usr/bin/env node
const x = "abc";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/simple-two-lines/input.js | JavaScript | const n = "hello";
console.log(n);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/simple/input.js | JavaScript | const n = 1;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/static-blocks/input.js | JavaScript | class C {
static foo;
static {
this.foo = "foo";
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/template-literal/input.js | JavaScript | let a = "hello";
console.log(`${a} world!`);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/fixtures/ts-function/input.ts | TypeScript | let f: (a: number, b?: number, ...c: number[]) => void;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor.rs | Rust | use std::{
path::{Path, PathBuf},
process::{Command, Stdio},
};
use anyhow::Context;
use serde_json::{Number, Value};
use swc::SwcComments;
use swc_ecma_ast::EsVersion;
use swc_ecma_parser::{lexer::Lexer, Parser, StringInput, Syntax};
use swc_estree_ast::flavor::Flavor;
use swc_estree_compat::babelify::Babelif... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/1/input.js | JavaScript | const foo = require('acorn'); | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/array-destructuring/input.js | JavaScript | const arr = [ 1, 2, 3 ];
const [ a, b, ...other ] = arr;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/array-simple/input.js | JavaScript | const arr = [ 1, 2, 3 ];
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/class-extends/input.js | JavaScript | class Animal {
constructor(name) {
this.name = name;
}
speak() {
console.log(`${this.name} makes a noise.`);
}
}
class Dog extends Animal {
constructor(name) {
super(name);
}
speak() {
console.log(`${this.name} barks.`);
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/class-getter-setter/input.js | JavaScript | class Rectangle {
constructor(height, width) {
this.height = height;
this.width = width;
}
set height(height) { this.height = height; }
set width(width) { this.width = width; }
get area() {
return this.calcArea();
}
calcArea() {
return this.height * this.w... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/class-method-no-body/input.js | JavaScript | class None {
stub() {}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/class-public-fields/input.js | JavaScript | class Rectangle {
height = 0;
width;
constructor(height, width) {
this.height = height;
this.width = width;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/class-simple/input.js | JavaScript | class Rectangle {
constructor(height, width) {
this.height = height;
this.width = width;
}
}
const rect = new Rectangle(2, 3);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/class-static/input.js | JavaScript | class Point {
constructor(x, y) {
this.x = x;
this.y = y;
}
static displayName = "Point";
static distance(a, b) {
const dx = a.x - b.x;
const dy = a.y - b.y;
return Math.hypot(dx, dy);
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/class-unnamed/input.js | JavaScript | let Rectangle = class {
constructor(height, width) {
this.height = height;
this.width = width;
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/comments-block-first-line/input.js | JavaScript | /*
A block comment.
*/
let a = false;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/comments-block/input.js | JavaScript | function x() {
/*
This is a
block comment.
*/
let a = false;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/comments-first-line/input.js | JavaScript | // a top level comment
let a = false;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/comments-line/input.js | JavaScript | function x() {
// some comment
let a = true; // trailing comment
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/delete-operator/input.js | JavaScript | let obj = {a: 10};
delete obj.a;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/exponentiation-operator/input.js | JavaScript | const x = 2 ** 3;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/function-anonymous/input.js | JavaScript | const square = function(number) { return number * number }
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/function-arrow/input.js | JavaScript | var a = [
'Hydrogen',
'Helium',
'Lithium',
'Beryllium'
];
var a3 = a.map(s => s.length);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/function-default-parameters/input.js | JavaScript | function multiply(a, b = 1) {
return a * b;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/function-rest-parameters/input.js | JavaScript | function multiply(multiplier, ...theArgs) {
return theArgs.map(x => multiplier * x);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/function-simple/input.js | JavaScript | function square(number) {
return number * number;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/jsx-and-expr/input.jsx | JavaScript (JSX) | const App = () => {
let t = true;
return <div>
{ t && <span>t</span> }
</div>
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/jsx-children/input.jsx | JavaScript (JSX) | const App = () => {
return <div>
<div>testing</div>
</div>
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/jsx-map/input.jsx | JavaScript (JSX) | const App = () => {
let a = [1, 2, 3];
return <ul>
{a.map(item => <li key={item}>{item}</li>)}
</ul>
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/jsx-props-spread/input.jsx | JavaScript (JSX) | const App = props => {
return <div id="app" { ...props } />
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/jsx-props/input.jsx | JavaScript (JSX) | const App = () => {
let name = "thing";
return <div id="app" className={ "a " + name } />
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/jsx-self-closing/input.jsx | JavaScript (JSX) | const App = () => {
return <div />
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/jsx-simple/input.jsx | JavaScript (JSX) | const Component = () => {
return <span>hello</span>
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/jsx-ternary-expr/input.jsx | JavaScript (JSX) | const App = () => {
let t = "a";
return <div>
{ t === "a" ? <span>a</span> : <span>b</span> }
</div>
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/module-commonjs/input.js | JavaScript | const fs = require("fs");
const s = fs.readFileSync("_placeholder");
module.exports = s;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/module-export-default/input.mjs | JavaScript | const a = 1;
export default a;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/module-export-individual-items/input.mjs | JavaScript | export const name = "a";
export function functionName() {}
export class ClassName {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/module-export-named/input.mjs | JavaScript | const a = 1;
export { a };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/module-export-renamed/input.mjs | JavaScript | const x = 1;
export { x as y };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/module-import-default/input.mjs | JavaScript | import a from "b";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/module-import-multiple/input.mjs | JavaScript | import a, {
b,
c,
} from "d";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/module-import-named/input.mjs | JavaScript | import { a } from "b";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/module-import-renamed/input.mjs | JavaScript | import { a as b } from "c";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/module-import-star-renamed/input.mjs | JavaScript | import * as name from "module-name";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/object-destructuring/input.js | JavaScript | const obj = {
a: true,
b: false,
c: null,
};
const { a, b, ...other } = obj;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/object-simple/input.js | JavaScript | let obj = {
a: 1,
b: false,
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/object-spread/input.js | JavaScript | const a = {
name: "a",
};
const b = {
...a,
name: "b",
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/regex-flags/input.js | JavaScript | let r = /[0-9]+/im;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/regex-simple/input.js | JavaScript | let r = /[0-9]+/;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/shebang/input.js | JavaScript | #! /usr/bin/env node
const x = "abc";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/simple-two-lines/input.js | JavaScript | const n = "hello";
console.log(n);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/simple/input.js | JavaScript | const n = 1;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/static-blocks/input.js | JavaScript | class C {
static foo;
static {
this.foo = "foo";
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/string/input.js | JavaScript | const str = "string\
test\
test";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/fixtures/template-literal/input.js | JavaScript | let a = "hello";
console.log(`${a} world!`);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/object-method/1/input.js | JavaScript | const obj = {
get firstHiddenTime() {
}
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/flavor/acorn/process-shim/1/input.js | JavaScript | process.browser = true;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_estree_compat/tests/swcgen.js | JavaScript | // Helper for generating SWC JSON.
// USAGE: node swcgen.js path/to/input.js > path/to/output.json
const {readFileSync} = require("fs");
const {parseSync} = require("../../../index.js");
const inputFile = process.argv[2];
if (!inputFile) {
console.error("Missing input file. Hint: `node swcgen.js path/to/input.js`"... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_fast_graph/src/digraph.rs | Rust | //! `GraphMap<N, E, Ty>` is a graph datastructure where node values are mapping
//! keys.
#![allow(dead_code)] // We don't want to modify copied source code.
use std::{
cmp::Ordering,
fmt,
hash::{self, Hash},
iter::Cloned,
marker::PhantomData,
ops::Deref,
slice::Iter,
};
use indexmap::{
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_fast_graph/src/lib.rs | Rust | pub mod digraph;
| 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.