lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [40/50] [abbrv] lucenenet git commit: Lucene.Net.Expressions.JS (JavascriptLexer + JavascriptParser): removed unreachable break statements and commented unreferenced labels
Date Wed, 25 Jan 2017 03:44:24 GMT
Lucene.Net.Expressions.JS (JavascriptLexer + JavascriptParser): removed unreachable break statements
and commented unreferenced labels


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/883d9412
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/883d9412
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/883d9412

Branch: refs/heads/api-work
Commit: 883d94122ced9a9007ccba0d6845ca9af8907b9d
Parents: c56db65
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Wed Jan 25 07:18:04 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Wed Jan 25 09:34:48 2017 +0700

----------------------------------------------------------------------
 .../JS/JavascriptLexer.cs                       | 54 +++++++++-----------
 .../JS/JavascriptParser.cs                      | 52 ++++++++-----------
 2 files changed, 43 insertions(+), 63 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/883d9412/src/Lucene.Net.Expressions/JS/JavascriptLexer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Expressions/JS/JavascriptLexer.cs b/src/Lucene.Net.Expressions/JS/JavascriptLexer.cs
index c17b36d..0646355 100644
--- a/src/Lucene.Net.Expressions/JS/JavascriptLexer.cs
+++ b/src/Lucene.Net.Expressions/JS/JavascriptLexer.cs
@@ -774,10 +774,9 @@ namespace Lucene.Net.Expressions.JS
 							default:
 							{
 								goto loop1_break;
-								break;
 							}
 						}
-loop1_continue: ;
+//loop1_continue: ; // LUCENENET NOTE: Not used
 					}
 loop1_break: ;
 				}
@@ -843,10 +842,9 @@ loop1_break: ;
 							default:
 							{
 								goto loop2_break;
-								break;
 							}
 						}
-loop2_continue: ;
+//loop2_continue: ; // LUCENENET NOTE: Not used
 					}
 loop2_break: ;
 				}
@@ -909,9 +907,9 @@ loop2_break: ;
 							}
 						}
 						cnt3++;
-loop3_continue: ;
-					}
-loop3_break: ;
+                        //loop3_continue: ; // LUCENENET NOTE: Not used
+                    }
+                    loop3_break: ;
 					Skip();
 				}
 				state.type = _type;
@@ -972,14 +970,11 @@ loop3_break: ;
 		                        default:
 		                        {
 		                            goto loop4_break;
-		                            break;
 		                        }
 		                    }
-		                    loop4_continue:
-		                    ;
-		                }
-		                loop4_break:
-		                ;
+                                //loop4_continue: ; // LUCENENET NOTE: Not used
+                        }
+                        loop4_break: ;
 		                // src/java/org/apache/lucene/expressions/js/Javascript.g:347:43: ( EXPONENT
)?
 		                int alt5 = 2;
 		                int LA5_0 = input.LA(1);
@@ -1042,11 +1037,9 @@ loop3_break: ;
 		                        }
 		                    }
 		                    cnt6++;
-		                    loop6_continue:
-		                    ;
-		                }
-		                loop6_break:
-		                ;
+                                //loop6_continue: ; // LUCENENET NOTE: Not used
+                            }
+                            loop6_break: ;
 		                // src/java/org/apache/lucene/expressions/js/Javascript.g:348:28: ( EXPONENT
)?
 		                int alt7 = 2;
 		                int LA7_0 = input.LA(1);
@@ -1150,9 +1143,9 @@ loop3_break: ;
 							}
 						}
 						cnt10++;
-loop10_continue: ;
-					}
-loop10_break: ;
+                        //loop10_continue: ; // LUCENENET NOTE: Not used
+                    }
+                    loop10_break: ;
 				}
 				state.type = _type;
 				state.channel = _channel;
@@ -1269,9 +1262,9 @@ loop10_break: ;
 							}
 						}
 						cnt12++;
-loop12_continue: ;
-					}
-loop12_break: ;
+                        //loop12_continue: ; // LUCENENET NOTE: Not used
+                    }
+                    loop12_break: ;
 				}
 				state.type = _type;
 				state.channel = _channel;
@@ -1351,12 +1344,11 @@ loop12_break: ;
 								default:
 								{
 									goto loop13_break;
-									break;
 								}
 							}
-loop13_continue: ;
-						}
-loop13_break: ;
+                                //loop13_continue: ; // LUCENENET NOTE: Not used
+                            }
+                            loop13_break: ;
 						break;
 					}
 				}
@@ -1451,9 +1443,9 @@ loop13_break: ;
 							}
 						}
 						cnt16++;
-loop16_continue: ;
-					}
-loop16_break: ;
+                        //loop16_continue: ; // LUCENENET NOTE: Not used
+                    }
+                    loop16_break: ;
 				}
 			}
 			finally

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/883d9412/src/Lucene.Net.Expressions/JS/JavascriptParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Expressions/JS/JavascriptParser.cs b/src/Lucene.Net.Expressions/JS/JavascriptParser.cs
index a96a9e6..9844fab 100644
--- a/src/Lucene.Net.Expressions/JS/JavascriptParser.cs
+++ b/src/Lucene.Net.Expressions/JS/JavascriptParser.cs
@@ -345,7 +345,6 @@ namespace Lucene.Net.Expressions.JS
                 default:
                     {
                         return "'" + token.Text + "'";
-                        break;
                     }
             }
         }
