@@ -1222,7 +1222,7 @@ function Compiler:compileStatement(statement, funcDepth)
12221222 return ;
12231223 end
12241224
1225- -- Function call Statement
1225+ -- Function Call Statement
12261226 if (statement .kind == AstKind .FunctionCallStatement ) then
12271227 local baseReg = self :compileExpression (statement .base , funcDepth , 1 )[1 ];
12281228 local retReg = self :allocRegister (false );
@@ -1253,7 +1253,7 @@ function Compiler:compileStatement(statement, funcDepth)
12531253 return ;
12541254 end
12551255
1256- -- Pass self Function Call Statement
1256+ -- Pass Self Function Call Statement
12571257 if (statement .kind == AstKind .PassSelfFunctionCallStatement ) then
12581258 local baseReg = self :compileExpression (statement .base , funcDepth , 1 )[1 ];
12591259 local tmpReg = self :allocRegister (false );
@@ -1661,7 +1661,7 @@ function Compiler:compileStatement(statement, funcDepth)
16611661 return ;
16621662 end
16631663
1664- -- For in Statement
1664+ -- For In Statement
16651665 if (statement .kind == AstKind .ForInStatement ) then
16661666 local expressionsLength = # statement .expressions ;
16671667 local exprregs = {};
@@ -1791,7 +1791,7 @@ function Compiler:compileStatement(statement, funcDepth)
17911791 return ;
17921792 end
17931793
1794- -- Contiue Statement
1794+ -- Continue Statement
17951795 if (statement .kind == AstKind .ContinueStatement ) then
17961796 local toFreeVars = {};
17971797 local statScope ;
@@ -1823,7 +1823,7 @@ function Compiler:compileStatement(statement, funcDepth)
18231823 return ;
18241824 end
18251825
1826- -- Compund Statements
1826+ -- Compound Statements
18271827 local compoundConstructors = {
18281828 [AstKind .CompoundAddStatement ] = Ast .CompoundAddStatement ,
18291829 [AstKind .CompoundSubStatement ] = Ast .CompoundSubStatement ,
@@ -1969,7 +1969,7 @@ function Compiler:compileExpression(expression, funcDepth, numReturns)
19691969 return regs ;
19701970 end
19711971
1972- -- Function call Expression
1972+ -- Function Call Expression
19731973 if (expression .kind == AstKind .FunctionCallExpression ) then
19741974 local baseReg = self :compileExpression (expression .base , funcDepth , 1 )[1 ];
19751975
@@ -2025,7 +2025,7 @@ function Compiler:compileExpression(expression, funcDepth, numReturns)
20252025 return retRegs ;
20262026 end
20272027
2028- -- Pass self Function Call Expression
2028+ -- Pass Self Function Call Expression
20292029 if (expression .kind == AstKind .PassSelfFunctionCallExpression ) then
20302030 local baseReg = self :compileExpression (expression .base , funcDepth , 1 )[1 ];
20312031 local retRegs = {};
0 commit comments