Code Duplication    Length = 22-22 lines in 2 locations

src/main/java/it/cnr/istc/pst/platinum/ai/lang/ddl/v3/parser/ddl3Parser.java 2 locations

@@ 5316-5337 (lines=22) @@
5313
5314
					// /home/alessandro/opt/antlr/ddl3/ddl3.g:115:15: ( ',' ID )*
5315
					loop22:
5316
					while (true) {
5317
						int alt22=2;
5318
						int LA22_0 = input.LA(1);
5319
						if ( (LA22_0==15) ) {
5320
							alt22=1;
5321
						}
5322
5323
						switch (alt22) {
5324
						case 1 :
5325
							// /home/alessandro/opt/antlr/ddl3/ddl3.g:115:16: ',' ID
5326
							{
5327
							char_literal178=(Token)match(input,15,FOLLOW_15_in_singleton_state_variable_component_decision_type1219); if (state.failed) return retval; 
5328
							if ( state.backtracking==0 ) stream_15.add(char_literal178);
5329
5330
							ID179=(Token)match(input,ID,FOLLOW_ID_in_singleton_state_variable_component_decision_type1221); if (state.failed) return retval; 
5331
							if ( state.backtracking==0 ) stream_ID.add(ID179);
5332
5333
							}
5334
							break;
5335
5336
						default :
5337
							break loop22;
5338
						}
5339
					}
5340
@@ 1041-1062 (lines=22) @@
1038
1039
			// /home/alessandro/opt/antlr/ddl3/ddl3.g:28:56: ( ',' ID )*
1040
			loop6:
1041
			while (true) {
1042
				int alt6=2;
1043
				int LA6_0 = input.LA(1);
1044
				if ( (LA6_0==15) ) {
1045
					alt6=1;
1046
				}
1047
1048
				switch (alt6) {
1049
				case 1 :
1050
					// /home/alessandro/opt/antlr/ddl3/ddl3.g:28:57: ',' ID
1051
					{
1052
					char_literal39=(Token)match(input,15,FOLLOW_15_in_enumeration_parameter_type235); if (state.failed) return retval; 
1053
					if ( state.backtracking==0 ) stream_15.add(char_literal39);
1054
1055
					ID40=(Token)match(input,ID,FOLLOW_ID_in_enumeration_parameter_type237); if (state.failed) return retval; 
1056
					if ( state.backtracking==0 ) stream_ID.add(ID40);
1057
1058
					}
1059
					break;
1060
1061
				default :
1062
					break loop6;
1063
				}
1064
			}
1065