<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -179,7 +179,7 @@ data BlockItem =  Tok        CToken
                 | ClassDecl  [CToken] CToken CToken (Maybe (CToken, CToken)) (Maybe (CToken, [(CToken, Maybe CToken)])) BlockItem -- attributes, class, identifier, maybe (extends, idn), maybe (implements [(idn, maybe',')]), body
                 | Interface  [CToken] CToken CToken (Maybe (CToken, CToken)) BlockItem -- public | internal, interface, identifier, maybe extends, body
                 | MethodDecl [CToken] CToken (Maybe CToken) CToken Signature (Maybe BlockItem) -- attributes, function, maybe get/set, identifier, Signature, body
-                | VarS       (Maybe [CToken]) CToken VarBinding [(CToken, VarBinding)] -- maybe attributes, var, varbinding, [(',', varbinding)]
+                | VarS       [CToken] CToken VarBinding [(CToken, VarBinding)] -- maybe attributes, var, varbinding, [(',', varbinding)]
                 | ForS       CToken CToken (Maybe ForInit) CToken (Maybe ListE) CToken (Maybe ListE) CToken BlockItem -- for( ? ; ? ; ?) {}
                 | Metadata   Metadata
     deriving (Show, Data, Typeable)</diff>
      <filename>ActionhaXe/Data.hs</filename>
    </modified>
    <modified>
      <diff>@@ -158,18 +158,7 @@ sigargs = do{ s &lt;- many sigarg; return s}
 sigarg = try(do{ a &lt;- idn; o &lt;- op &quot;:&quot;; t &lt;- datatype; d &lt;- optionMaybe( do{ o &lt;- op &quot;=&quot;; a &lt;- assignE; return $ (o, a)}); c &lt;- optionMaybe(op &quot;,&quot;); storeVar a t; return $ Arg a o t d c})
      &lt;|&gt;     do{ d &lt;- op &quot;...&quot;; i &lt;- idn; t &lt;- optionMaybe (do{ o &lt;- op &quot;:&quot;; t &lt;- datatype; return (o, t)}); storeVar i AsTypeRest; return $ RestArg d i t }
 
