Skip to content

v0.17.66

tagged this 26 Apr 07:41
Introduce a simple `SourceCode` component which offers simple APIs for generating source files.

Example:

```ts
const code = new SourceCode(project, 'source.ts');
code.line('// this is my source code');
code.open('export class Foo {');
code.open('public run() {');
code.line('console.log("running");');
code.close('}'); // method run
code.close('}'); // class Foo
```

---
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Assets 2
Loading