Skip to content

Commit 33e8932

Browse files
committed
Formatting
1 parent e479e38 commit 33e8932

6 files changed

Lines changed: 6 additions & 8 deletions

File tree

src/Lua/CodeAnalysis/Syntax/Parser.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,8 +602,7 @@ bool TryParseExpression(ref SyntaxTokenEnumerator enumerator, OperatorPrecedence
602602
return false;
603603
}
604604

605-
// nested table access & function call
606-
RECURSIVE:
605+
RECURSIVE: // Nested table access & function call.
607606
enumerator.SkipEoL();
608607

609608
var nextType = enumerator.GetNext().Type;

src/Lua/LuaState.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ internal void CloseUpValues(int frameBase)
510510

511511
public void Dispose()
512512
{
513-
if(CoreData == null) return;
513+
if (CoreData == null) return;
514514
if (CoreData.CallStack.Count != 0)
515515
{
516516
throw new InvalidOperationException("This state is running! Call stack is not empty!!");

src/Lua/LuaStateExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ public static ValueTask<int> CallAsync(this LuaState state, int funcIndex, Cance
281281
{
282282
return LuaVirtualMachine.Call(state, funcIndex, funcIndex, cancellationToken);
283283
}
284-
284+
285285
public static ValueTask<int> CallAsync(this LuaState state, int funcIndex, int returnBase, CancellationToken cancellationToken = default)
286286
{
287287
return LuaVirtualMachine.Call(state, funcIndex, returnBase, cancellationToken);

src/Lua/Standard/BasicLibrary.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public async ValueTask<int> IPairs(LuaFunctionExecutionContext context, Cancella
158158
var arg0 = context.GetArgument(0);
159159

160160
// If table has a metamethod __ipairs, calls it with table as argument and returns the first three results from the call.
161-
if (context.State.GlobalState.TryGetMetatable(arg0,out var metaTable) && metaTable.TryGetValue(Metamethods.IPairs, out var metamethod))
161+
if (context.State.GlobalState.TryGetMetatable(arg0, out var metaTable) && metaTable.TryGetValue(Metamethods.IPairs, out var metamethod))
162162
{
163163
var stack = context.State.Stack;
164164
var top = stack.Count;

tests/Lua.Tests/LexerTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public void Test_If_Else()
187187
public void Test_ManyComments()
188188
{
189189
var builder = new StringBuilder();
190-
190+
191191
for (int i = 0; i < 1000; i++)
192192
{
193193
builder.AppendLine("--");

tests/Lua.Tests/LuaObjectTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public async Task<double> Len()
4747
await Task.Delay(1);
4848
return x + y;
4949
}
50-
50+
5151
[LuaMetamethod(LuaObjectMetamethod.Unm)]
5252
public LuaTestObj Unm()
5353
{
@@ -263,6 +263,5 @@ function testLen(obj)
263263
var objUnm = results[1].Read<LuaTestObj>();
264264
Assert.That(objUnm.X, Is.EqualTo(-1));
265265
Assert.That(objUnm.Y, Is.EqualTo(-2));
266-
267266
}
268267
}

0 commit comments

Comments
 (0)