Esempio n. 1
0
 public PyClass()
 {
     _lines = new StringCollection();
     _sections = new PySection[_sec_count];
     for (int i=0; i<_sec_count; i++)
     {
         _sections[i] = new PySection();
         _sections[i].Begin = 1 + i*2;
     }
     _cur_begin = -1;
     _cur_size = -1;
     _cur_section = PyClassSection.PYDEF_NONE;
 }
Esempio n. 2
0
 public void BeginSection(PyClassSection section)
 {
     // make this section as current;
     _cur_section = section;
     _cur_begin = _sections[(int)section].Begin;
     _cur_size = _sections[(int)section].Size;
 }
Esempio n. 3
0
 public void EndSection()
 {
     // make this section as current;
     _cur_section = PyClassSection.PYDEF_NONE;
     _cur_begin = -1;
     _cur_size = -1;
 }