@@ -1223,7 +1223,7 @@ function Compiler:compileStatement(statement, funcDepth)
1223
1223
return ;
1224
1224
end
1225
1225
1226
- -- Function call Statement
1226
+ -- Function Call Statement
1227
1227
if (statement .kind == AstKind .FunctionCallStatement ) then
1228
1228
local baseReg = self :compileExpression (statement .base , funcDepth , 1 )[1 ];
1229
1229
local retReg = self :allocRegister (false );
@@ -1254,7 +1254,7 @@ function Compiler:compileStatement(statement, funcDepth)
1254
1254
return ;
1255
1255
end
1256
1256
1257
- -- Pass self Function Call Statement
1257
+ -- Pass Self Function Call Statement
1258
1258
if (statement .kind == AstKind .PassSelfFunctionCallStatement ) then
1259
1259
local baseReg = self :compileExpression (statement .base , funcDepth , 1 )[1 ];
1260
1260
local tmpReg = self :allocRegister (false );
@@ -1662,7 +1662,7 @@ function Compiler:compileStatement(statement, funcDepth)
1662
1662
return ;
1663
1663
end
1664
1664
1665
- -- For in Statement
1665
+ -- For In Statement
1666
1666
if (statement .kind == AstKind .ForInStatement ) then
1667
1667
local expressionsLength = # statement .expressions ;
1668
1668
local exprregs = {};
@@ -1792,7 +1792,7 @@ function Compiler:compileStatement(statement, funcDepth)
1792
1792
return ;
1793
1793
end
1794
1794
1795
- -- Contiue Statement
1795
+ -- Continue Statement
1796
1796
if (statement .kind == AstKind .ContinueStatement ) then
1797
1797
local toFreeVars = {};
1798
1798
local statScope ;
@@ -1824,7 +1824,7 @@ function Compiler:compileStatement(statement, funcDepth)
1824
1824
return ;
1825
1825
end
1826
1826
1827
- -- Compund Statements
1827
+ -- Compound Statements
1828
1828
local compoundConstructors = {
1829
1829
[AstKind .CompoundAddStatement ] = Ast .CompoundAddStatement ,
1830
1830
[AstKind .CompoundSubStatement ] = Ast .CompoundSubStatement ,
@@ -1970,7 +1970,7 @@ function Compiler:compileExpression(expression, funcDepth, numReturns)
1970
1970
return regs ;
1971
1971
end
1972
1972
1973
- -- Function call Expression
1973
+ -- Function Call Expression
1974
1974
if (expression .kind == AstKind .FunctionCallExpression ) then
1975
1975
local baseReg = self :compileExpression (expression .base , funcDepth , 1 )[1 ];
1976
1976
@@ -2026,7 +2026,7 @@ function Compiler:compileExpression(expression, funcDepth, numReturns)
2026
2026
return retRegs ;
2027
2027
end
2028
2028
2029
- -- Pass self Function Call Expression
2029
+ -- Pass Self Function Call Expression
2030
2030
if (expression .kind == AstKind .PassSelfFunctionCallExpression ) then
2031
2031
local baseReg = self :compileExpression (expression .base , funcDepth , 1 )[1 ];
2032
2032
local retRegs = {};
0 commit comments