public LuaGotoCaseAdapterStatement(LuaIdentifierNameSyntax identifier) { if (identifier == null) { throw new ArgumentNullException(nameof(identifier)); } Assignment = identifier.Assignment(LuaIdentifierNameSyntax.True); GotoStatement = new LuaGotoStatement(identifier); }
public LuaGotoCaseAdapterStatement(LuaIdentifierNameSyntax identifier) { if (identifier == null) { throw new ArgumentNullException(nameof(identifier)); } LuaAssignmentExpressionSyntax assignment = new LuaAssignmentExpressionSyntax(identifier, LuaIdentifierNameSyntax.True); Assignment = new LuaExpressionStatementSyntax(assignment); GotoStatement = new LuaGotoStatement(identifier); }