mirror of
https://github.com/Tyriar/vscode-theme-generator.git
synced 2025-12-07 01:26:15 -08:00
Add some basic language example files to be used for testing
This commit is contained in:
13
language-examples/javascript.js
Normal file
13
language-examples/javascript.js
Normal 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
|
||||||
|
};
|
||||||
|
}
|
||||||
13
language-examples/typescript.ts
Normal file
13
language-examples/typescript.ts
Normal 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}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user