[Fb-contrib-commit] SF.net SVN: fb-contrib: [706] trunk/fb-contrib/src/com/mebigfatguy/ fbcontrib/
Brought to you by:
dbrosius
From: <dbr...@us...> - 2006-12-04 00:45:56
|
Revision: 706 http://svn.sourceforge.net/fb-contrib/?rev=706&view=rev Author: dbrosius Date: 2006-12-03 16:45:50 -0800 (Sun, 03 Dec 2006) Log Message: ----------- forward branching gotos not associated with elseifs, are treated as loops Modified Paths: -------------- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/BloatedAssignmentScope.java Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/BloatedAssignmentScope.java =================================================================== --- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/BloatedAssignmentScope.java 2006-12-03 17:25:11 UTC (rev 705) +++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/BloatedAssignmentScope.java 2006-12-04 00:45:50 UTC (rev 706) @@ -134,6 +134,10 @@ if (sb != null) { sb = new ScopeBlock(getPC(), target); rootScopeBlock.addChild(sb); + } else { + sb = new ScopeBlock(getPC(), target); + sb.setLoop(); + rootScopeBlock.addChild(sb); } } else { ScopeBlock sb = findScopeBlockWithTarget(rootScopeBlock, getPC(), target); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |