Add some basic language example files to be used for testing

This commit is contained in:
Daniel Imms
2016-11-04 16:30:18 -07:00
parent 981042132e
commit 250af04973
2 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
// An exceptionally useful comment
function func(param) {
var text = 'string';
for (var i = 0; i < param.length; i++) {
text += i;
}
var number = 0;
var templateLiterals = `a ${text} b ${1 + 2} c`;
return {
"text": text,
"boolean": false
};
}

View File

@@ -0,0 +1,13 @@
import { a } from 'some-file';
class Example {
private static readonly _a: string = 'foo';
private get a() {
return this._a;
}
public b(arg1: number, arg2: boolean): string {
return `${arg1} ${arg2}`;
}
}