示例#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);
        }