test(tree-sitter): remove test.js
It does not belong in the module or the repo
This commit is contained in:
parent
6dd678a53c
commit
56432f1649
1 changed files with 0 additions and 52 deletions
|
@ -1,52 +0,0 @@
|
||||||
// this is a test file i am useing to test functionallity with treesitter
|
|
||||||
|
|
||||||
// blocks
|
|
||||||
x = 10
|
|
||||||
|
|
||||||
// calls
|
|
||||||
call();
|
|
||||||
|
|
||||||
// class
|
|
||||||
class Car {
|
|
||||||
constructor(name, year) {
|
|
||||||
this.name = name;
|
|
||||||
this.year = year;
|
|
||||||
}
|
|
||||||
age(x) {
|
|
||||||
return x - this.year;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// comments
|
|
||||||
/*
|
|
||||||
* multiline my dude
|
|
||||||
* a poem
|
|
||||||
* roses are red
|
|
||||||
* violets are blue
|
|
||||||
* there is a man behind you
|
|
||||||
* and he had an axe with him to
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
// conditional
|
|
||||||
if (x == 1) {
|
|
||||||
doStuff();
|
|
||||||
} else {
|
|
||||||
x = new Car.age(2020)
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// function
|
|
||||||
function name(arg) {
|
|
||||||
doStuff(arg);
|
|
||||||
}
|
|
||||||
|
|
||||||
const arrowFunc = arg => {
|
|
||||||
dosStuff(arg);
|
|
||||||
}
|
|
||||||
|
|
||||||
// loop
|
|
||||||
for (let i = 0; i <= 10; i++) {
|
|
||||||
doStuff(i);
|
|
||||||
}
|
|
||||||
// param
|
|
Loading…
Add table
Add a link
Reference in a new issue