コード例 #1
0
 public LuaGotoCaseAdapterStatement(LuaIdentifierNameSyntax identifier)
 {
     if (identifier == null)
     {
         throw new ArgumentNullException(nameof(identifier));
     }
     Assignment    = identifier.Assignment(LuaIdentifierNameSyntax.True);
     GotoStatement = new LuaGotoStatement(identifier);
 }
コード例 #2
0
        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);
        }