roblox-ts
Version:
<div align="center"><img width=25% src="https://i.imgur.com/yCjHmng.png"></div> <h1 align="center"><a href="https://roblox-ts.github.io/">roblox-ts</a></h1> <div align="center">A TypeScript-to-Lua Compiler for Roblox</div> <br> <div align="center"> <a hr
8 lines (7 loc) • 779 B
TypeScript
import * as ts from "ts-morph";
import { CompilerState } from "../CompilerState";
export declare function compileExpression(state: CompilerState, node: ts.Expression): string;
export declare function compileExpressionStatement(state: CompilerState, node: ts.ExpressionStatement): string;
export declare function expressionModifiesVariable(node: ts.Node<ts.ts.Node>, lhs?: ts.Identifier): node is ts.BinaryExpression | ts.PrefixUnaryExpression | ts.PostfixUnaryExpression;
export declare function appendDeclarationIfMissing(state: CompilerState, possibleExpressionStatement: ts.Node, compiledNode: string): string;
export declare function placeIncrementorInStatementIfExpression(state: CompilerState, incrementor: ts.Expression<ts.ts.Expression>, incrementorStr: string): string;