-{-
-defval = do{ x &lt;- manyTill defval' (try (lookAhead (op &quot;,&quot;)) &lt;|&gt; lookAhead(op &quot;)&quot;)); return x }
-
-defval' = try( do{ x &lt;- kw &quot;null&quot;; return x})
-      &lt;|&gt; try( do{ x &lt;- kw &quot;true&quot;; return x})
-      &lt;|&gt; try( do{ x &lt;- kw &quot;false&quot;; return x})
-      &lt;|&gt; try( do{ x &lt;- ident; return x})
-      &lt;|&gt; try( do{ x &lt;- str; return x})
-      &lt;|&gt; do{ x &lt;- num; return x}
--}
-
-varS = try(do{ ns &lt;- optionMaybe(varAttributes)
+varS = try(do{ ns &lt;- varAttributes
              ; k &lt;- choice[kw &quot;var&quot;, kw &quot;const&quot;]
              ; v &lt;- varBinding
              ; vs &lt;- many (do{ s &lt;- op &quot;,&quot;; v &lt;- varBinding; return (s, v)})</diff>
      <filename>ActionhaXe/Parser.hs</filename>
    </modified>
    <modified>
      <diff>@@ -198,15 +198,13 @@ classDecl (ClassDecl a c n e i b) = do
     let i' = maybe [] (\(ic, cs) -&gt; map (\(x, co) -&gt; showb ic ++ showd x) cs ) i
     let i'' = i' ++ if &quot;dynamic&quot; `elem` map (\a' -&gt; showd a') a then [&quot;implements Dynamic&lt;Dynamic&gt;&quot;] else [&quot;&quot;]
     let ei = intercalate &quot;, &quot; $ filter (\x -&gt; length x &gt; 0) $ e'++i''
-    return $ attr a ++ showb c ++ showb n ++ ei ++ &quot; &quot; ++ x 
+    return $ namespace a ++ showb c ++ showb n ++ ei ++ &quot; &quot; ++ x 
     where publicAttr as = if &quot;public&quot; `elem` map (\a -&gt; showd a) as then &quot;public&quot; else &quot;private&quot;
-          attr as = concat $ map (\attr -&gt; case (showd attr) of { &quot;dynamic&quot; -&gt; &quot;&quot;; &quot;internal&quot; -&gt; &quot;private&quot; ++ showw attr; &quot;public&quot; -&gt; &quot;&quot;; x -&gt; showb attr }) as
 
 interface (Interface a i n e b) = do
     x &lt;- interfaceBlock b
     let e' = maybe &quot;&quot; (\(e, c) -&gt; &quot;implements &quot;++showd c ) e
-    return $ attr a ++ showb i ++ showb n ++ e' ++ x
-    where attr as = concat $ map (\attr -&gt; case (showd attr) of { &quot;internal&quot; -&gt; &quot;private&quot; ++ showw attr; &quot;public&quot; -&gt; &quot;&quot;; x -&gt; showb attr }) as
+    return $ namespace a ++ showb i ++ showb n ++ e' ++ x
 
 methodDecl (MethodDecl a f ac n s b) = do 
     packageName &lt;- getFlag fpackage
@@ -215,7 +213,7 @@ methodDecl (MethodDecl a f ac n s b) = do
     if packageName == mainPackage &amp;&amp; className == (showd n) &amp;&amp; classAttr == &quot;public&quot;
         then do{ x &lt;- maybe (return &quot;&quot;) block b; return $ &quot;static &quot; ++ showb f ++ &quot;main() &quot;++ x }
         else if className == (showd n)
-                 then do{ x &lt;- maybe (return &quot;&quot;) constructorBlock b; s' &lt;- signatureArgs s; return $ attr a ++ showb f ++ &quot;new&quot;++showw n ++ s' ++ x }
+                 then do{ x &lt;- maybe (return &quot;&quot;) constructorBlock b; s' &lt;- signatureArgs s; return $ namespace a ++ showb f ++ &quot;new&quot;++showw n ++ s' ++ x }
                  else do st &lt;- get
                          let accMap = accessors st
                          if Map.member (showd n) accMap
@@ -223,12 +221,11 @@ methodDecl (MethodDecl a f ac n s b) = do
                                       let arg = getArg s
                                       x &lt;- maybe (return &quot;&quot; ) (accblock arg ac) b
                                       acc' &lt;- accessor ac n s t
-                                      return $ attr a ++ showb f ++ acc' ++ x 
+                                      return $ namespace a ++ showb f ++ acc' ++ x 
                               else do x &lt;- maybe (return &quot;&quot;) block b
                                       s' &lt;- signature s
-                                      return $ attr a ++ showb f ++ showb n ++ s' ++ x
-    where attr as = concat $ map (\attr -&gt; case (showd attr) of { &quot;internal&quot; -&gt; &quot;private&quot; ++ showw attr; &quot;protected&quot; -&gt; &quot;public&quot; ++ showw attr; x -&gt; showb attr }) as
-          accessor ac name s@(Signature l args r ret) t = 
+                                      return $ namespace a ++ showb f ++ showb n ++ s' ++ x
+    where accessor ac name s@(Signature l args r ret) t = 
               case ac of
                   Just x -&gt; do{ a &lt;- showArgs args
                               ; t' &lt;- datatypet t
@@ -271,13 +268,12 @@ showArgs as = do{ as' &lt;- mapM showArg as; return $ concat as'}
           showArg (RestArg o n t) = do{ return $ showd n ++ &quot;:Array&lt;Dynamic&gt;&quot;}
 
 memberVarS (VarS ns k v vs) = do 
-    if maybe False (namespaceHas &quot;static&quot;) ns
+    if elem &quot;static&quot; (map (\n -&gt; showd n) ns)
         then do{ v' &lt;- varBinding v False
                ; vs' &lt;- foldlM (\s (c, x) -&gt; do{ x' &lt;- varBinding x False; return $ s ++ showb c ++ x'}) &quot;&quot; vs
                ; let inl = if hasPrimitive v &amp;&amp; length vs == length (filter (\(c, v) -&gt; hasPrimitive v) vs) then &quot;inline &quot; else &quot;&quot;
                ; return $ inl ++ namespace ns ++ &quot;var&quot; ++ showw k ++ v' ++ vs'}
         else do{ v' &lt;- varBinding v True; vs' &lt;- foldlM (\s (c, x) -&gt; do{ x' &lt;- varBinding x True; return $ s ++ showb c ++ x'}) &quot;&quot; vs; return $ namespace ns ++ &quot;var&quot; ++ showw k ++ v' ++ vs'}
-    where namespaceHas s ns = elem s (map (\n -&gt; showd n) ns)
 
 hasPrimitive = everything (||) (False `mkQ` hasPrimitive')
 
@@ -319,9 +315,14 @@ getTypeTokenType (TokenKw &quot;true&quot;) = Just &quot;Bool&quot;
 getTypeTokenType (TokenKw &quot;false&quot;) = Just &quot;Bool&quot;
 getTypeTokenType _ = Nothing
 
-namespace ns = case ns of 
-                   Just x -&gt; concat $ map (\n -&gt; (case (showd n) of { &quot;protected&quot; -&gt; &quot;public&quot;; _ -&gt; showd n})  ++ showw n) x
-                   Nothing -&gt; &quot;&quot;
+namespace ns = concat $ map (\attr -&gt; (case showd attr of { &quot;dynamic&quot; -&gt; &quot;&quot;
+                                                          ; &quot;final&quot; -&gt; &quot;&quot;
+                                                          ; &quot;protected&quot; -&gt; &quot;&quot;
+                                                          ; &quot;internal&quot; -&gt; &quot;private&quot; ++ showw attr
+                                                          ; &quot;public&quot; -&gt; &quot;&quot;
+                                                          ; _ -&gt; showb attr 
+                                                          }
+                                      ) ) ns
 
 datatypet d = do{ d' &lt;- datatype d; return $ span (\c -&gt; isAlphaNum c || c =='&gt;' || c == '&lt;') d'}
 </diff>
      <filename>ActionhaXe/Translator.hs</filename>
    </modified>
    <modified>
      <diff>@@ -25,8 +25,8 @@ package example
 	public class AsWingApplication extends Sprite
 	{
 		private static var labelPrefix : String = &quot;Number of button clicks: &quot;;
-	    private var numClicks : int = 0;
-	    private var label : JLabel;
+		private var numClicks : int = 0;
+		private var label : JLabel;
 		private var button : JButton;
 		
 		public function AsWingApplication(){
@@ -39,7 +39,6 @@ package example
 			frame.getContentPane().append( createCenterPane() );
 			frame.setSize(new IntDimension( 200, 120 ) );
 			frame.show();
-	    	var test : int = 0;
 		}
 		
 		private function createCenterPane() : JPanel{</diff>
      <filename>samples/AsWingApplication.as</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>21982fe0583095fc83e4324c2bebdbda03808f56</id>
    </parent>
  </parents>
  <author>
    <name>mugen</name>
    <email>mugen@mugens-laptop.local</email>
  </author>
  <url>http://github.com/geekrelief/as3tohaxe/commit/f41b40e451f57c468bfa3a0688f35280a95b548a</url>
  <id>f41b40e451f57c468bfa3a0688f35280a95b548a</id>
  <committed-date>2008-11-03T13:54:52-08:00</committed-date>
  <authored-date>2008-11-03T13:54:52-08:00</authored-date>
  <message>Removed keywords public, final, internal, protected before class, function and var declarations</message>
  <tree>bf1233e957fae5bd74fdd301d1c87dc2fb41f661</tree>
  <committer>
    <name>mugen</name>
    <email>mugen@mugens-laptop.local</email>
  </committer>
</commit>