@@ -506,10 +505,9 @@ namespace Lucene.Net.Expressions.JS
                             default:
                                 {
                                     goto loop2_break;
-                                    break;
                                 }
                         }
-                    loop2_continue: ;
+                    //loop2_continue: ; // LUCENENET NOTE: Not used
                     }
                 loop2_break: ;
                 }
@@ -577,10 +575,9 @@ namespace Lucene.Net.Expressions.JS
                             default:
                                 {
                                     goto loop3_break;
-                                    break;
                                 }
                         }
-                    loop3_continue: ;
+                    //loop3_continue: ; // LUCENENET NOTE: Not used
                     }
                 loop3_break: ;
                 }
@@ -643,12 +640,11 @@ namespace Lucene.Net.Expressions.JS
                             default:
                                 {
                                     goto loop4_break;
-                                    break;
                                 }
                         }
-                    loop4_continue: ;
+                        //loop4_continue: ; // LUCENENET NOTE: Not used
                     }
-                loop4_break: ;
+                    loop4_break: ;
                 }
                 retval.Stop = input.LT(-1);
                 retval.Tree = (CommonTree)adaptor.RulePostProcessing(root);
@@ -709,12 +705,11 @@ namespace Lucene.Net.Expressions.JS
                             default:
                                 {
                                     goto loop5_break;
-                                    break;
                                 }
                         }
-                    loop5_continue: ;
+                        //loop5_continue: ; // LUCENENET NOTE: Not used
                     }
-                loop5_break: ;
+                    loop5_break: ;
                 }
                 retval.Stop = input.LT(-1);
                 retval.Tree = (CommonTree)adaptor.RulePostProcessing(root);
@@ -777,12 +772,11 @@ namespace Lucene.Net.Expressions.JS
                             default:
                                 {
                                     goto loop6_break;
-                                    break;
                                 }
                         }
-                    loop6_continue: ;
+                        //loop6_continue: ; // LUCENENET NOTE: Not used
                     }
-                loop6_break: ;
+                    loop6_break: ;
                 }
                 retval.Stop = input.LT(-1);
                 retval.Tree = (CommonTree)adaptor.RulePostProcessing(root);
@@ -854,12 +848,11 @@ namespace Lucene.Net.Expressions.JS
                             default:
                                 {
                                     goto loop7_break;
-                                    break;
                                 }
                         }
-                    loop7_continue: ;
+                        //loop7_continue: ; // LUCENENET NOTE: Not used
                     }
-                loop7_break: ;
+                    loop7_break: ;
                 }
                 retval.Stop = input.LT(-1);
                 retval.Tree = (CommonTree)adaptor.RulePostProcessing(root);
@@ -933,12 +926,11 @@ namespace Lucene.Net.Expressions.JS
                             default:
                                 {
                                     goto loop8_break;
-                                    break;
                                 }
                         }
-                    loop8_continue: ;
+                        //loop8_continue: ; // LUCENENET NOTE: Not used
                     }
-                loop8_break: ;
+                    loop8_break: ;
                 }
                 retval.Stop = input.LT(-1);
                 retval.Tree = (CommonTree)adaptor.RulePostProcessing(root);
@@ -1012,12 +1004,11 @@ namespace Lucene.Net.Expressions.JS
                             default:
                                 {
                                     goto loop9_break;
-                                    break;
                                 }
                         }
-                    loop9_continue: ;
+                        //loop9_continue: ; // LUCENENET NOTE: Not used
                     }
-                loop9_break: ;
+                    loop9_break: ;
                 }
                 retval.Stop = input.LT(-1);
                 retval.Tree = (CommonTree)adaptor.RulePostProcessing(root);
@@ -1091,12 +1082,11 @@ namespace Lucene.Net.Expressions.JS
                             default:
                                 {
                                     goto loop10_break;
-                                    break;
                                 }
                         }
-                    loop10_continue: ;
+                        //loop10_continue: ; // LUCENENET NOTE: Not used
                     }
-                loop10_break: ;
+                    loop10_break: ;
                 }
                 retval.Stop = input.LT(-1);
                 retval.Tree = (CommonTree)adaptor.RulePostProcessing(root);
@@ -1170,12 +1160,11 @@ namespace Lucene.Net.Expressions.JS
                             default:
                                 {
                                     goto loop11_break;
-                                    break;
                                 }
                         }
-                    loop11_continue: ;
+                        //loop11_continue: ; // LUCENENET NOTE: Not used
                     }
-                loop11_break: ;
+                    loop11_break: ;
                 }
                 retval.Stop = input.LT(-1);
                 retval.Tree = (CommonTree)adaptor.RulePostProcessing(root);
@@ -1687,12 +1676,11 @@ namespace Lucene.Net.Expressions.JS
                                         default:
                                             {
                                                 goto loop16_break;
-                                                break;
                                             }
                                     }
-                                loop16_continue: ;
+                                    //loop16_continue: ; // LUCENENET NOTE: Not used
                                 }
-                            loop16_break: ;
+                                loop16_break: ;
                                 break;
                             }
                     }


Mime
View raw message