Example #1
0
 private void simplifyFunctionData(FunctionData data)
 {
     if (null != data.Call)
     {
         simplifyCallData(data.Call);
     }
     if (data.HaveStatement())
     {
         int ct = data.GetStatementNum();
         for (int i = 0; i < ct; ++i)
         {
             ISyntaxComponent temp      = data.GetStatement(i);
             StatementData    statement = temp as StatementData;
             if (null != statement)
             {
                 data.SetStatement(i, simplifyStatement(statement));
             }
             else
             {
                 FunctionData func = temp as FunctionData;
                 if (null != func)
                 {
                     data.SetStatement(i, simplifyStatement(func));
                 }
                 else
                 {
                     CallData call = temp as CallData;
                     if (null != call)
                     {
                         data.SetStatement(i, simplifyStatement(call));
                     }
                 }
             }
         }
     }
 }
Example #2
0
 private void simplifyFunctionData(FunctionData data)
 {
     if (null != data.Call) {
         simplifyCallData(data.Call);
     }
     if (data.HaveStatement()) {
         int ct = data.GetStatementNum();
         for (int i = 0; i < ct; ++i) {
             ISyntaxComponent temp = data.GetStatement(i);
             StatementData statement = temp as StatementData;
             if (null != statement) {
                 data.SetStatement(i, simplifyStatement(statement));
             } else {
                 FunctionData func = temp as FunctionData;
                 if (null != func) {
                     data.SetStatement(i, simplifyStatement(func));
                 } else {
                     CallData call = temp as CallData;
                     if (null != call) {
                         data.SetStatement(i, simplifyStatement(call));
                     }
                 }
             }
         }
     }
 }