@@ -101,8 +101,10 @@ static std::vector<Luau::Comment> commentsWithinSpan(const std::vector<Luau::Com
101101 return result;
102102}
103103
104- struct Trivia {
105- enum TriviaKind {
104+ struct Trivia
105+ {
106+ enum TriviaKind
107+ {
106108 Whitespace,
107109 SingleLineComment,
108110 MultiLineComment,
@@ -118,7 +120,7 @@ struct AstSerialize : public Luau::AstVisitor
118120 lua_State* L;
119121 Luau::CstNodeMap cstNodeMap;
120122 std::string_view source;
121- Luau::Position currentPosition{0 ,0 };
123+ Luau::Position currentPosition{0 , 0 };
122124 std::vector<size_t > lineOffsets;
123125 std::vector<Luau::Comment> commentLocations;
124126
@@ -379,15 +381,15 @@ struct AstSerialize : public Luau::AstVisitor
379381
380382 switch (trivia[i].kind )
381383 {
382- case Trivia::Whitespace:
383- lua_pushstring (L, " whitespace" );
384- break ;
385- case Trivia::SingleLineComment:
386- lua_pushstring (L, " comment" );
387- break ;
388- case Trivia::MultiLineComment:
389- lua_pushstring (L, " blockcomment" );
390- break ;
384+ case Trivia::Whitespace:
385+ lua_pushstring (L, " whitespace" );
386+ break ;
387+ case Trivia::SingleLineComment:
388+ lua_pushstring (L, " comment" );
389+ break ;
390+ case Trivia::MultiLineComment:
391+ lua_pushstring (L, " blockcomment" );
392+ break ;
391393 }
392394 lua_setfield (L, -2 , " tag" );
393395
@@ -597,7 +599,7 @@ struct AstSerialize : public Luau::AstVisitor
597599 serializeToken (node->location .begin , node->local ->name .value );
598600 lua_setfield (L, -2 , " token" ),
599601
600- serialize (node->local );
602+ serialize (node->local );
601603 lua_setfield (L, -2 , " local" );
602604
603605 lua_pushboolean (L, node->upvalue );
@@ -1668,10 +1670,12 @@ int load_luau(lua_State* L)
16681670
16691671} // namespace luau
16701672
1671- static int index_result (lua_State* L) {
1673+ static int index_result (lua_State* L)
1674+ {
16721675 const std::string* bytecode_string = static_cast <std::string*>(luaL_checkudata (L, 1 , COMPILE_RESULT_TYPE));
16731676
1674- if (std::strcmp (luaL_checkstring (L, 2 ), " bytecode" ) == 0 ) {
1677+ if (std::strcmp (luaL_checkstring (L, 2 ), " bytecode" ) == 0 )
1678+ {
16751679 lua_pushlstring (L, bytecode_string->c_str (), bytecode_string->size ());
16761680
16771681 return 1 ;
0 commit comments