View unanswered posts | View active topics



Reply to topic  [ 1 post ] 
AS3 Code Formatter Not Working 
Author Message
Member

Joined: Tue Jun 15, 2010 10:27 pm
Posts: 31
Reply with quote
If an .as file contains more than one class, the Output window will mistakenly report, "Syntax errors encountered. Could not format code."

Code:
package
{
   
   public class TestSingleton
   {
      
      private static var _instance:TestSingleton;
      
      public function TestSingleton(pvt:PrivateClass) {}
      
      public static function getInstance():TestSingleton
      {
         if(TestSingleton._instance == null)
         {
            TestSingleton._instance = new TestSingleton(new PrivateClass());
         }
         return TestSingleton._instance;
      }
      
   }   
}

class PrivateClass
{
   public function PrivateClass() {}
}


Placing PrivateClass inside the package doesn't help.

I believe older versions of FlashDevelop didn't have this problem.


Tue Aug 21, 2018 4:03 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.