" self.ATTRIBUTE1 = 10\n" + //local scope: get it because of self.
" self.ATTRIBUTE2 = = 10\n" + //local scope: get it because of self.
"\n" +
"");
assertEquals(1, m.body.length);
ClassDef classDef = ((ClassDef) m.body[0]);
assertEquals("Bar", ((NameTok) classDef.name).id);
assertEquals(1, classDef.body.length); //method
FunctionDef funcDef = (FunctionDef) classDef.body[0];
assertEquals("m1", ((NameTok) funcDef.name).id);