@@ -1223,7 +1223,7 @@ function Compiler:compileStatement(statement, funcDepth)
12231223 return ;
12241224 end
12251225
1226- -- Function call Statement
1226+ -- Function Call Statement
12271227 if (statement .kind == AstKind .FunctionCallStatement ) then
12281228 local baseReg = self :compileExpression (statement .base , funcDepth , 1 )[1 ];
12291229 local retReg = self :allocRegister (false );
@@ -1254,7 +1254,7 @@ function Compiler:compileStatement(statement, funcDepth)
12541254 return ;
12551255 end
12561256
1257- -- Pass self Function Call Statement
1257+ -- Pass Self Function Call Statement
12581258 if (statement .kind == AstKind .PassSelfFunctionCallStatement ) then
12591259 local baseReg = self :compileExpression (statement .base , funcDepth , 1 )[1 ];
12601260 local tmpReg = self :allocRegister (false );
@@ -1662,7 +1662,7 @@ function Compiler:compileStatement(statement, funcDepth)
16621662 return ;
16631663 end
16641664
1665- -- For in Statement
1665+ -- For In Statement
16661666 if (statement .kind == AstKind .ForInStatement ) then
16671667 local expressionsLength = # statement .expressions ;
16681668 local exprregs = {};
@@ -1792,7 +1792,7 @@ function Compiler:compileStatement(statement, funcDepth)
17921792 return ;
17931793 end
17941794
1795- -- Contiue Statement
1795+ -- Continue Statement
17961796 if (statement .kind == AstKind .ContinueStatement ) then
17971797 local toFreeVars = {};
17981798 local statScope ;
@@ -1824,7 +1824,7 @@ function Compiler:compileStatement(statement, funcDepth)
18241824 return ;
18251825 end
18261826
1827- -- Compund Statements
1827+ -- Compound Statements
18281828 local compoundConstructors = {
18291829 [AstKind .CompoundAddStatement ] = Ast .CompoundAddStatement ,
18301830 [AstKind .CompoundSubStatement ] = Ast .CompoundSubStatement ,
@@ -1970,7 +1970,7 @@ function Compiler:compileExpression(expression, funcDepth, numReturns)
19701970 return regs ;
19711971 end
19721972
1973- -- Function call Expression
1973+ -- Function Call Expression
19741974 if (expression .kind == AstKind .FunctionCallExpression ) then
19751975 local baseReg = self :compileExpression (expression .base , funcDepth , 1 )[1 ];
19761976
@@ -2026,7 +2026,7 @@ function Compiler:compileExpression(expression, funcDepth, numReturns)
20262026 return retRegs ;
20272027 end
20282028
2029- -- Pass self Function Call Expression
2029+ -- Pass Self Function Call Expression
20302030 if (expression .kind == AstKind .PassSelfFunctionCallExpression ) then
20312031 local baseReg = self :compileExpression (expression .base , funcDepth , 1 )[1 ];
20322032 local retRegs = {};
0 commit comments