Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
5198297
Transformation Pipeline Refactor
ark120202 Aug 19, 2019
a5358b8
Add missing export
ark120202 Aug 19, 2019
997867a
Fix formatting
ark120202 Aug 19, 2019
3302fdf
Fix memory leak
ark120202 Aug 19, 2019
5a6ef59
Rename `setIfMissing` to `getOrUpdate`
ark120202 Aug 26, 2019
4bfce64
Change `SymbolId` brand style
ark120202 Aug 26, 2019
76d89a4
Extract constructed object visitor to a variable
ark120202 Aug 26, 2019
84f9c58
Add -expression to n-ary transformer names
ark120202 Aug 26, 2019
6d68e98
Handle `@noResolve` in `export *` and external module references
ark120202 Sep 23, 2019
0657c14
Remove disabled tshelper tests
ark120202 Sep 23, 2019
87dc06c
Merge remote-tracking branch 'upstream/master' into transformation-pi…
ark120202 Sep 23, 2019
b585341
Resolve some TODOs
ark120202 Sep 24, 2019
0363a55
Rename decorators/directives to annotations
ark120202 Sep 24, 2019
3c18a03
Remove 'custom' from annotation functions
ark120202 Sep 24, 2019
170e789
Simplify few error creators
ark120202 Sep 24, 2019
b71e956
Merge remote-tracking branch 'upstream/master' into transformation-pi…
ark120202 Oct 10, 2019
86960df
Refactor standard transformers to a single plugin
ark120202 Oct 10, 2019
ceea8c9
Merge remote-tracking branch 'upstream/master' into transformation-pi…
ark120202 Oct 29, 2019
00d2d4e
Refactor typeof tests
ark120202 Oct 29, 2019
40e365a
Refactor class accessor checks
ark120202 Oct 29, 2019
4e483db
Import Lua AST as `lua` instead of `tstl`
ark120202 Oct 29, 2019
c060bcc
Fix formatting
ark120202 Oct 29, 2019
e802505
Move plugin out of transformation pipeline
ark120202 Oct 29, 2019
00c38b6
Allow to specify custom printer through plugins
ark120202 Oct 30, 2019
2f7ee83
Make printer plugin stateless
ark120202 Nov 2, 2019
7c1cb0e
Merge remote-tracking branch 'upstream/master' into transformation-pi…
ark120202 Nov 2, 2019
18d692e
Fix 'printer' property name in error message
ark120202 Nov 2, 2019
dca04d4
Make standard transformers have lowest priority
ark120202 Nov 2, 2019
0c18503
Add few comments to public plugin API
ark120202 Nov 3, 2019
8aafab2
Simplify some code
ark120202 Nov 14, 2019
022a8ca
Use canonical casing for annotations
ark120202 Nov 14, 2019
d2a2450
Move `OmittedExpression` handling to context visitors
ark120202 Nov 14, 2019
53c5722
Move TODO visitors to `typescript` file
ark120202 Nov 14, 2019
5b544cd
Class `creation` -> `setup`
ark120202 Nov 24, 2019
6a3af12
Merge `annotations` utils files
ark120202 Nov 24, 2019
d407ca6
Some minor refactors
ark120202 Nov 24, 2019
a6e3d3b
Rename prototype transform functions
ark120202 Nov 24, 2019
bf63f60
Merge remote-tracking branch 'upstream/master' into transformation-pi…
ark120202 Nov 27, 2019
2cec2ef
Merge remote-tracking branch 'upstream/master' into transformation-pi…
ark120202 Dec 1, 2019
4de47b6
Update `printer` comment
ark120202 Dec 7, 2019
d8c32eb
`variable` -> `variable-declaration`
ark120202 Dec 7, 2019
54293a1
Rename `transformation/transformers` to `transformation/visitors`
ark120202 Dec 7, 2019
5179bd5
Merge remote-tracking branch 'upstream/master' into transformation-pi…
ark120202 Dec 7, 2019
3736174
Remove unnecessary import
ark120202 Dec 7, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc -p tsconfig.json && npm run build-lualib",
"build": "tsc && npm run build-lualib",
"build-lualib": "ts-node --files ./build_lualib.ts",
"pretest": "npm run lint && ts-node --files --transpile-only ./build_lualib.ts",
"test": "jest",
Expand Down
39 changes: 0 additions & 39 deletions src/Decorator.ts

This file was deleted.

8 changes: 4 additions & 4 deletions src/LuaAST.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Simplified Lua AST based roughly on http://lua-users.org/wiki/MetaLuaAbstractSyntaxTree,
// https://www.lua.org/manual/5.3/manual.html (9 – The Complete Syntax of Lua) and the TS AST implementation
// https://www.lua.org/manual/5.3/manual.html#9 and the TS AST implementation

// We can elide a lot of nodes especially tokens and keywords
// because we dont create the AST from text
// because we don't create the AST from text

import * as ts from "typescript";

Expand Down Expand Up @@ -121,7 +121,7 @@ export type BinaryOperator =

export type Operator = UnaryOperator | BinaryOperator;

export type SymbolId = number;
export type SymbolId = number & { _symbolIdBrand: any };

export interface TextRange {
line?: number;
Expand Down Expand Up @@ -616,7 +616,7 @@ export function isStringLiteral(node: Node): node is StringLiteral {

export function createStringLiteral(value: string, tsOriginal?: ts.Node, parent?: Node): StringLiteral {
const expression = createNode(SyntaxKind.StringLiteral, tsOriginal, parent) as StringLiteral;
expression.value = value as string;
expression.value = value;
return expression;
}

Expand Down
46 changes: 0 additions & 46 deletions src/LuaKeywords.ts

This file was deleted.

Loading